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