Syntax Error In jsp form: var isError = <h:outputText value="#{billpayuploadbean.m_bError}" />;

99 views Asked by At

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.

1

There are 1 answers

0
Akash Babar On

converted form .jsp to .xhtml, it works