A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
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
It is sorta covered in the
JavaRanch Style Guide
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