This discussion is archived
4 Replies Latest reply: Jun 24, 2011 12:56 AM by gimbal2 RSS

J2EE - inputText error

802547 Newbie
Currently Being Moderated
Yesterday I've made a new Enterprise Application with NetBeans 7. I would have liked to try this JSP code:
<%@ page contentType="text/html" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<f:view>
  <html>
  <head><title>jsf h:form example</title></head>
  <body>
  <h:form>
  <h:outputText value="Enter your name: " /></td>
  <h:inputText value="#{StoreNameBean.personName}" />
  <h:commandButton action="result" value="Say Hello" />
  </h:form>
  </body>
  </html>
</f:view>
I could compile the code, but when I opened the page I got this error message:
org.apache.jasper.JasperException: /index.jsp(13,55) PWC6188: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application
Is anybody know how can I fix this problem?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points