struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Tataryn" <>
Subject Re: Help me shake the cobwebs out...
Date Fri, 30 Aug 2002 14:30:04 GMT

>From: "Craig Tataryn" <>
>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
>Craig W. Tataryn
>Join the world’s largest e-mail service with MSN Hotmail. 
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 

Craig W. Tataryn

Send and receive Hotmail on your mobile device:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message