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

BTCollege.jsp

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>
<h1 align="center">Add College</h1>
<div align="center">
    <font color="red"><s:actionerror /></font> <font color="green"><s:actionmessage /></font>
</div>
<s:form action="s_College" 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:if test="id != null && id > 0">
        <s:textfield label="Name*" name="name" disabled="true"
            tooltip="Enter your Name here"></s:textfield>
        <s:hidden name="name"></s:hidden>
    </s:if>
    <s:else>
        <s:textfield name="name" label="Name*" tooltip="Enter your Name here"></s:textfield>
    </s:else>
    <s:textfield name="address" label="Address*"
        tooltip="Enter your Address here"></s:textfield>
    <s:textfield name="state" label="State*"
        tooltip="Enter your State here"></s:textfield>
    <s:textfield name="city" label="City*" tooltip="Enter your City here"></s:textfield>
    <s:textfield name="phoneNo" label="PhoneNo*"
        tooltip="Enter your Phoneno here"></s:textfield>
    <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