Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JasperException

Status
Not open for further replies.

Canelas

Programmer
Feb 20, 2008
46
PT
Hello everyone.

I have a JSP page, calling an external class, within the web-inf/package/classname.class.

However i keep getting the following error:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 37 in the jsp file: /2all_receipt.jsp
Generated servlet error:
NBMOBSMS.Sender cannot be resolved to a type

An error occurred at line: 37 in the jsp file: /2all_receipt.jsp
Generated servlet error:
NBMOBSMS.Sender cannot be resolved to a type

I've been banging my head over this, but i can't figure it out.

Any ideas?
Thanks in advance.
 
1)If NBMOBSMS is a JavaBean class, it has to be public.(public access modifier)
2) You have to import the JavaBean in jsp.
You may post the source for your jsp and class here if you still have any problem.
 
I fixed it.
I don't know why, but i had to recompile all the classes in java.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top