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

College.jsp

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