Yes. UserMaint.jsp does not have an entry in strus-config.xml
because UserMaint.jsp does not contain a form for user to input data.
struts-config.xml does contain entry of AddUserProfile.

Should I transform the UserMaint.jsp to a form?

UserMaint.jsp (contains links only) calls
AddUserProfile.jsp which links with
AddUserProfileAction.java (it contains DispatchAction)
and AddUserProfileForm.java




On Thu, 26 Aug 2004 00:09:16 -0400, Rick Reumann <[EMAIL PROTECTED]> wrote:
> PC Leung wrote:
> 
> > Do you mean my approach is wrong?
> > Originally UserMaint.jsp contains links only.
> > Do I need to transform it as a form?
> 
> As Bill asked earlier, what does you struts-config file look like. My
> guess is you are not getting to your action class because you haven't
> set up a mapping for it.  Look at the sample apps and examples that show
> how to set up your mappings in your struts-config.
> 
> For example you might want something like...
> 
> <action path="/userProfileAction"
>     type="package.path.UserProfileAction"
>     name="userProfileForm"
>     scope="request"
>     validate="false"
>     parameter="method"
>     >
>     <forward name="to_form"    path="/WEB-INF/jsp/form.jsp"/>
>     <forward name="success"    path="/WEB-INF/jsp/foobar.jsp"/>
> </action>
> 
> Your link then would be...
> 
> <html:link page="/userProfileAction?method=setup">
>     <bean:message  key="userMaint.addUserProfile"/>
> </html:link>
> 
> 
> --
> Rick
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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

Reply via email to