File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes automatic forward? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "automatic forward?" Watch "automatic forward?" New topic
Author

automatic forward?

�yvind Valland
Greenhorn

Joined: Sep 27, 2003
Posts: 16
Hi!
I want to make a .jsp page make an automatic request to a servlet when it is called. How do I do this?
My little web application is a simple representation of an online shoppingcart. One page in this application is for viewing previous orders (view.jsp). Now, throughout the whole application there are several forms which all submit their data to a controller servlet. This servlet executes code based on the value held in 'action', a hidden form element. Rather than having a form where I have to click a button to retrieve my orders, I would like to make the view.jsp page automatically forward the request to the servlet when called upon. How do I do this?
Cheers!
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Use <jsp:forward> tag in JSP


Groovy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: automatic forward?
 
Similar Threads
execute method
Clickable links and request params in a dataTable
Problem with getRequestDispatcher()'s forward. Any alternatives?
redirection
URL remapping for FacesServlet