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

BTStudent.jsp

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>
<h1 align="center">Add Student</h1>
<div align="center">
    <font color="red"><s:actionerror /></font> <font color="green"><s:actionmessage /></font>
</div>
<s:form action="s_Student" theme="bootstrap"
    cssClass="form-horizontal offset4">
    <s:hidden name="id"></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:select list="collegeList" listKey="id" listValue="name"
        headerKey="0" headerValue="--Select--" name="collegeId"
        label="College Id*" tooltip="Enter College here" />
    <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 First Name here"></s:textfield>
    <!--<sx:datetimepicker name="dob" label="DOB*" toggleType="explode"
        adjustWeeks="true" displayFormat="dd/MM/yyyy"
        tooltip="Enter your Date of Birth here"></sx:datetimepicker>-->
    <s:textfield name="mobileNo" label="Mobile No*"
        tooltip="Enter your Mobileno here"></s:textfield>
    <s:textfield name="email" label="Email*"
        tooltip="Enter your Email here"></s:textfield>
    <div class="span6" align="center">
        <s:submit name="operation" value="Save" cssClass="btn-success"></s:submit>
        <s:if test="id!=null && id>0">
            <s:submit name="operation" value="Delete" cssClass="btn-success"></s:submit>
            <s:submit name="operation" value="Cancel" cssClass="btn-success"></s:submit>
        </s:if>
    </div>
</s:form>
Comments