I'm following this tutorial
http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html
And everything is working and done as the tutorial says, eclipse reports no
errors, just a warning about the action in the form but we haven't gotten to
that part yet to do the submit button java code. Under the part where it
says Run JSF In Tomcat, I get the error msg below that doesn't like this
code from the tutorial.
Code:
1. <h:form>
2. <h:outputLabel for="input" value="Enter your name:" />
3. <h:inputText id="input" value="#{myBean.input}" required="true" />
4. <h:commandButton value="submit" action="#{myBean.action}" />
5. <h:outputText value="#{myBean.output}" />
6. <h:messages />
</h:form>
Error:
HTTP Status 500 -
_____
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: /test.jsp(15,37) #{..} is not allowed in
template text
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407
)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:102
)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:71
3)
org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:940)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)
org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
org.apache.jasper.compiler.Validator.validate(Validator.java:1739)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
86)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
17)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
410)
com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandler
Impl.java:468)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:14
0)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:294789
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5