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

Header.jsp

<%@ taglib uri="/struts-tags" prefix="s"%>
<h1 style="text-align: center;">
    Online Result System <span style="float: right;">
    <img src="/ORSProject1/img/customLogo.jpg" align="right" /></span>
</h1>
<s:if test="#session.user != null">
    <h3>Welcome: <s:property value="#session.user.firstName"/> (<s:property value="#session.role"/>)</h3>
    <s:if test="#session.user.roleId == 1">
        <a href="/ORSProject1/marksheet/d_Marksheet">Marksheet</a>&emsp;
        <a href="/ORSProject1/marksheet/d_MarksheetList">MarksheetList</a>&emsp;
        <a href="/ORSProject1/user/d_User">User</a>&emsp;
        <a href="/ORSProject1/user/d_UserList">UserList</a>&emsp;
        <a href="/ORSProject1/user/d_Role">Role</a>&emsp;
        <a href="/ORSProject1/user/d_RoleList">RoleList</a>&emsp;
        <a href="/ORSProject1/marksheet/d_College">College</a>&emsp;
        <a href="/ORSProject1/marksheet/d_CollegeList">CollegeList</a>&emsp;
        <a href="/ORSProject1/marksheet/d_Student">Student</a>&emsp;
        <a href="/ORSProject1/marksheet/d_StudentList">StudentList</a>&emsp;
    </s:if>
    <a href="/ORSProject1/marksheet/d_GetMarksheet">Get Marksheet</a>&emsp;
    <a href='/ORSProject1/user/d_MyProfile?id=<s:property value="#session.user.id"/>'>MyProfile</a>&emsp;
    <a href="/ORSProject1/user/d_ChangePassword">Change Password</a>&emsp;
    <a href="/ORSProject1/doc/index.html" target="_blank">Java Doc</a>&emsp;
    <a href="/ORSProject1/user/s_Logout">Logout</a>
</s:if>
<s:else>
    <a href="#">Home</a>&emsp;
    <a href="/ORSProject1/auth/d_Login">Login</a>
</s:else>
Comments