Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 26th, 2009, 10:59 AM
Registered User
Join Date: Jan 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default redirecting in jsp to other pages

i m creating a page to validate users against entry in database(userid,password)
it works just fine.
i want to redirect users after succesful login to other page and if it fails then to login page again.
i tried it using(although i know it works with servlets)
sendRedirect(url) .
abviously it does not works.
how to do that.
please help.
Old January 26th, 2009, 05:37 PM
Friend of Wrox
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts

Should have worked.

If you are in the JSP page, itself (not in some Bean or other object), you should be able to just code
Show your code, maybe??
Old January 27th, 2009, 12:43 AM
Posts: n/a

U can use jsp:forward also
Old January 30th, 2009, 09:31 AM
Registered User
Join Date: Jan 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts

Originally Posted by ;233743
thanks a lot
Old Pedant and jomet

Similar Threads
Thread Thread Starter Forum Replies Last Post
JSP pages not working after reinstalling Tomcat sagar.singh Apache Tomcat 3 October 24th, 2007 01:28 AM
Jsp page redirecting itself. allang JSP Basics 2 September 8th, 2005 06:39 AM
Redirecting eldanh ASP.NET 1.0 and 1.1 Basics 3 August 9th, 2004 09:02 AM
Web pages constructing: I-mode(mobile) pages karib Dreamweaver (all versions) 3 June 6th, 2004 09:48 AM
Redirecting User to different pages fletched PHP Databases 1 March 29th, 2004 04:38 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.