Actionerror Tag

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

Ads
<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:

Advertisements

Ads
Share on Google+Share on Google+

Actionerror Tag

Posted on: April 18, 2011 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

Ads
 

Discuss: Actionerror Tag  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0

Ads

 

Ads