What is the difference between sendRedirect() and forward()?
in what situations do we have to use send redirect()
instead of forward().

Answer Posted / guest

Both senredirect and forward metods are used to forward the
request to another resourse
but
1)the request dispatcher() is used when we want to redirect
the client requestto some other resourse (ie:out of context)
or whenver we want to redirect errors
where as
use forward()when we sending a page that is within in the
same site
2)forward() are executed on the serverside but send redirect
()are on the client side


jawahar

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is full form of j2ee?

524


CANDOR Services, a leading provider of next-generation staffing services, draws from unparalleled resources and expertise to offer you innovative, quality workforce solutions. We have openings for "J2EE ARCHITECT" with one of our clients. Client is CMM Level 5 company. Location : Hyderabad Roles A J2EE Architect with expertise in Web Architecture (covering Spring MVC, AOP, Webflow, Struts, Tiles, Hibernate, JAAS, Web Application Performance Turning & Measurement) as part of Solutions Architecture Group: Position involves in providing architectural vision, conceptualize and provide architectural approaches, create models and specifications, and validating the architecture against requirements and assumptions. Also involves in providing oversight over ongoing projects as a reviewer and auditor Educational Requirements A minimum of BS or MS (MS preferred) in Computer Science or Engineering or equivalent experience in the IT industry. Skill Sets Overall 8-10 Years of experience in IT industry with 3-4 Years of experience in Service industry Technology Skills Java, J2EE, MVC Frameworks (Struts/WebWork/JSF/Spring), Spring, AOP, WebFlow, ORM Tools (Hibernate/Ibatis/JDO/Tapestry), App servers, Databases, JAAS Web Application Performance Tuning & Measurement 6+ years Java software development experience. 4+ years of enterprise Java development, with emphasis on web-based applications. Strong relational database and SQL skills (5+ years). Mail to : anuradha.k@candorservices.co.in

3073


Describe secure socket layer (ssl)?

508


What is javaserver pages standard tag library (jstl)?

488


What are the java backend technologies?

476






What is j2ee and j2se?

476


What is java gui?

496


Why is java considered dynamic?

548


What is javac written?

503


What is a thin client?

571


What is jetty in java?

503


Give some advantages of orm (object-relational mapping)?

542


What are the different java technologies?

484


Why is java called object oriented?

497


What is comment?

533