Source Code‎ > ‎WebContent‎ > ‎jsp‎ > ‎

UserRegistration.jsp

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<sx:head />
<h1 align="center">User Registration</h1>
<font color="red"><s:actionerror /></font>
<font color="green"><s:actionmessage /></font>
<s:form action="s_UserRegistration">
    <s:hidden name="id"></s:hidden>
    <s:hidden name="lastLogin"></s:hidden>
    <s:hidden name="registeredIP"></s:hidden>
    <s:hidden name="createdBy"></s:hidden>
    <s:hidden name="modifiedBy"></s:hidden>
    <s:hidden name="createdDatetime"></s:hidden>
    <s:hidden name="modifiedDatetime"></s:hidden>
    <tr>
        <td><s:textfield name="firstName" label="First Name*"></s:textfield></td>
        <td><s:textfield name="lastName" label="Last Name*"></s:textfield>
        <td><s:textfield name="login" label="Login*"></s:textfield></td>
       
        <td><s:password name="password" label="Password*"></s:password></td>
        <td><s:password name="confirmPassword" label="Confirm Password*"></s:password></td>
        <td><s:radio name="gender" list="{'Male','Female'}"
                label="Gender*"></s:radio></td>
        <td><s:textfield name="mobileNo" label="Mobile No.*"></s:textfield></td>
        <td><sx:datetimepicker name="dob" label="Date of Birth*"
                toggleType="explode" adjustWeeks="true" displayFormat="dd/MM/yyyy"></sx:datetimepicker></td>
    </tr>
    <tr align="right">
        <td><s:submit name="operation" value="Save" theme="simple"></s:submit></td>
        <s:if test="id!=null && id>0">
            <td><s:submit name="operation" value="Delete" theme="simple"></s:submit></td>
            <td><s:submit name="operation" value="Cancel" theme="simple"></s:submit></td>
        </s:if>
</s:form>
Comments