To borrow from the title of a movie:

Dude, where's my constructor?

 
> > 
> > this is my newitemForm.java
> > newitemForm.java
> > =============
> > package net.foong;
> > 
> > import javax.servlet.http.HttpServletRequest;
> > 
> > import org.apache.struts.action.ActionForm;
> > import org.apache.struts.action.ActionMapping;
> > 
> > public class newitemForm extends ActionForm {
> >         private String itemName;
> >         private int quantity;
> >  
> >         public void setItemName(String itemName) { 
> > this.itemName=itemName; 
> > }
> >         public void setQuantity(int quantity) { 
> > this.quantity=quantity; }
> > 
> >         public String getItemName() { return itemName; }
> >         public int getQuantity() { return quantity; }
> >         public void reset(ActionMapping mapping, HttpServletRequest 
> > request) {
> >                  this.itemName = null;
> >                  this.quantity = 0;
> >          }
> > }
> 
> 



-- 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to