?
Solved

HOW DO I SET THE PATH TO MY JAVABEANS VIA MY JSPs???

Posted on 2003-03-24
5
Medium Priority
?
189 Views
Last Modified: 2010-04-20
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="mp3convert" class="project1.Mp3Encoder" scope="page"/>

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
0
Comment
Question by:bublathejuggla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 2

Accepted Solution

by:
polmint earned 1000 total points
ID: 8435439
Hi bublathejuggla,

After you write the useBean  tag are u setting the property for the Bean id?

If not set the property as below.

<jsp:useBean id="mp3convert" class="project1.Mp3Encoder" scope="page"/>
<jsp:setProperty name="mp3convert" property="*"/>

Hope this should solve your problem.

If it doesnt solve - kindly let me know how your are physically storing files in what directories on the tomcat server.

Thanks
0
 
LVL 2

Expert Comment

by:polmint
ID: 8435757
Hi bublathejuggla,

After you write the useBean  tag are u setting the property for the Bean id?

If not set the property as below.

<jsp:useBean id="mp3convert" class="project1.Mp3Encoder" scope="page"/>
<jsp:setProperty name="mp3convert" property="*"/>

Hope this should solve your problem.

If it doesnt solve - kindly let me know how your are physically storing files in what directories on the tomcat server.

Thanks
0
 
LVL 2

Expert Comment

by:polmint
ID: 8640953
hi bublathejuggla,

you havent come back on your query. Could u solve it.

Thanks,
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question