You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Affan Qureshi <qu...@etilize.com> on 2003/02/28 07:01:26 UTC
1.1rc1 Error: Path index.jsp does not start with a "/" character
I have been using Struts 1.1b2 and tiles in my application and have defined
forwards like:
<forward name="Success" path="index.jsp?selected=1" redirect="false"/>
where forward paths were JSP pages, whithout the starting "/" for paths and
it worked ok. But this does not work when I installed Strut 1.1rc1 coz it
gave the exception:
java.lang.IllegalArgumentException: Path index.jsp?selected=1 does not start
with a "/" character
Have I been doing it wrong until now? Is this a TilesRequestProcessor issue?
I had done so, so that I can deploy my app under any context/module etc. and
have no dependency on root path.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: 1.1rc1 Error: Path index.jsp does not start with a "/" character
Posted by Max Cooper <ma...@maxcooper.com>.
/index.jsp gets translated (as needed) to account for the context path
automatically. The paths that start with / are evaluated relative to
your web app. You can use the /index.jsp style paths and deploy your app
with any context path without having to change anything.
-Max
On Thu, 2003-02-27 at 22:01, Affan Qureshi wrote:
> I have been using Struts 1.1b2 and tiles in my application and have defined
> forwards like:
>
> <forward name="Success" path="index.jsp?selected=1" redirect="false"/>
>
> where forward paths were JSP pages, whithout the starting "/" for paths and
> it worked ok. But this does not work when I installed Strut 1.1rc1 coz it
> gave the exception:
>
> java.lang.IllegalArgumentException: Path index.jsp?selected=1 does not start
> with a "/" character
>
> Have I been doing it wrong until now? Is this a TilesRequestProcessor issue?
> I had done so, so that I can deploy my app under any context/module etc. and
> have no dependency on root path.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org