The point is i precisely do not want that the execute method to be
processed. Because the end user has not submited anything yet and should
not see an html page with an error caused by an exception thrown because
of default fields (even blank ones) ... right ?

I just said this does not happen on banking app. 
And it does with mine. HOW? WHY?

Anyway, note that with tiles, there is not always a JSP corresponding to
a tile. It can be a tile extending another one composed by several JSPs.
And in this case, i have no JSP where my action can be mapped to...

thanks,

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   <[EMAIL PROTECTED]> 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,
> 
> 


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

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


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

Reply via email to