Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java class in default package and JSP

 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings,
I'm using Weblogic 5.1 SP 8.
beans.jsp has the following code -
<!-- %@page import="test.LanguageBean" % -->
<jsp:useBean id="languageBean" scope="page" class="test.LanguageBean">
LanguageBean.class is placed under WEB_INF/classes/test and the class is defined to be in the test package.
The above scenario works fine.
When I drop the package statement and move the class to WEB_INF/classes the jsp fails.
The modified jsp is -
<!-- %@page import="LanguageBean" % -->
<jsp:useBean id="languageBean" scope="page" class="LanguageBean">
Any ideas,
Dan
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe William Brogden answers your question in his posting at http://www.javaranch.com/ubb/Forum7/HTML/006099.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic