Skip to content

Commit

Permalink
Added labels to Create and join house
Browse files Browse the repository at this point in the history
  • Loading branch information
jschaide committed Apr 12, 2018
1 parent 888ca3c commit 8b046be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions WebContent/houseRegister.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@
<div class="container">

<form class="form-request-help" method="POST" action="DispatcherServlet">
<h2 class="form-request-help-heading text-center">Roommate</h2>
<h1 class="form-request-help-heading text-center">Roommates</h2>
<h4 class="form-request-help-heading text-left">Create a House Handle:</h2>
<label for="houseHandle" class="sr-only">What is your housing group called </label>
<input type="text" name="houseHandle" class="form-control" placeholder="Ex. 37mainStreet" required autofocus>
<input type="text" name="houseHandle" class="form-control" placeholder="123mainStreet" required autofocus>
<input type="hidden" name="command" value="createHouseHandle" >
<button class="btn btn-lg btn-primary btn-block" type="submit">submit</button>

</form>


<form class="form-request-help" method="POST" action="DispatcherServlet">
<h4 class="form-request-help-heading text-left">Join a House Handle: </h2>
<label for="houseHandle" class="sr-only">Your housing URL </label>
<input type="text" name="houseHandle" class="form-control" placeholder="123mainStreet" required autofocus>
<input type="hidden" name= "command" value="joinHouseHandle">
Expand Down
2 changes: 1 addition & 1 deletion src/controller/LoginController.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public ModelAndView HandleRequest(HttpServletRequest request, HttpServletRespons
if (user != null) {
HttpSession session = request.getSession();
session.setAttribute("user", user);
return new ModelAndView("dashboard.jsp");
return new ModelAndView("dashboard.jsp", true);
}
else {
return new ModelAndView("login.jsp?loginfail=true", true);
Expand Down
1 change: 0 additions & 1 deletion src/controller/RegisterUserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public ModelAndView HandleRequest(HttpServletRequest request, HttpServletRespons

// Does not need a try catch for integer conversion because they are numbers for sure
// needs to be changed because int is not big enough to hold the 10 digits
// long cellNumber = (long)Integer.parseInt(request.getParameter("cellNum"));

long cellNumber = Long.parseLong(request.getParameter("cellNum"));
long emergencyNumber = Long.parseLong(request.getParameter("emergencyNum"));
Expand Down

0 comments on commit 8b046be

Please sign in to comment.