First look at the following code:
<c:choose>
<c:when test="${type != 'h'}">
<input type="password" disabled="true" id="plainText" name="plainText" value="<%=key%>"/>
The above code is a part of JSP that I have created. Variable type is initialized using:
pageContext.setAttribute("type", type);
This JSP is working perfectly fine when deployed and used GlassFish Server but showing javax.el.ELException: Cannot convert h of type class java.lang.String to class java.lang.Long
exception when deployed on Apache Tomcat Server.
I had deployed on GlassFish server using Netbeans automatically, while deployed on Tomcat server manually using WAR file.
What exactly is the problem?