Status
Not open for further replies.

nikhil ramteke

s,b+..u cn..
hi frnz...
i hav two html pages..
a.html and b.html
there is a interface of servlet between this two pages
if username and password entered in a.html is valid then jumps on b.html..
now i hav a hidden field in my b.html..
i want to set the username in hidden variable of b.html from a.html..
what to do???
which method should i prefer?
 

Faun

Wahahaha~!
Staff member
hi frnz...
i hav two html pages..
a.html and b.html
there is a interface of servlet between this two pages
if username and password entered in a.html is valid then jumps on b.html..
now i hav a hidden field in my b.html..
i want to set the username in hidden variable of b.html from a.html..
what to do???
which method should i prefer?
You need to maintain session and so every page should be a JSP page(to maintain session this a must have condition).
rename a.html and b.html to a.jsp and b.jsp.

take the parameter value from a.jsp in a string or whatever in servlet.
create session object and pass the variable(using setAttribute method of session object) containing the value thru servlet to the b.jsp
 
Status
Not open for further replies.
Top Bottom