You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kris Schneider <kr...@dotech.com> on 2002/10/12 19:15:05 UTC

Re: curious mapping anomaly: tomcat to weblogic6.1

Can't do that on WLS :-(. I'm pretty sure I've also tried it on WLS 7.0
and it doesn't work there either. One alternative to the
JSPs-under-WEB-INF is to use a security constraint in web.xml to
disallow all access to a directory where all your JSPs are kept.
Unfortunately, this was also broken in WLS 6.1. I actually submitted a
bug for this but I don't know if they ever patched it or fixed it in WLS
6.1sp3. The security constraint bug *is* fixed in WLS 7.0.

jfc wrote:
> 
> Hi,
> 
> We have been porting our code from tomcat+jboss to weblogic 6.1 and have
> encountered rather a strange phenomenon.
> 
> Unless the strange phenomenon is me loosing my marbles, the struts
> framework(1.1b2) is unable to route from the controller to the view
> using the existing forward tag in the action mapping:
> 
> <action path="/testAction"
>             type="com.mycom.myproj.actions.TestAction"
>             parameter="test">
>         <forward name="success" path="/WEB-INF/pages/testSuccess.jsp"/>
> </action>
> 
> The only way that I can get it to work is to move the pages directory
> outside of WEB-INF but it seems this would compromise the security of
> the pages making them accessible from the client browser as opposed to
> restricting access via the 'link only to actions' idea.
> 
> So, this works:
>         <forward name="success" path="/pages/testSuccess.jsp"/>
> 
> Note that the actions themselves have not been touched during the
> porting between tomcat and weblogic and they were working fine under
> tomcat 4.0.1.
> 
> Can anyone tell me what is happening here?
> 
> Cheers
> jfc
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

Re: curious mapping anomaly: tomcat to weblogic6.1

Posted by jfc <jf...@btopenworld.com>.
Kris Schneider wrote:

>Can't do that on WLS :-(. I'm pretty sure I've also tried it on WLS 7.0
>and it doesn't work there either. One alternative to the
>JSPs-under-WEB-INF is to use a security constraint in web.xml to
>disallow all access to a directory where all your JSPs are kept.
>Unfortunately, this was also broken in WLS 6.1. I actually submitted a
>bug for this but I don't know if they ever patched it or fixed it in WLS
>6.1sp3. The security constraint bug *is* fixed in WLS 7.0.
>
>jfc wrote:
>
>>Hi,
>>
>>We have been porting our code from tomcat+jboss to weblogic 6.1 and have
>>encountered rather a strange phenomenon.
>>
>>Unless the strange phenomenon is me loosing my marbles, the struts
>>framework(1.1b2) is unable to route from the controller to the view
>>using the existing forward tag in the action mapping:
>>
>><action path="/testAction"
>>            type="com.mycom.myproj.actions.TestAction"
>>            parameter="test">
>>        <forward name="success" path="/WEB-INF/pages/testSuccess.jsp"/>
>></action>
>>
>>The only way that I can get it to work is to move the pages directory
>>outside of WEB-INF but it seems this would compromise the security of
>>the pages making them accessible from the client browser as opposed to
>>restricting access via the 'link only to actions' idea.
>>
>>So, this works:
>>        <forward name="success" path="/pages/testSuccess.jsp"/>
>>
>>Note that the actions themselves have not been touched during the
>>porting between tomcat and weblogic and they were working fine under
>>tomcat 4.0.1.
>>
>>Can anyone tell me what is happening here?
>>
>>Cheers
>>jfc
>>
>>--
>>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>>For additional commands, e-mail: <ma...@jakarta.apache.org>
>>
>
Thanks for that!

jfc



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>