Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW DO I GET MY JSPs TO LOCATE MY JAVABEAN FILES??? 1

Status
Not open for further replies.

bublathejuggla

Technical User
Sep 21, 2002
16
GB
Hi All.
i am having a problem getting the server i am using (Brunhilde) to recognise where my javabeans are, resulting in an error due to it looking in the wrong place.

My JSPs are in the Tomcat directory and my javabeans are in the directory /tomcat/WEB-INF/classes/project1/

i have been advised to keep the javabeans as part of a package (called project1 in this case) and that the directory the javabeans go in must have the same name as the package.

The tag i am using to call the javabeans is:

<jsp:useBean id=&quot;mp3convert&quot; class=&quot;project1.Mp3Encoder&quot; scope=&quot;page&quot;/>

The problem is, the server running under another directory ( /usr/jakarta-tomcat or something along these lines) is searching for the javabean files relative to itself rather than my user tomcat folder. how do i get it to refer to the files in my web directory rather than searching for a file elsewhere that doesnt exist?

please help
 
I believe that your jsps are stored in the wrong folder. The jsps should only go into tomcat/WEB-INF
The class files should go to tomcat/WEB-INF/classes/project1

That might be an issue
 
thanks for the reply.
il give it a go and should post a reply tomorrow.
cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top