This is because the code that you enter inside the <% %>
is actually put inside a function (normally "service") which a member of a
servlet class. Declaring a class inside a function is not legal Java, hence the
error. You should define your class in a separate Java file and import
it.
Hope this helps,
John Wheeler.
|
- JspException: Undefined variable or class name Kelvin Tee
- Re: JspException: Undefined variable or class name John Wheeler
- Re: JspException: Undefined variable or class name Arun Thomas
