Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

<c:set> tag and using request.getParameter()

843840Jul 28 2009 — edited Jul 28 2009
I have a hidden input type parameter -

1. <input type="hidden" name ="action" id="action" value="<%=request.getParameter("action")%>"/>

on my jsp.

I need the value of this parameter. I am using it like this -

2. <c:set var="isActionCreate" value="<%=request.getParameter("action")%>"/>

but when the jsp gets compiled it gives me an error saying - weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/pages/bank/addBankInformation.jsp
addBankInformation.jsp:59:63: This attribute is not recognized.
<c:set var="isActionCreate" value="{<%=request.getParameter("action")%>}" scope="request"/>
^----^

but the attribute gets recognized in the first statement above. Are there any restrictions on using the request.getParameter with the <c:set> tag??????????
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2009
Added on Jul 28 2009
1 comment
1,933 views