You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by liooil <li...@ifrance.com> on 2004/09/06 10:32:17 UTC

action conf with tile ?

Hello world,

i'm trying to modify a simple and sample banking webapp from :

http://examples.oreilly.com/0596006519/

To reach a login page, their parameter in struts-config.xml is like :

<action
    path="/login"
    type="com.oreilly.struts.banking.action.LoginAction"
    scope="request"
    name="loginForm"
    validate="true"
    input="/login.jsp">
    <forward name="Success" path="/action/getaccountinformation"
redirect="true"/>
    <forward name="Failure" path="/login.jsp" redirect="true"/>
  </action>


I've neerly the same need, so i did neerly the same :

<action  path="/authentication"  
type="com.equant.ref_ce.action.AuthenticationAction"
 name="AuthenticationForm"
 scope="request"
 input="authenticationLayout"
 validate="false">     
   <forward name="Sucess" path="/action/menu" redirect="true"/>
</action> 

The only difference i see, is my input is a tile. And the annoying
behaviour i see, is my configuration make a direct call to the execute
of my Action (throwing an exception, and so on ...). With the banking
app it does not. Of course.

Where the thing i havn't understood ?
Please help.

another newbie to struts,


_____________________________________________________________________
Un mot doux à envoyer? Une sortie ciné à organiser? Faites le en temps
réel avec MSN Messenger! C'est gratuit!   http://ifrance.com/_reloc/m

___[ Pub ]____________________________________________________________
Inscrivez-vous gratuitement sur Tandaime, Le site de rencontres !
http://rencontre.rencontres.com/index.php?origine=4


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: action conf with tile ?

Posted by Lai Boon Hui <ba...@yahoo.com>.
To get the behaviour that you desire you can write
another action-mapping to just direct to the jsp page.
When you call the action
http://localhost:8080/banking/login.do 
the execute method will be processed.


--- liooil   <li...@ifrance.com> wrote:

> Hello world,
> 
> i'm trying to modify a simple and sample banking
> webapp from :
> 
> http://examples.oreilly.com/0596006519/
> 
> To reach a login page, their parameter in
> struts-config.xml is like :
> 
> <action
>     path="/login"
>    
> type="com.oreilly.struts.banking.action.LoginAction"
>     scope="request"
>     name="loginForm"
>     validate="true"
>     input="/login.jsp">
>     <forward name="Success"
> path="/action/getaccountinformation"
> redirect="true"/>
>     <forward name="Failure" path="/login.jsp"
> redirect="true"/>
>   </action>
> 
> 
> I've neerly the same need, so i did neerly the same
> :
> 
> <action  path="/authentication"  
> type="com.equant.ref_ce.action.AuthenticationAction"
>  name="AuthenticationForm"
>  scope="request"
>  input="authenticationLayout"
>  validate="false">     
>    <forward name="Sucess" path="/action/menu"
> redirect="true"/>
> </action> 
> 
> The only difference i see, is my input is a tile.
> And the annoying
> behaviour i see, is my configuration make a direct
> call to the execute
> of my Action (throwing an exception, and so on ...).
> With the banking
> app it does not. Of course.
> 
> Where the thing i havn't understood ?
> Please help.
> 
> another newbie to struts,
> 
> 
>
_____________________________________________________________________
> Un mot doux � envoyer? Une sortie cin� � organiser?
> Faites le en temps
> r�el avec MSN Messenger! C'est gratuit!  
> http://ifrance.com/_reloc/m
> 
> ___[ Pub
>
]____________________________________________________________
> Inscrivez-vous gratuitement sur Tandaime, Le site de
> rencontres !
> http://rencontre.rencontres.com/index.php?origine=4
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org