|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
hi
is it possible to pass values from one page to another without using a form? If so can someone give me an example of the code. thanks. |
|
#2
|
|||
|
|||
|
you could set a session attribute in the first jsp page:
String email= "someone@yahoo.com"; session.setAttribute("email", email); and then read it again in the next jsp page: String email= (String) session.getAttribute("email"); or in the first jsp page set a hidden parameter: <input type="hidden" name="email" value="someone@yahoo.com"> and then read it again in the next jsp page: String email =request.getParameter("email"); |
|
#3
|
|||
|
|||
|
Great, thanks for your help.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > passing values |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|