0 Replies Latest reply: Feb 10, 2008 11:53 PM by 843844 RSS

    Error: HTTP Status 503 - Servlet action is currently unavailable

    843844
      Hi friends,
      I am prakashvista, i am a new person to this struts framework.

      In my application, just I am filling user details in the jsp page. I used plug-in tag in the struts-config.xml. I properly created UserActionForm and UserAction class. In the validation.xml file i set the field name and argument key from the properties file under the form tag. That is used for client side validation using javaScript.

      FirstPage:
      =======
      <html:html locale="true">
      <html:form action="/actionClass" method="post" onsubmit="validate(this);">
      <html:errors/>
      <table align=left>
      <tr>
      <td>UserName</td>
      <td><html:text property="name"/></td>
      </tr>
      <tr>
      <td>Address </td>
      <td><html:text property="address"/></td>
      </tr>
      <tr>
      <td>City </td>
      <td><html:text property="city"/></td>
      </tr>
      <tr>
      <td>Id </td>
      <td><html:text property="number"/></td>
      </tr>

      <tr>
      <td><html:submit value="Submit" /></td>
      <td><html:reset value="Reset"/></td>
      </tr>
      </table>
      *<html:javascript formName="UserActionForm"/>*
      </html:form>
      </html:html>

      Validtation.xml
      ===========
      <form name="UserActionForm">
      <field property="name" depends="required">
      <arg key="UserActionForm.name"/>
      </field>
      <field property="address" depends="required">
      <arg key="UserActionForm.address"/>
      </field>
      <field property="city" depends="required">
      <arg key="UserActionForm.city"/>
      </field>
      <field property="phone" depends="required">
      <arg key="UserActionForm.Phone"/>
      </field>
      </form>
      structs-config.xml
      =============
      <form-beans>
      <form-bean name="UserActionForm" type="UserActionForm"/>

      </form-beans>

      *<plug-in* className="org.apache.struts.validator.ValidatorPlugIn">
      <set-property
      property="pathnames"
      value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
      *</plug-in>*