You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Josh <jo...@isa.net.au> on 2002/08/09 06:30:37 UTC

Missing constructor!??

Hi,
    I'm getting the following from tomcat:

C:\tomcat\work\Standalone\localhost\_\empty$jsp.java:66: No constructor
matching FormCheckbox(java.lang.String, java.lang.String, java.lang.String)
found in class au.com.multemedia.wf.ui.FormCheckbox.
                 checkbox = new FormCheckbox("testform","check1","Checkbox
1");

Which seems to be bogus, as FormCheckbox.java contains this:

 FormCheckbox(String newformname, String newvarname, String newdescription)
{

  this.setFormName(newformname);
  this.setVarName(newvarname);
  this.setDescription(newdescription);
  this.setValue("on");

 }

And I know that package is being imported, as tomcat has no problems with
the "FormCheckbox checkbox;" line before the one causing the problem...

Am I overlooking something in plain sight here?

-Josh

"Rimmer, real dumplings, proper dumplings when they're properly
  cooked to perfection, proper dumplings, should not bounce."



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Missing constructor!??

Posted by Andrew <an...@attbi.com>.
You should mark it public if you want to use it outside your package.

- Andrew

> -----Original Message-----
> From: Josh [mailto:josh@isa.net.au] 
> Sent: Friday, August 09, 2002 12:38 AM
> To: Tomcat Users List
> Subject: Re: Missing constructor!??
> 
> 
> I thought constructors weren't supposed to be marked public? 
> Either way I tried and it made no difference.
> 
> -Josh
> 
> "Rimmer, real dumplings, proper dumplings when they're properly
>   cooked to perfection, proper dumplings, should not bounce."
> 
> ----- Original Message -----
> From: "Ben Walding" <be...@walding.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Friday, August 09, 2002 2:34 PM
> Subject: Re: Missing constructor!??
> 
> 
> > Shouldn't the constructor be declared public?
> >
> > Josh wrote:
> >
> > >Hi,
> > >    I'm getting the following from tomcat:
> > >
> > >C:\tomcat\work\Standalone\localhost\_\empty$jsp.java:66: No 
> > >constructor matching FormCheckbox(java.lang.String, 
> java.lang.String,
> java.lang.String)
> > >found in class au.com.multemedia.wf.ui.FormCheckbox.
> > >                 checkbox = new
> FormCheckbox("testform","check1","Checkbox
> > >1");
> > >
> > >Which seems to be bogus, as FormCheckbox.java contains this:
> > >
> > > FormCheckbox(String newformname, String newvarname, String
> newdescription)
> > >{
> > >
> > >  this.setFormName(newformname);  this.setVarName(newvarname);
> > >  this.setDescription(newdescription);
> > >  this.setValue("on");
> > >
> > > }
> > >
> > >And I know that package is being imported, as tomcat has 
> no problems 
> > >with the "FormCheckbox checkbox;" line before the one causing the 
> > >problem...
> > >
> > >Am I overlooking something in plain sight here?
> > >
> > >-Josh
> > >
> > >"Rimmer, real dumplings, proper dumplings when they're properly
> > >  cooked to perfection, proper dumplings, should not bounce."
> > >
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > >For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


AW: Missing constructor!??

Posted by "Power-Netz (Schwarz)" <sc...@power-netz.de>.
> 
> I thought constructors weren't supposed to be marked public? Either way I
> tried and it made no difference.

You have tested your class from a normal java test routine or? 
If you can use it from normal java code, you can use it from jsp,
except you did something wrong in the includes..

M.Schwarz

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Missing constructor!??

Posted by Josh <jo...@isa.net.au>.
I thought constructors weren't supposed to be marked public? Either way I
tried and it made no difference.

-Josh

"Rimmer, real dumplings, proper dumplings when they're properly
  cooked to perfection, proper dumplings, should not bounce."

----- Original Message -----
From: "Ben Walding" <be...@walding.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, August 09, 2002 2:34 PM
Subject: Re: Missing constructor!??


> Shouldn't the constructor be declared public?
>
> Josh wrote:
>
> >Hi,
> >    I'm getting the following from tomcat:
> >
> >C:\tomcat\work\Standalone\localhost\_\empty$jsp.java:66: No constructor
> >matching FormCheckbox(java.lang.String, java.lang.String,
java.lang.String)
> >found in class au.com.multemedia.wf.ui.FormCheckbox.
> >                 checkbox = new
FormCheckbox("testform","check1","Checkbox
> >1");
> >
> >Which seems to be bogus, as FormCheckbox.java contains this:
> >
> > FormCheckbox(String newformname, String newvarname, String
newdescription)
> >{
> >
> >  this.setFormName(newformname);
> >  this.setVarName(newvarname);
> >  this.setDescription(newdescription);
> >  this.setValue("on");
> >
> > }
> >
> >And I know that package is being imported, as tomcat has no problems with
> >the "FormCheckbox checkbox;" line before the one causing the problem...
> >
> >Am I overlooking something in plain sight here?
> >
> >-Josh
> >
> >"Rimmer, real dumplings, proper dumplings when they're properly
> >  cooked to perfection, proper dumplings, should not bounce."
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> >For additional commands, e-mail:
<ma...@jakarta.apache.org>
> >
> >
> >
> >
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Missing constructor!??

Posted by Ben Walding <be...@walding.com>.
Shouldn't the constructor be declared public?

Josh wrote:

>Hi,
>    I'm getting the following from tomcat:
>
>C:\tomcat\work\Standalone\localhost\_\empty$jsp.java:66: No constructor
>matching FormCheckbox(java.lang.String, java.lang.String, java.lang.String)
>found in class au.com.multemedia.wf.ui.FormCheckbox.
>                 checkbox = new FormCheckbox("testform","check1","Checkbox
>1");
>
>Which seems to be bogus, as FormCheckbox.java contains this:
>
> FormCheckbox(String newformname, String newvarname, String newdescription)
>{
>
>  this.setFormName(newformname);
>  this.setVarName(newvarname);
>  this.setDescription(newdescription);
>  this.setValue("on");
>
> }
>
>And I know that package is being imported, as tomcat has no problems with
>the "FormCheckbox checkbox;" line before the one causing the problem...
>
>Am I overlooking something in plain sight here?
>
>-Josh
>
>"Rimmer, real dumplings, proper dumplings when they're properly
>  cooked to perfection, proper dumplings, should not bounce."
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>  
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>