Look for the bean called "filterInvocationInterceptor" in the file
sercurity.xml. You should have a line in the property called
"objectDefintionSource" that looks like:

    /myaction.html*=ROLE_ANONYMOUS

Note that this line should appear before the line
/**/*.html*=ROLE_ADMIN,ROLE_USER

Mike.


On 7/2/07, ujjala <[EMAIL PROTECTED]> wrote:


How can i mark /myaction.html as having anonymous access in mu
security.xml.
please give me the proper syntax.

Michael Horwitz wrote:
>
> You may need to mark /myaction.html as having anonymous access in your
> security.xml configuration.
>
> Mike.
>
> On 6/28/07, ujjala <[EMAIL PROTECTED]> wrote:
>>
>>
>> I tried it but
>> It does not work.
>> It seems that without authentication we can not go into any action of
>> strutsconfig.
>>
>>
>> mraible wrote:
>> >
>> > You should probably go to /myaction.html - that should work.
>> >
>> > Matt
>> >
>> > On 6/28/07, ujjala <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I want to write a action class where flow should go if login
>> >> authentication
>> >> failure.
>> >> For this i did mapping in strutsconfig.
>> >> Then i put value="/myaction" for "authenticationFailureUrl" in
>> >> applicationcontextsecurity.xml.
>> >>
>> >> <bean id="authenticationProcessingFilter"
>> >> class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">
>> >>         <property name="authenticationManager"
>> >> ref="authenticationManager"/>
>> >>         <property name="authenticationFailureUrl"
value="/myaction"/>
>> >>         <property name="defaultTargetUrl" value="/"/>
>> >>         <property name="filterProcessesUrl"
>> value="/j_security_check"/>
>> >>         <property name="rememberMeServices"
ref="rememberMeServices"/>
>> >>     </bean>
>> >>
>> >> In my action i forward it to /login.jsp?error=true.
>> >> In myaction i want to access database also to update some value on
the
>> >> basis
>> >> login username.
>> >> But problem is that if authentication fails(password does not match)
>> it
>> >> does
>> >> not access strutsconfig action(/myaction).
>> >> So as a result i want to go in /myaction after authentication
failure
>> and
>> >> also i want to access dao to access
>> >> database.
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>>
http://www.nabble.com/To-go-in-a-action-after-authenticationfailure-tf3993510s2369.html#a11340285
>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>
>> >>
---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > http://raibledesigns.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/To-go-in-a-action-after-authenticationfailure-tf3993510s2369.html#a11341383
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

--
View this message in context:
http://www.nabble.com/To-go-in-a-action-after-authenticationfailure-tf3993510s2369.html#a11388746
Sent from the AppFuse - User mailing list archive at Nabble.com.

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


Reply via email to