Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

HTML forms & JSP

  • Please log in to reply



    New Member

  • Member
  • Pip
  • 1 posts

I need some help/guidance with my homework. No im not looking for someone to do it for me. Im just looking to understand how to do this project.

Part 1 - entry from the Java Server Page Form when the Submit button is pressed on the logon form.
In this case your page should output should displays the logon information that you read from the form. (the page must stay in the same JSP page)

So i have this java codes to see what button was pressed, so if LOGIN is pressed it s suppose to say "Welcome JonDoe@email.com"
if the Register button is pressed then we collect their information to store it in the database.

<% if (request.getParameter("Register") != null) { %>
<form action="HummingBirds.jsp" method="Post">
<div class="style1">
*First Name: <input type="text" name="FirstName" value=""><br>
*Last Name: <input type="text" name="LastName"><br>
*Username: <input type="text" name="User" value=""><br>
*Email Address: <input type="text" name="Email" value=""><br>
*Password: <input type="password" name="Pwd" value=""><br>
*Verify Password: <input type="password" name="Vpwd" value=""><br>
<font face="Arial">
<Input type=submit name=Submit value="Submit Form"></font> </div>

<%} else if (request.getParameter("Login") == null) {%>
<form action="HummingBirds.jsp" method="post" style="width: 200px">
<font size="3" face="Times" color="#000000"> Email: </font><input type="text" name="email" value="">
<font size="3" face="Times" color="#000000"> Password: </font><input type="password" name="password" size="10">
<input type="Submit" name="Login" value="Login">
<input type="submit" name="Register" value="Register">

So my question is, how do i pass the Email to say welcome and that it stays in the same JSP page?
  • 0





  • Member
  • PipPip
  • 75 posts
Hi !
Can you make your question a little more clear.

PS: please use code tags for code.
  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP