In this case, the only constructor for the class is the default one. Equivalent to:
public newitemForm() { super(); }
I think the link should be:
<html:link action="/newitem">
but I only took a quick look through the code...
Quoting Joe Hertz <[EMAIL PROTECTED]>:
> 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;
> > > }
> > > }
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]