Actionerror Tag

In this tutorial you will learn about the struts action error tags

Actionerror Tag

<action name="actionerrorTag">
   <result>/pages/uiTags/actionerrorTag.jsp</result>
</action>

actionerrorTag.jsp

<%taglib prefix="s" uri="/struts-tags" %>

<html>
  <head>
  <title>Actionerror Tag Example!</title>
  <body>
  <s:form action="validUser" method="POST">
  <s:textfield label="User Name" name="username" size="20" maxlength="10" />
  <s:password label="Password" name="password" size="20" maxlength="10" />
  <s:submit value="Submit" />
  </s:form>
  
  </body>
</html>

Output of the actionerrorTag.jsp: