• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

useBean in JSP

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,
I am new to WebLogic and I am using ver 7.0. All I have to do is to call a bean from a jsp using useBean action.
<jsp:useBean id="book1" name="Book"/>
i have put my jsp in c:\jsptest\test.jsp
and Book.class in c:\jsptest\web-inf\classes\Book.jsp
I have created the war file using ANT utility and deployed the war. I can get the JSP but it is giving compilation error stating that it cannot recognise the Book class.
Can anybody pl help.
Regards,
Mustang.
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have u imported the class use
page directive?
 
mustang india
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks pradeep,
The issue is solved. I had to import the bean. What I dont understand is why do I have to import the bean when it is in the default package.
Mustang.
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Beans must have a package and do not have "default" package. this is a requirement.
reply
    Bookmark Topic Watch Topic
  • New Topic