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

BTMarksheet.jsp

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