How do I retrieve a single fielderror without any formatting?
I want just the plain text message without any formatting in a jsp is that possible?
This can be done in an action but how would I do this inside a jsp?
System.out.println(this.getFieldErrors().get("fileMissing"));
If you are using JSTL you can do this
<c:out value="${fieldErrors['passwordError']}"/>
and for struts tag, you can do this
<s:property value="fieldErrors['fileMissing']"/>
You can use <s:fielderror />
in your jsp like this:
<s:fielderror fieldName="fileMissing"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With