You can make the Action Servlet servlet-mapping anything you want.  Rather than 
use /MyAction.do, I have used /do/MyAction for years. In fact, I usually have 
two servlet-mapping patterns for the Action servlet: "/do/*" and "logout".  
Notice the logout has no "do" at all.  That allows me to put all my Struts 
Actions behind a security constraint of "/do/*" except for "logout", which is 
unprotected.  I had to do that because if you left a window open until it timed 
out, then clicked the logout link, you got a 403 error.  Adding the the 
unprotected "logout" Action Servlet servlet-mapping fixed that problem.

As I typed this email I thought of something to test.  I put my "/logout" 
Action Servlet servlet-mapping before my "/do/*" servlet-mapping and my form 
tags started rendering correctly.  We use an older version of Struts at work, 
and I'm certain we put the /logout servlet-mapping second there.  In any case, 
problem solved.

Antonio Petrelli <[EMAIL PROTECTED]> wrote: Steven Mitchell ha scritto:
>   
>     action
>     /do/*
>   

What? Isn't *.do ?
>   
>   


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


Reply via email to