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:   <mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>>
>
Thanks for that!

jfc



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to