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 August 24th, 2005, 11:14 PM
Authorized User
 
Join Date: Jun 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Jsp page redirecting itself.

Hi,

Ok this is the situation.
There's a page a.jsp in the htdoc dir, and there another page b.jsp in htdocs/x/b.jsp.

Now, when I try to access page a.jsp (www.sitename.com/a.jsp), for some weird reason the browse it automatically goes to www.sitename.com/x/b.jsp.

I have check the configs, and there is no .htaccess in there.
What I did find was that when access www.sitename.com/a.jsp for some strange reason there is a request parameter in there, and when I call request.getRequestURI() it actually gives me www.sitename.com/x/b.jsp.

Does anyone know what is this happening? and where can I look into?

Thanks


 
Old September 8th, 2005, 02:21 AM
Registered User
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to joshuayip Send a message via MSN to joshuayip Send a message via Yahoo to joshuayip
Default

Is it because of the servlet context mapped ?


 
Old September 8th, 2005, 06:39 AM
Authorized User
 
Join Date: Jun 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

servlet context mapped? Not sure about that.
Can you please explain that in more detail? or is there any way I can check and find out about this?

Thanks a lot.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirecting Page With Alert arnabghosh Classic ASP Professional 0 November 8th, 2007 02:43 AM
Redirecting to another page after a specified time anujrathi ASP.NET 1.0 and 1.1 Professional 1 August 3rd, 2006 12:40 AM
Page Redirecting venkatagiri ASP.NET 2.0 Basics 0 June 22nd, 2006 06:17 AM
refreshing an asp page while redirecting netfresher Classic ASP Basics 0 June 14th, 2006 07:34 AM
Help with jsp login page javaStudent JSP Basics 0 January 27th, 2004 06:08 PM





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