• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Problem in Calling Bean from JSP

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi to all
I am new to this forum.
I am facing some problem about calling bean class from jsp pages.
I have placed bean class in WEB-INF\classes\com\abc\DB.class

now when i call bean by using
<jsp:useBean id="loadDB" scope="session" class="com.abc.DB"/>

it's give me message

org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 13 in the jsp file: /index.jsp
Generated servlet error:
[javac] Compiling 1 source file

is there any entry which i am missing.Any one Please help me out.

:roll:
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi! suhani
Ok i got your point but tell me one think your web server propery work or not? becoz your compiling .jsp server requiered tool.jar or comman.jar or servlet.jar file in your lib folder and if after done all these thinks, you can try to use beanname attribute and 1st compile .java file and then only try to execute .jsp in browser.'
Than after you have any query , plz email on me [email protected].

best regards
kirti
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

An error occurred at line: 13 in the jsp file: /index.jsp



What's on line 13?
 
I am Arthur, King of the Britons. And this is a tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic