Or You can use an Interceptor with default input for that job.

Best greetings,
Paweł Wielgus.

2008/7/11 Wes Wannemacher <[EMAIL PROTECTED]>:
> Lyallex,
>
> I'm not one of the authors, but I helped...
>
> The example in the book doesn't work the way that typical container
> managed authentication / authorization worked. A successful login
> would be redirected to the AdminPortfolio (regardless of the original
> request). If you are looking for more than this basic functionality,
> take a look at Spring Security (formally, ACEGI). The configuration
> appears daunting at first, but the boilerplate config example seems to
> work for most apps.
>
> -Wes
>
> On Fri, Jul 11, 2008 at 11:59 AM, Lyallex <[EMAIL PROTECTED]> wrote:
>> I have no idea if the authors of the book Struts 2 in Action read this
>> list or if anyone that does
>> knows how to contact them but I have a question for them, or maybe
>> someone else knows the answer
>>
>> Authors
>>
>> On page 99, chapter 4 of your book you state.
>>
>> "Every action in this package will
>> now have authentication with automatic routing back to the login page"
>>
>> You then proceed to hard code the redirect.
>>
>> How can the Login action be used for all actions in when you hard code the 
>> url
>>
>> <action name="Login" class="manning.chapterFour.Login">
>>   <result type="redirect">
>>        /chapterFour/secure/AdminPortfolio.action
>>   </result>
>>   <result name="input">/chapterFour/Login.jsp</result>
>> </action>
>>
>> How then for example would you use the Login action to secure the
>> AddImage action which is also a secure action
>>
>> <action name="AddImage">
>>   <result>/chapterFour/ImageUploadForm.jsp</result>
>> </action>
>>
>> Thank You
>>
>> lyallex
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> --
> Wesley Wannemacher
> President, Head Engineer/Consultant
> WanTii, Inc.
> http://www.wantii.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to