"You cannot forward to actions"

Thanks, that was the idea that was missing from my understanding.

Got it working the way I wanted in a minute :)

Many thanks - appreciated :)
Serdyn du Toit



On Mon, Sep 23, 2013 at 8:47 AM, Lukasz Lenart <lukaszlen...@apache.org>wrote:

> 2013/9/22 Serdyn du Toit <dutoi...@gmail.com>:
> > What I have now is as follows:
> >     <package name="login" namespace="/admin/login" extends="default">
> >         <default-interceptor-ref name="any" />
> >         <action name="login-form">
> >             <result name="success">/admin/login/login.jsp</result>
> >         </action>
> >         <action name="login"
> > class="com.d6.admin.login.AdminUserLoginAction">
> >             <result name="input">/admin/login/login-form.htm</result>
> >             <result
> name="success">/admin/dashboard/dashboard.htm</result>
> >         </action>
> >     </package>
> >
> > The following part is just problematic - I'm struggling to find these
> > resources.  My browser tells me "the requested resources is not
> available",
> > but when I hit the actions directly everything works 100%
>
> You cannot forward to actions - that what you do right now: <result
> name="input">.... - changing extension to .htm doesn't change action
> in a file. You can forward only to static resources (files), actions
> are logical resources.
>
> Remove "struts.action.extension" - stick with default.
>
> Check out struts2-blank application and see how it is solved there -
> example.xml, Login action class, Login.jsp and Login-validation.xml
>
> https://svn.apache.org/repos/asf/struts/struts2/trunk/apps/blank/
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to