Source Code‎ > ‎WebContent‎ > ‎BT‎ > ‎

BTUser.jsp

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<h1 align="center">Add User</h1>
<div align="center">
    <font color="red"><s:actionerror /></font> <font color="green"><s:actionmessage /></font>
</div>
<s:form action="s_User" theme="bootstrap"
    cssClass="form-horizontal offset4">
    <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>
    <s:textfield name="firstName" label="First Name*"
        tooltip="Enter your First Name here"></s:textfield>
    <s:textfield name="lastName" label="Last Name*"
        tooltip="Enter your Last Name here"></s:textfield>
    <s:textfield name="login" label="Login*"
        tooltip="Enter your Login here"></s:textfield>
    <s:password name="password" label="Password*"
        tooltip="Enter your Password here"></s:password>
    <s:password name="confirmPassword" label="Confirm Password*"
        tooltip="Enter your Confirm Password here"></s:password>
    <s:radio name="gender" list="{'Male','Female'}" labelposition="inline"
        label="Gender*" tooltip="Enter your Gender here"></s:radio>
    <s:textfield name="mobileNo" label="Mobile No*"
        tooltip="Enter your Mobile No here"></s:textfield>
    <sj:datepicker id="datepicker" parentTheme="bootstrap" name="dob"
        label="Date of Birth*" tooltip="Enter your DOB here"
        cssClass="form-control" elementCssClass="col-sm-5" showOn="focus"
        inputAppendIcon="calendar" />
    <div class="span6" align="center">
        <s:submit name="operation" value="Save" theme="simple"
            cssClass="btn-success"></s:submit>
        <s:if test="id!=null && id>0">
            <s:submit name="operation" value="Delete" theme="simple"
                cssClass="btn-success"></s:submit>
            <s:submit name="operation" value="Cancel" theme="simple"
                cssClass="btn-success"></s:submit>
        </s:if>
    </div>
</s:form>
Comments