Hello:

We are trying to use JWS and JSP. A bean was created in CLASSES directory
under the server root.The JSP resides in /WEBPAGES/JSP and tries to access
the Bean. All the classpath variables are properly set in STARTSERVER.BAT.
The following errors are encountered while executing the JSP file:

----------------------------------------------------------------------------
----------------------------------------------------------------------------
------------
com.sun.jsp.runtime.JspServlet: init
Scratch dir for JSP-generated servlets is: work\%3A8080%2F
IMPORTANT: Do not modify the generated servlets
JspEngine --> D:\jswdk-1.0-ea\webpages\Jsp\hBean.jsp
Unhandled error! You might want to consider having an error page to report
such
errors more gracefully
com.sun.jsp.compiler.ParseException:
D:\jswdk-1.0-ea\webpages\Jsp\hBean.jsp(2,5)
 Invalid directive
        at com.sun.jsp.compiler.Parser$Directive.accept(Compiled Code)
        at com.sun.jsp.compiler.Parser.parse(Compiled Code)
        at com.sun.jsp.compiler.Parser.parse(Parser.java:552)
        at com.sun.jsp.compiler.Main.compile(Main.java:218)
        at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:117)
        at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspS
ervlet.java:71)
        at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.j
ava:79)
        at
com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:180)
        at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:219)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at
com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:154
)
        at com.sun.web.core.Context.handleRequest(Context.java:412)
        at com.sun.web.server.ConnectionHandler.run(Compiled Code)

----------------------------------------------------------------------------
-

HELLOBEAN.JAVA

public class HelloBean{

      private String name = "World";
      public void setName(String name){
         this.name = name;
      }

      public String getName()
      {
         return name;


      }
   }


hBean.jsp

<%@import = "HelloBean" %>
<USEBEAN name = foo type = HelloBean lifespan = page>
</USEBEAN>

<HTML>
<BODY>
<H1>
Hello, <%= hello.getName() %>
</H1>
</BODY>
</HTML>



Any suggestions...

Thanks in advance

Mohan

===========================================================================
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".

Reply via email to