Re: Class files for jsp
From: Harold Ensle (heensle_at_ix.netcom.com)
Date: 12/16/03
- Next message: Geoffrey: "Re: Recommend an IDE"
- Previous message: news: "Recommend an IDE"
- In reply to: Raymond DeCampo: "Re: Class files for jsp"
- Next in thread: Raymond DeCampo: "Re: Class files for jsp"
- Reply: Raymond DeCampo: "Re: Class files for jsp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 16 Dec 2003 05:09:42 GMT
"Raymond DeCampo" <rdecampo@spam-I-am-not.twcny.rr.com> wrote in message
news:VawCb.8206$JW3.1030@twister.nyroc.rr.com...
> Harold Ensle wrote:
> > I am using Jserv on apache and I cannot instantiate from a class file in
> > JSP.
> > I was using servlets before and any class I put in the same directory
(or
> > other directories indicated with a classpath in the Jservproperties
file)
> > would work fine. But JSP files (which are in a different directory)
cannot
> > seem to find my classes no matter where I put them...whether in a
classpath
> > or not. I even put them in the WEB_INF/classes folder and still nothing.
> > I have searched everywhere for an answer. Does anyone know???
> >
> Harold,
>
> Perhaps you should post some sample code and describe the directory
> structure of your WAR. One question comes to mind however: did you
> import the desired classes with <@page import="" @> ?
>
> Ray
Thank you for the reply. This seems to be part of the problem. So I now have
something
like:
<%@ page import="ZClass"%>
<%
ZClass zc=new ZClass(1);
%>
The class itself has:
public class ZClass
{
ZClass(int x)
{
......
}
}
Now the JSP is acting like it finds the class (no error on the import)
but it is saying there is no constructor of the type to be found.
But I see a constructor there. What did I do wrong?
(I think Java hates me.)
H.Ellis Ensle
- Next message: Geoffrey: "Re: Recommend an IDE"
- Previous message: news: "Recommend an IDE"
- In reply to: Raymond DeCampo: "Re: Class files for jsp"
- Next in thread: Raymond DeCampo: "Re: Class files for jsp"
- Reply: Raymond DeCampo: "Re: Class files for jsp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|