-
How do I pass a variable from one form to the next in JSP
How do I pass one variable from one form to the next in JSP when it is NOT being passed in a form tag? There is no submit button
I know how to use the request.getParameter(variableName) and then do an
<input type = “hidden” name = “variableName”>
But this only works in a form tag. How else can I pass a variable?
-
I can think of one solution using javascript, where you build the url for the JSP
with name/value pairs like:
<url to jsp>?name1=value1&name2=value2 (etc.)
eschew obfuscation
-
If you do not want messy code. You can simply use session variables to pass some information from one page to other.
Regards,
Mohit
-
Thanks both of you. I got it to work with the name value pair in jsp.
Similar Threads
-
By Arthur Wood in forum .NET
Replies: 7
Last Post: 10-28-2002, 01:10 PM
-
By Al Guten in forum .NET
Replies: 0
Last Post: 04-11-2002, 06:48 PM
-
By Tim Coulter in forum VB Classic
Replies: 20
Last Post: 02-01-2001, 07:49 AM
-
By BrandonV in forum ASP.NET
Replies: 1
Last Post: 11-16-2000, 10:16 PM
-
By mano in forum VB Classic
Replies: 3
Last Post: 04-12-2000, 04:03 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|