struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Tataryn" <craiger...@hotmail.com>
Subject Re: Help me shake the cobwebs out...
Date Fri, 30 Aug 2002 14:30:04 GMT
<stein:ben>
   Anyone?
   Anyone?
   Anyone?
</stein:ben>


>From: "Craig Tataryn" <craiger316@hotmail.com>
>Reply-To: craiger@tataryn.net
>To: struts-user@jakarta.apache.org
>Subject: Help me shake the cobwebs out...
>Date: Thu, 29 Aug 2002 17:52:33 -0500
>
>Alrighty, really have been out of the loop for the last year w.r.t Struts, 
>last time I used it was pre-1.0.  However, I will be using it on a project 
>shortly and I have been brushing up.  Can you help me with this query?  I 
>have set a simple demo where I have made a loginUser Action, who's input 
>attribute is "/form/loginUser.jsp".  Inside the execute method of this 
>action, I simply return mappings.getInputForward();
>
>Fair enough typically in my controller I might have some logic to figure 
>out if the user was valid, and if they are I would forward them to some 
>other handler, if they were invalid I would set some error messages and 
>then do what I did above with the getInputForward() method.
>
>However, I then did this in my browser:
>
>http://localhost:8080/mywebapp/form/loginUser.jsp and it worked!  How did 
>the Struts controller know what form bean to create for that loginUser.jsp? 
>  Is it because I have loginUser.jsp as my input attribute of the action?  
>What if I wanted to use the same input view (jsp file) for two separate 
>handlers?  How would it decide then which form bean to create?
>
>Also, can someone give me the Coles notes version on:
>1) DnyaForms
>2) Plugins
>
>Thanks!
>
></tataryn:craig>
>Craig W. Tataryn
>Programmer/Analyst
>Compuware
>
>_________________________________________________________________
>Join the world’s largest e-mail service with MSN Hotmail. 
>http://www.hotmail.com
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>
>


Craig W. Tataryn
Programmer/Analyst
Compuware

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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


Mime
View raw message