This content has been marked as final.
Show 4 replies
-
1. Re: org.apache.jasper.JasperException
jboss234 May 20, 2015 9:15 AM (in response to jboss234)Any suggestions ?
-
2. Re: org.apache.jasper.JasperException
jaysensharma May 20, 2015 11:03 AM (in response to jboss234)Can you test with a simple JSP and let us know the results. Or attach a simple Test WAR ?
I just tested it on "wildfly-8.2.0.Final" with the following JSP and i can see no Error the Output on the browser is just fine:
index.jsp
<% request.setAttribute("aaa","bbb"); String result = (String)request.getAttribute("aaa"); %> name = "<%=(String)request.getAttribute("aaa") %>"
The output on the web browser is following:
name = "bbb"
-
3. Re: org.apache.jasper.JasperException
jboss234 May 20, 2015 12:10 PM (in response to jaysensharma)Jay Kumar,
My code is :
<input id="pname" type="hidden" value ="<%=(String)request.getAttribute("name") %>" />
It's inside input tag.
Thanks,
-
4. Re: org.apache.jasper.JasperException
jboss234 May 21, 2015 2:27 PM (in response to jboss234)If I escape inner double quotes " than it works fine.
<input id="pname" type="hidden" value ="<%=(String)request.getAttribute(\"name\") %>" />
Thanks for help.