FrontPage »
Forums »
DaoGen Forums » Please help me..
Please help me..
Posted by anonymous 24.09.2006 03:04
Thanks to luigi who created this site, it helped me a lot. i have browse through the programming example section and done the example. first i have done the Example1.java and it was fine. when i try with example2 and 3, i got an error as below:-
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 30 in the jsp file: /web/example2.jsp
Generated servlet error:
Customer cannot be resolved to a type
An error occurred at line: 30 in the jsp file: /web/example2.jsp
Generated servlet error:
Customer cannot be resolved to a type
can anybody help me how could this happen? can somebody suggest a solution for me? thanks in advance. hope to here from u all a.s.a.p..
Re: Please help me..
Posted by Luigi 24.09.2006 21:25
Hello,
The error you are seeing is most propably caused because you do not have the corresponding java classes in your webcontainer. You should get the Customer.java and other provided classes as well then compile them, and make an web application in Tomcat using the compiled classes, an web.xml file and the JSP files.
And when you call the application, you must call the provided servlet class, not the JSP file. I suppose you are not quite familiar with the Servlet-tehnology, since the way that the example program is constructed is pretty much the way that servlets should be used.
I could suggest that you try some other servlet example programs as well and you will get the idea on how it should work. I admit that the instructions on this site are not as good as they could be, but the code should still work without problems.
// Luigi