Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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 app for network diagnostics
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
subject: passing parameters to JSP page
Need Help with JSP & Servlet
Best Strategies of Passing output data to web tier
basic html ->JSP-> javabean-> database questions
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-2013