Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in Calling Bean from JSP  RSS feed

 
Suhani arora
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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:
 
kirtikumar patel
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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 kirti_engineer@rediffmail.com.

best regards
kirti
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An error occurred at line: 13 in the jsp file: /index.jsp


What's on line 13?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!