Which struts tag is used to display error messages
-
<html:errors/>
-
<bean:errors/>
-
<html:message/>
-
<bean: message/>
A
Correct answer
Explanation
In Struts 1.x, the tag is used to display error messages that have been added to the ActionErrors or ActionMessages objects in an ActionForm or Action. The tag retrieves errors from the request scope and renders them appropriately. Option B is incorrect because there is no tag. Option C is for individual messages, not error collections. Option D has a space and doesn't exist.