Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to handle image type input element in HTML form using JSTL  RSS feed

Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
I have an HTLM form with an image-type input element like this:
<form action="kk.jsp" method="post>
<input src="kk.png" name="ImageName" type="image">
Then I would like to catch the request parameter in kk.jsp using JSTL.
I've tried all the syntax below:
<c:if test='${not empty param.ImageName["x"]}'> ... </c:if>
<c:if test="${not empty param.ImageName.x}"> ... </c:if>
<c:if test="${not empty param.ImageName}"> ... </c:if>
<c:if test="${not empty paramValues.ImageName}"> ... </c:if>
But I can't catch anything.
(I can catch ImageName.x and ImageName.y in servlet.)
How to work around this?
Thanks a lot.
- Pin Ting
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!