Question: Redirection

Ads

 
 
 

Share on Google+Share on Google+

Rajendra
Redirection
2 Answer(s)      8 years ago
Posted in : JSP-Servlet
Ads
View Answers

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.


February 10, 2009 at 7:24 AM


Sorry, sendRedirect() method is available in response object

Ads









Related Tutorials/Questions & Answers:
Redirection in struts - Struts
Redirection 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
Country wise redirection to files
Country 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
Advertisements
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
PHP Redirection Redirecting URL Tutorial, PHP Redirecting URL
redirection source examples. The first method stands on HTTP protocol advantages... specified in URL. Perl source code. It is easy to write a redirection in Perl... of output in your redirection script. Note that \n\n symbols in the end
Use javascript loops..
Use javascript loops..  Write a Javascript code to create a redirection script based on day of the week
Struts code - Struts
Struts code   Hi Friend, Is backward redirection possible in struts.If so plz explain me
Proxies
, it is advanced traffic redirection tool. It can provide you access to computers behind... redirection tool. It can provide you access to computers behind a firewall or NAT
Dojo: How MenuItem helps page redirction - Ajax
Dojo: 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 Beginners
jsp  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
Remote Desktop Services
and improved device remoting support with USB Redirection for Session Virtualization
Display alert box on clicking link
, it will redirect us to linked page. Note here, the redirection is due to link not due
Solve using only Javascript loops...
' value from user. 3) to create a redirection script based on day of the week. 4
VoIP Application
and call control, such as hold, forward, redirection, conferencing, and SIP
JavascriptTutorials
, but they help with learning prompts, alerts, and redirection .In a two-part
HTML Layout
it for the old url, then the automatic redirection of the page can be done
Tutorials   
Java Spring Hibernate Struts Training fat image from db fat image from db fat image from db fat image from db unable to get value returned from javascript variable in page How to change image size before adding to mysql using jsp Design a registration.jsp page with input for user registration details Cart Quantity jsp servlet coding issue servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ? image pdf marking pdf marking Multiple image upload using JSP Read code from excel sheet and upload into database using JSP Student java about search engine Convert BLOB to PDF and save it to a location how to copy files from remote to local machine using SFTP SSL in java? Like Team viewer Socket and Servert -Jsp how to copy files from remote location to local using java? How To Store Multilple Images In MySQL database dynamically with image uploader and then retrieve them in image gallery using java how to create SOAP based web service in java? how to fetch data from mysql database table and draw a bar chart on that data using in jsp how to create users in LDAP using java? how to authenticate user using TIVOLI api in java? how to create users using IBM Tivoi API in jsp/servelet? Java/J2ee Please explain this code as many packages and classes are unknown to me .! how to download the uploaded folder files using jsp Login Query image is display from path of mysql database please reply the code to store dynamic fields in database? Reloading issue in jsp How to get Button Id ? calling one jap page from another jsp page login login Problem to get connection from DAO class to JDBC Page Loading Time Fix table's column's name row(1st row of the table) so that it does not move up when the table is scrolled up to view more rows below Sending hidden values

Ads

 
Advertisement null

Ads