Matt, you are right. It doesn't like /user/*.
However, it still asks me to sign in after I submit the form even I set it
ROLE_ANONYMOUS in security.xml as below
/**/*.html*=admin,user
/myform.jsp*=ROLE_ANONYMOUS,admin,user
/myform2.html*=ROLE_ANONYMOUS,admin,user
Beside, does /myform2.html map to /pages/myform2.jsp (or myform2.action if
no .jsp)? When I try /myform2.html, it jumps to login.jsp. But in appfuse
sample, /signup.html seems working well to map to /pages/signup.jsp.
So besides the xwork.xml Mike mentioned, is any other config file to control
this mapping?
Thanks a lot, -Bruce
mraible wrote:
>
> Do you have an Action for register.jsp? It looks like it's getting
> confused and links that /user/* maps to UserAction.
>
> Matt
>
> On 8/10/07, BruceLee <[EMAIL PROTECTED]> wrote:
>>
>> Team,
>>
>> I tried to add a new page web/user/register.jsp to my project based on
>> appfuse 1.9.4.
>>
>> When I submit a form on localhost:8080/myprj/user/register.jsp, it
>> redirect
>> to login.jsp.
>>
>> If I login with an active user first, then I get error
>> org.acegisecurity.userdetails.UsernameNotFoundException: user
>> 'userRegister'
>> not found...
>> ...
>> at com.cmn.webapp.action.UserAction.edit(UserAction.java:115)
>>
>> But my jsp page never directly calls this edit() method. I wonder if some
>> security or inceptor setup not good?
>> Basically I don't want any security feature by now. I just want to submit
>> a
>> form and save the data to table User.
>>
>> my xwork.xml
>> <action name="userRegister" class="userAction" method="create">
>> <result name="success">/WEB-INF/pages/user/main.jsp</result>
>> <result name="error"
>> type="redirect">/user/register.jsp</result>
>> <result
>> name="input">/WEB-INF/pages/user/register.jsp</result>
>> </action>
>>
>> More http://www.nabble.com/file/p12085995/UsernameNotFoundException.txt
>> UsernameNotFoundException.txt error log, see attached file
>> Thanks! -Bruce
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Cannot-add-new-.jsp-page-to-appfuse-1.9.4-tf4246912s2369.html#a12085995
>> 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/Cannot-add-new-.jsp-page-to-appfuse-1.9.4-tf4246912s2369.html#a12097846
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]