I am using a
<button name="btn" value="Save"><img src="/image/save.png"/>Save</button>;
in my JSP page. when user lands on page, User is seeing that button and image on left to text of Save. but when the Form is submitted, in request.getParameterValues(), it is showing the value of button name:
(name=value as btn = img src="/image/save.png"/ Save)
and I am restrcting special character like < sign due to security concern. So I am expecting the request.getParameterValues for btn should return me “Save” and not complete <img tag.
Has anybody came across this issue? I dont want to add image using css.
Thanks in advance.
Nilesh
I’m not sure what you’re asking but I’m guessing you’re trying to display an image as a button?
Maybe try this:
then in your JSP or Servlet: