Hi Dave, thanks a lot for your support. I have been able to save my face because of you. I kept going becuase of you and you know, now its very clear how it populates. Thanks a ton, Prashant
--- On Thu, 28/5/09, Dave Newton <newton.d...@yahoo.com> wrote: From: Dave Newton <newton.d...@yahoo.com> Subject: Re: how to get productID from the url into action class. To: "Struts Users Mailing List" <user@struts.apache.org> Date: Thursday, 28 May, 2009, 4:53 PM Prashant Singh wrote: > How ever I have a little doubt about how the population of the private > variables declared takes place. Because you have a public setProductID(), and your request has a productID parameter. That's how S2 works. > So my ultimate question is what is the exact way of populating a variable in > an action class. The way I, and everybody else, has been telling you: > public class Productdisplay extends ActionSupport { > public String productID; > public void setProductID(String productID) { > this.productID = productID; > } > } If your request has a productID and you have things configured correctly it will be set in your action by S2. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org Explore and discover exciting holidays and getaways with Yahoo! India Travel http://in.travel.yahoo.com/