scusate se ho formulato male la domanda...
sto usando jsf 2.0 con eclipse.
avrei bisogno che, alla pressione del <h:commandButton> si aprisse la pagina "exit.jsp".
in questo modo mi produce un'eccezione di questo tipo:
codice:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: javax/servlet/jsp/jstl/core/Config
javax.faces.webapp.FacesServlet.service(FacesServlet.java:321)
root cause
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:340)
com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:150)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:96)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.14 logs.
--------------------------------------------------------------------------------
Apache Tomcat/7.0.14
il codice della pagina d'origine è questo:
codice:
<body>
Welcome!!!! Your name is:
#{userBean.name}
<h:outputText value="#{userBean.name}"></h:outputText>
<h2>your User Name is: #{userBean.user}</h2>
<h:form>
<h:commandButton action="exit" value="Exit"></h:commandButton>
</h:form>
</body>
anche inserendo un <h:form> mi lancia ugualmente un'eccezione...
questo è il navigation...
codice:
<navigation-rule>
<display-name>welcome.xhtml</display-name>
<from-view-id>/welcome.xhtml</from-view-id>
<navigation-case>
<from-outcome>exit</from-outcome>
<to-view-id>/exit.jsp</to-view-id>
</navigation-case>
</navigation-rule>
grazie per l'attenzione