You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mahesh Balakrishnan <ba...@yahoo.com> on 2002/07/12 10:41:52 UTC

Problem calling JAVA BEAN in JSP

Respected Sir/Madam,

    we have created a web application in tomcat and added jsp's to a directory , we are finding problem in calling bean in jsp files... we want to know where to deploy bean classes in our application.

** DO WE HAVE TO ANY CHANGES IN THE PROPERTIES FILE **

thanking you..


Mahesh


---------------------------------
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access

RE: Problem calling JAVA BEAN in JSP

Posted by Allistair Crossley <a....@obvious.uk.com>.
Yes, that's what I meant, wasn't too clear :)

If you had a bean...

com.somecompany.beans.Bean

your web app structure would be

webapps
 +- appname
     +- WEB-INF
         +- classes
             +- com
                 +- somecompany
                     +- beans
                         +- Bean.class

Ali

-----Original Message-----
From: Ron Day [mailto:ronday@ronday.cc]
Sent: 12 July 2002 16:31
To: Tomcat Users List
Subject: RE: Problem calling JAVA BEAN in JSP


Its a little more complex than this. It is very wise to put beans in
packages, as there are some issues with using the default package for these
classes. Assuming you use a package in the java code, make sure you put the
class files under WEB-INF/classes in the appropriate directory structures
for your packages. i.e "classes" directory is the root for your packages.

-----Original Message-----
From: Allistair Crossley [mailto:a.crossley@obvious.uk.com]
Sent: Friday, July 12, 2002 10:01 AM
To: Tomcat Users List
Subject: RE: Problem calling JAVA BEAN in JSP


as far as I know you just put them in the CLASSES folder of your web app's
WEB-INF folder.

-----Original Message-----
From: Mahesh Balakrishnan [mailto:balamahesh@yahoo.com]
Sent: 12 July 2002 09:42
To: tomcat-user@jakarta.apache.org
Subject: Problem calling JAVA BEAN in JSP



Respected Sir/Madam,

    we have created a web application in tomcat and added jsp's to a
directory , we are finding problem in calling bean in jsp files... we want
to know where to deploy bean classes in our application.

** DO WE HAVE TO ANY CHANGES IN THE PROPERTIES FILE **

thanking you..


Mahesh


---------------------------------
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access


--
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: Problem calling JAVA BEAN in JSP

Posted by Ron Day <ro...@ronday.cc>.
Its a little more complex than this. It is very wise to put beans in
packages, as there are some issues with using the default package for these
classes. Assuming you use a package in the java code, make sure you put the
class files under WEB-INF/classes in the appropriate directory structures
for your packages. i.e "classes" directory is the root for your packages.

-----Original Message-----
From: Allistair Crossley [mailto:a.crossley@obvious.uk.com]
Sent: Friday, July 12, 2002 10:01 AM
To: Tomcat Users List
Subject: RE: Problem calling JAVA BEAN in JSP


as far as I know you just put them in the CLASSES folder of your web app's
WEB-INF folder.

-----Original Message-----
From: Mahesh Balakrishnan [mailto:balamahesh@yahoo.com]
Sent: 12 July 2002 09:42
To: tomcat-user@jakarta.apache.org
Subject: Problem calling JAVA BEAN in JSP



Respected Sir/Madam,

    we have created a web application in tomcat and added jsp's to a
directory , we are finding problem in calling bean in jsp files... we want
to know where to deploy bean classes in our application.

** DO WE HAVE TO ANY CHANGES IN THE PROPERTIES FILE **

thanking you..


Mahesh


---------------------------------
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access


--
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: Problem calling JAVA BEAN in JSP

Posted by Allistair Crossley <a....@obvious.uk.com>.
as far as I know you just put them in the CLASSES folder of your web app's
WEB-INF folder.

-----Original Message-----
From: Mahesh Balakrishnan [mailto:balamahesh@yahoo.com]
Sent: 12 July 2002 09:42
To: tomcat-user@jakarta.apache.org
Subject: Problem calling JAVA BEAN in JSP



Respected Sir/Madam,

    we have created a web application in tomcat and added jsp's to a
directory , we are finding problem in calling bean in jsp files... we want
to know where to deploy bean classes in our application.

** DO WE HAVE TO ANY CHANGES IN THE PROPERTIES FILE **

thanking you..


Mahesh


---------------------------------
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access


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