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
Win a copy of
this week in the
passing parameters to JSP page
Joined: May 24, 2005
Jul 06, 2006 11:42:00
i have a
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 JSP pages as part of the URL, e.g. "foo.jsp?sortOrder=bar&sortDirection=baz"
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
basic html ->JSP-> javabean-> database questions
Best Strategies of Passing output data to web tier
Need Help with JSP & Servlet
Servlet-engine-to-servlet-engine passthrough (WebSphere Commerce to Tomcat)
Advice needed on how to connect to a database in JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014