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

Marksheet.jsp

<%@ taglib prefix="s" uri="/struts-tags"%>
<h1 align="center">Marksheet</h1>
<font color="red"><s:actionerror /></font>
<font color="green"><s:actionmessage /></font>
<s:form action="s_Marksheet">
    <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="Rollno" name="rollNo" disabled="true"></s:textfield>
            </td>
            <s:hidden name="rollNo"></s:hidden>
        </s:if>
        <s:else>
            <td><s:textfield name="rollNo" label="RollNo*"></s:textfield></td>
        </s:else>
        <td><s:select list="studentList" listKey="key" listValue="value"
                headerKey="0" headerValue="--Select--" name="studentId"
                label="Student*" /></td>
        <td><s:textfield name="physics" label="Physics"></s:textfield></td>
        <td><s:textfield name="chemistry" label="Chemistry"></s:textfield></td>
        <td><s:textfield name="maths" label="Maths"></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