java - How to open a new page when button is clicked on -


the question vague allow me clarify. developing web app locally on eclipse , using servlets, jsp, , html document design web page.

i have home page has 2 buttons, signup , login. have 1 file, called index.jsp, has html configurations of homescreen.

so, when signup clicked on, how can server load new page text input boxes?

thanks.

you can send request 1 jsp another. lets after index.jsp want go login.jsp when button pressed.then create form this:

<form action="login.jsp"> <input name="username" type="text"><br> <input name="password" type="password"> <input type="submit" value="login"> </form> 

now in login.jsp can username , password using

string username=request.getparameter("username"); string password=request.getparameter("password"); 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -