This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes javabeans problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "javabeans problem" Watch "javabeans problem" New topic
Author

javabeans problem

Srinivas Prasad
Greenhorn

Joined: Jul 31, 2001
Posts: 5
I am trying to run a jsp with a usebean tag, my jsp file is in the defaultwebserver directory, and my javabean class is in the web-inf/classes directory . i am using wl6.0 and the error i am getting is "jsp compile error , cannot resolve symbol" and it gives the usebean line
<jsp:useBean id="xxxx" class="xxxjava" scope="request" />
I changed the scope to session, and even took it out, but the problem exists. Pls help.
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
To use beans in WL Server(in the default directories) you have to set up a classpath pointing to your bean class take a look at:
http://e-docs.bea.com/wls/docs60/jsp/reference.html#59070
or you can allways package your application in a war file an than you won�t face this problem.
Srinivas Prasad
Greenhorn

Joined: Jul 31, 2001
Posts: 5
Thanks for the info. How do I create the war file?
Thanks.
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
you have to use the jar command of jsdk take a look at the jar tutorial at: http://java.sun.com/docs/books/tutorial/jar/index.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javabeans problem
 
Similar Threads
Invalid Standard Action - Error
Tomcat 4.0.1 - cannot create bean of class
About scope page in JSP page
JSP's and class files.....
The value for the useBean class attribute "..." is invalid.