February 10, 2009 at 7:23 AM
There are two methods in which one can navigate from one page to another page, a page can be a servlet or jsp
1. Using sendRedirect() method of request object
2. Using forward() method of RequestDispatcher. RequestDispatcher can be created either from ServletContext or ServletRequest.
If you want to navigate within the context, get the RequestDispatcher object from ServletRequest. If you want to navigate to a page in a different context, get the RequestDispatcher object from ServletContext.
Related Tutorials/Questions & Answers:
Redirection in struts - StrutsRedirection in struts
Hi Friends
Without sendredirect can we forward a page in struts Hi
There are more ways to forward one page to another page in struts.
For Details you can click here: http
Advertisements
Country wise redirection to filesCountry wise
redirection to files **how can i redirect a file to another file on the basis of countries?
I'm using this code, please correct if i am wrong**
<script language="JavaScript" src="http://www.geoplugin.net
Making 301 redirection by using <c:redirect>Making 301
redirection by using How can i set the status as 301 when using tag?
When i use , I am able to redirect to the desired URL (here, Google page) but I get 302 as the status of redirect. I need this status as 301.
Any
Struts code - StrutsStruts code
Hi Friend,
Is backward
redirection possible in struts.If so plz explain me
Use javascript loops..Use javascript loops.. Write a Javascript code to create a
redirection script based on day of the week
Proxies, it is advanced traffic
redirection tool. It can provide you access to computers behind..., it is advanced traffic
redirection tool. It can provide you access to computers behind
Dojo: How MenuItem helps page redirction - AjaxDojo: How MenuItem helps page redirction Hi,
I am wondering that if "MenuItem" accepts an event of window.location (page
redirection) like this :
Response : NO, stay at same page.
Is there any simple way
jsp - Java Beginnersjsp how to display the "login error message"... in the same page in jsp, without
redirection. pls help me with code in urgent Use Ajax........
function doit()
var xmobj = new xmlhttprequest();
var target
VoIP Application and call control, such as hold, forward,
redirection, conferencing, and SIP
HTML Layout, then the automatic
redirection of the page can be done by using http-equiv attribute
JavascriptTutorials, but they help with learning prompts, alerts, and
redirection
.In a two-part