struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Barefoot" <Joe.Baref...@motiva.com>
Subject RE: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up)
Date Fri, 30 Aug 2002 20:11:28 GMT
You're welcome.  Sorry I was a bit terse/militant, but this list has been spammed with so much
crap lately it's starting to overwhelm my usually pacific demeanour. :)

peace,
Joe

> -----Original Message-----
> From: Craig Tataryn [mailto:craiger316@hotmail.com]
> Sent: Friday, August 30, 2002 1:12 PM
> To: Struts Users Mailing List
> Subject: Re: Help me shake the cobwebs out... (also
> http://www.computer-programmer.org/articles/struts/ is back up)
> 
> 
> Thank you for your answer.  I actually found the answer in the taglib
> documentation for html:form, I hadn't seen it before.
> 
> Craig.
> 
> 
> ----- Original Message -----
> From: "Joe Barefoot" <Joe.Barefoot@motiva.com>
> To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> Sent: Friday, August 30, 2002 2:10 PM
> Subject: RE: Help me shake the cobwebs out...
> 
> 
> > The Struts controller knows what form bean to instantiate 
> because you put
> a form bean name reference in your action mapping.  The 
> mapping must contain
> the URL for your action.  In your JSP <html:form> tag, you 
> reference an
> action's URL.  The controller simply matches this URL to your 
> form bean
> reference through the actionMapping, then grabs the form bean 
> class type
> from your <form-bean> declaration in your struts-config, and 
> instantiates
> that class to populate with values from your request.  If you 
> have no form
> bean reference in your action mapping, then you cannot use an 
> <html:form>
> tag which refers to that action mapping's URL, as Sri already 
> pointed out
> below.
> >
> > b.t..w, if you had take the time to RTFM since yesterday, 
> you could have
> answered your own question and then some.  The Struts user 
> manual is a nice
> quick start for configuration, and the JavaDocs are quite 
> comprehensive.
> Click on a package, then it's description, and you will get plenty of
> documentation, particularly with the tag packages.
> >
> > peace,
> > Joe
> >
> > -----Original Message-----
> > From: Sri Sankaran [mailto:Sri.Sankaran@sas.com]
> > Sent: Fri 8/30/2002 10:47 AM
> > To: Struts Users Mailing List
> > Cc:
> > Subject: RE: Help me shake the cobwebs out...
> >
> >
> >
> > You haven't mentioned if there is *any* form-bean 
> associated with this
> action mapping.  You are forced to specify one only if you use the
> <html:form> tag.
> >
> > So, since you are simply refreshing the page it worked.
> >
> > Did I miss something?
> >
> > Sri
> >
> > -----Original Message-----
> > From: Craig Tataryn [mailto:craiger316@hotmail.com]
> > Sent: Friday, August 30, 2002 10:30 AM
> > To: struts-user@jakarta.apache.org
> > Subject: Re: Help me shake the cobwebs out...
> >
> >
> > <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>
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>
>
>
>


----------------------------------------------------------------------------
----


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

--
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