Code Comments
Programming Forum and web based access to our favorite programming groups.I'm learning JSP and I took this exemple from the BigJava book: ~~ ~~ TEST.JSP ~~ ~~ <jsp:useBean id="formatter" class="TimeFormatterBean"/> <jsp:setProperty name="formatter" property="date" value="<%= new java.util.Date() %>"/> <html> <head> <title>Time JSP</title> </head> <body> <h1>Time JSP</h1> <p>The current time is: <jsp:getProperty name="formatter" property="time"/> </p> </body> </html> I installed my time.jsp in the webapps, and put the file TimeFormatterBean.class in the webapps\WEB-INF\classes But isnt' working. It returns the following error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 0 in the jsp file: /time.jsp Generated servlet error: [javac] Compiling 1 source file F:\JAVA\TomCat41\work\Standalone\localho st\bigj\time_jsp.java:41: cannot resolve symbol symbol : class TimeFormatterBean location: class org.apache.jsp.time_jsp TimeFormatterBean formatter = null; ^
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.