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" > To: "Struts Users Mailing List" > 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 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 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 > > 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 > 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... > > > > > > > > Anyone? > > Anyone? > > Anyone? > > > > > > > > >From: "Craig Tataryn" > > >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! > > > > > > > > >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: > > > > > >For additional commands, e-mail: > > > > > > > > > > > > Craig W. Tataryn > > Programmer/Analyst > > Compuware > > > > _________________________________________________________________ > > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > > > ---------------------------------------------------------------------------- ---- > -- > To unsubscribe, e-mail: > For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: