With JSWDK1.0 I'm trying to define a jspInit in my JSP page and I'm getting
the following error which sounds very strange to me. Any clues?


==========================================

JSDK WebServer Version 2.1
Loaded configuration from: file:D:\jdk1.2.2\jswdk-1.0\webserver.xml
endpoint created: localhost/127.0.0.1:8080
com.sun.web.core.DefaultServlet: init
com.sun.jsp.runtime.JspServlet: init
Scratch dir for the JSP engine is: work\%3A8080%2Fnrj
IMPORTANT: Do not modify the generated servlets
Unhandled error! You might want to consider having an error page to report
such
errors more gracefully
com.sun.jsp.JspException: Compilation
failed:work\%3A8080%2Fnrj\JSPTest_jsp_1.ja
va:90: '}' expected.
            out.print(_jspx_html_data[2]);
                                          ^
work\%3A8080%2Fnrj\JSPTest_jsp_1.java:93: Statement expected.
                  void jspInit()
                  ^
work\%3A8080%2Fnrj\JSPTest_jsp_1.java:93: The method void jspInit() declared
in
class nrj.java.projects.jsp.JSPTest.JSPTest_jsp_1 cannot override the method
of
the same signature declared in class com.sun.jsp.runtime.HttpJspBase.  The
acces
s modifier is made more restrictive.
                  void jspInit()
                       ^
work\%3A8080%2Fnrj\JSPTest_jsp_1.java:99: Can't specify array dimension in a
dec
laration.
            out.print(_jspx_html_data[3]);
                                      ^
work\%3A8080%2Fnrj\JSPTest_jsp_1.java:99: Identifier expected.
            out.print(_jspx_html_data[3]);
                                        ^
5 errors

        at com.sun.jsp.compiler.Main.compile(Main.java:295)
        at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:135)
        at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspS
ervlet.java:77)
        at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.j
ava:87)
        at
com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:218)
        at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:294)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at
com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155
)
        at com.sun.web.core.Context.handleRequest(Context.java:414)
        at
com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:139)








_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to