Does anyone know where to place JavaBeans in Tomcat??
And how do I reference these Beans from JSP pages??
And are these beans are to be saved as .class files??
Tomcat is located at D:\Tomcat
Webapps is located at D:\webpage\jsp
I have compiled my Beans and placed them in the
D:\Tomcat
Does anyone know where to place JavaBeans in Tomcat??
And how do I reference these Beans from JSP pages??
And are these beans are to be saved as .class files??
Tomcat is located at D:\Tomcat
Webapps is located at D:\webpage\jsp
I have compiled my Beans and placed them in the
D:\Tomcat\
you can put them anywhere, as long as the directory they are located in
is in Tomcat's classpath ...reference them using the
directive in your JSPs...
Arif Tayebali wrote:
> Does anyone know where to place JavaBeans in Tomcat??
> And how do I reference these Beans from JSP pages??
> And are the
Hi,
Try putting your class in a package. I'm not sure whether servlet containers
like Tomcat are required to honour the "default" package.
You're on the right track though.
--Jeff
On Tue, Mar 27, 2001 at 06:39:27PM -0800, Arif Tayebali wrote:
>
> Does anyone know where to place JavaBeans in T
EMAIL PROTECTED]'
Subject: BY ANY BEANS NECESSARY!
Importance: High
Does anyone know where to place JavaBeans in Tomcat??
And how do I reference these Beans from JSP pages??
And are these beans are to be saved as .class files??
Tomcat is located at D:\Tomcat
Webapps is located at D:\webpage\jsp
On Wed, 28 Mar 2001, Arif Tayebali wrote:
> Does anyone know where to place JavaBeans in Tomcat??
> And how do I reference these Beans from JSP pages??
> And are these beans are to be saved as .class files??
>
Make sure your beans are in a package, and that they are instantiated on
the JSP page
Do instantiate a bean with:
<%@ import="/webapps/myapp/WEB-INF/classes/com/mydomain/TimeBean.class" %>
LMK
-Original Message-
From: Kevin Sangeelee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 12:38 PM
To: '[EMAIL PROTECTED]'
Subject: Re: BY
LMK
>
> -Original Message-
> From: Kevin Sangeelee [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 28, 2001 12:38 PM
> To: '[EMAIL PROTECTED]'
> Subject: Re: BY ANY BEANS NECESSARY!
>
>
> On Wed, 28 Mar 2001, Arif Tayebali wrote:
>
> >
]]
Sent: Wednesday, March 28, 2001 4:47 PM
To: [EMAIL PROTECTED]
Subject: RE: BY ANY BEANS NECESSARY!
Are you saying that the bean will not be loaded if it
is not in a package?!
Thanks,gp
--- Arif Tayebali <[EMAIL PROTECTED]> wrote:
> Do instantiate a bean with:
>
> <%@ import=&
; From: Tom Horn [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 28, 2001 4:47 PM
> To: [EMAIL PROTECTED]
> Subject: RE: BY ANY BEANS NECESSARY!
>
>
> Are you saying that the bean will not be loaded if it
> is not in a package?!
> Thanks,gp
>
> --- Arif Tayebali &
10 matches
Mail list logo