-1

I have used this syntax in JSP form but it showing uncaught syntax error.
Library used: jsf-api-2.2.9.jar

var isError = <h:outputText value="#{billpayuploadbean.m_bError}" />;

After importing these two lines:

<%@ taglib prefix="f" uri="http://xmlns.jcp.org/jsf/core"%>
<%@ taglib prefix="h" uri="http://xmlns.jcp.org/jsf/html"%>

It showing resource does not exist on the server.

This is upgrading project.
before that this syntax running but now it's not working in our product. before that jsf-api.jar file used and now jsf-api-2.2.9.jar file used.

Soheil
  • 190
  • 1
  • 1
  • 14
  • You should use the syntax of JavaScript. This question should include more details and clarify the problem. – Roman C Mar 14 '23 at 17:13
  • error is: The tag handler class for "h:outputText" (com.sun.faces.taglib.html_basic.OutputTextTag) was not found on the Java Build Path – Akash Babar Mar 15 '23 at 11:37
  • Add the taghandler to the Java Build Path. – Roman C Mar 15 '23 at 17:20
  • where do I get that tag handler? – Akash Babar Mar 16 '23 at 06:07
  • I have added these 4 jar files: jsf-api-2.2.9.jar, jsf-impl-2.2.9, servlet-api.jar, tomahawk-1.1.14.jar – Akash Babar Mar 16 '23 at 06:42
  • Did you find a taghandler in these libraries? If there's no taghandler in them or version mismatch then you cant't use a tag. – Roman C Mar 16 '23 at 14:38
  • I got one thing, before that jsf-api.jar, jsf-impl.jar, jsp-api.jar, servlet-api.jar these 4 jar files were used but now i am using jsf-api-2.2.9.jar, jsf-impl-2.2.9.jar, jsp-api.jar, servlet-api.jar these 4 jar files. Before that its worked but now its now working because we haved changed 2 jar files. which Jar files version would suitable for jsf-api-2.2.9.jar and jsf-impl-2.2.9.jar? – Akash Babar Mar 20 '23 at 05:38
  • Tag handler is available in jsp-api.jar but this jar is not working with jsf-api-2.2.9.jar version. – Akash Babar Mar 20 '23 at 05:40
  • Caused by: java.lang.NullPointerException at javax.faces.webapp.UIComponentClassicTagBase.setJspId(Unknown Source) at org.apache.jsp.CustomWorkList.BillPay_005fWork_0020Introduction_jsp._jspx_meth_h_005foutputText_005f0(BillPay_005fWork_0020Introduction_jsp.java:168) at org.apache.jsp.CustomWorkList.BillPay_005fWork_0020Introduction_jsp._jspService(BillPay_005fWork_0020Introduction_jsp.java:114) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:791) – Akash Babar Mar 21 '23 at 06:59

1 Answers1

0

converted form .jsp to .xhtml, it works