File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
passing parameters to JSP page
Joined: May 24, 2005
Jul 06, 2006 11:42:00
i have a jsp page (call it foo.jsp) which processes data from a form. in the form the user enters search criteria, and the jsp runs the query and displays the data.
i use request.getParameter in foo.jsp. ok
in foo.jsp, there are hyperlinks that link back to foo.jsp to run the query again but sort it differently.
how can I pass the session parameters back into foo.jsp so they are available in the "second call" of foo.jsp?
Joined: Mar 22, 2005
Jul 06, 2006 11:49:00
You can pass parameters to
pages as part of the URL, e.g. "foo.jsp?sortOrder=bar&sortDirection=baz"
Ping & DNS
- my free Android networking tools app
Author and ninkuma
Joined: Jan 10, 2002
Jul 06, 2006 12:43:00
or as hidden parameters if you are submitting a form.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: passing parameters to JSP page
Servlet-engine-to-servlet-engine passthrough (WebSphere Commerce to Tomcat)
Need Help with JSP & Servlet
Advice needed on how to connect to a database in JSP
Best Strategies of Passing output data to web tier
basic html ->JSP-> javabean-> database questions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014