Struts2 tag retrieves a single fieldError only as text

How to get one filer without formatting?

I want this to be just a text message without any formatting in jsp?

It can be done in action, but how to do it inside jsp?

System.out.println(this.getFieldErrors().get("fileMissing"));
+5
source share
3 answers

If you use JSTL, you can do it

<c:out value="${fieldErrors['passwordError']}"/>

and for struts tag you can do it

<s:property value="fieldErrors['fileMissing']"/>
+4
source

You can use in jsp as follows: <s:fielderror />

<s:fielderror fieldName="fileMissing"/>
+3
source
<s:property value="fieldErrors['fileMissing']"/>
0
source

All Articles