File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
redirect="true" not working
Joined: Jul 12, 2002
May 04, 2006 09:54:00
I'm getting the following error message when I have redirect="true" in struts-config.xml:
description The requested resource (/siteRoot/WEB-INF/jsp/testJSP.jsp) is not available.
If I remove the forward, I get the
's output on another page so clearly
is finding things.
The browser seems to be trying to access the correct file and the JSP file indeed seems to be in the right place.
Here's the part of the forward definition that seems to be problematic:
Any ideas why this wouldn't work?
I shouldn't need to include "siteRoot" in the forward's path above, should I?
Thanks in advance for any help or suggestions.
Joined: Feb 08, 2006
May 04, 2006 10:05:00
When you "redirect" it informs the browser to go fetch a different page. Outside users do not have access to files located under WEB-INF. Instead of redirecting to a jsp page, you can redirect to an Action that will show that page.
Joined: Jul 12, 2002
May 04, 2006 11:07:00
Joined: Mar 30, 2006
May 08, 2006 04:03:00
i m little confuse here
by redirecting you want the atual pagename in url. am i write?
what i want is that when i login i want
as my URL
but actually it gives me url like
and i think redirect="true" can help me but how to do that?
Mike is asking the same for this reason?
<forward name="student" path="/jsp/studentInformation.jsp" />
<forward name="success" path="/jsp/testListing.jsp" />
<forward name="failure" path="/jsp/login.jsp" />
Joined: Nov 15, 2004
May 08, 2006 04:45:00
There is NO attribute called redirect in action tag. It should be part of forward tag.
Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1
JSTL Tag Documentation
I agree. Here's the link:
subject: redirect="true" not working
Struts Cancel Button submits the form
Spring MVC behaviour for Struts
How to use the ShowView Action?
Struts redirect in webphere 4.05
Module and Validation Framework (path error)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015