Project

General

Profile

Revision 5071

Added by daigle over 10 years ago

Change sanparks skin to log in with browser session instead of metacat client session so session can be validated on other pages.

View differences:

SaeonLogin.jspx
3 3

  
4 4
	<!-- to change the content type or response encoding change the following line -->
5 5
	<jsp:directive.page contentType="text/html;charset=UTF-8" />
6
	<jsp:directive.page
6
	<!--  jsp:directive.page
7 7
		import="edu.ucsb.nceas.metacat.clientview.ClientView" />
8 8
	<jsp:directive.page
9 9
		import="edu.ucsb.nceas.metacat.clientview.ClientViewHelper" />
......
12 12

  
13 13
	<jsp:declaration>
14 14
        private ClientViewHelper clientViewHelper = null;
15
    </jsp:declaration>
15
    </jsp:declaration -->
16 16

  
17 17
<jsp:directive.include file="settings.jsp" />
18 18

  
......
70 70
	
71 71
<body>
72 72
	<div class="templatecontentareaclass" style="background: #FFFFFF;">
73
		<jsp:useBean id="clientViewBean" scope="session" class="edu.ucsb.nceas.metacat.clientview.ClientView" /> 
73
		<!-- jsp:useBean id="clientViewBean" scope="session" class="edu.ucsb.nceas.metacat.clientview.ClientView" /> 
74 74
		<jsp:setProperty name="clientViewBean" property="*" /> 
75
		<jsp:scriptlet>
75
		jsp:scriptlet>
76 76
			clientViewHelper = ClientViewHelper.clientViewHelperInstance(request);
77 77
			clientViewHelper.clientRequest(request, response);
78
        </jsp:scriptlet>
79
		<script type="text/javascript" >		
78
        </jsp:scriptlet -->
79
		<!-- script type="text/javascript" >		
80 80
				setCookie('JSESSIONID','<jsp:getProperty name="clientViewBean" property="sessionid" />','<jsp:expression>request.getContextPath()</jsp:expression>');
81
		</script>
81
		</script -->
82 82

  
83 83
	<table>
84 84
	<tr>
......
278 278
		Welcome,
279 279
		<jsp:expression>clientViewBean.getUsername()</jsp:expression>  
280 280
	</h3>
281
	<form name="logoutForm" method="post" action="./">
281
	<form name="logoutForm" id="logoutForm" onsubmit="submitFormIntoDiv('<%= SERVLET_URL %>', 'logoutForm', 'loginSection')">
282 282
	<input name="qformat" value="sanparks" type="hidden" />
283
	<input name="action" type="hidden" value="logout"/>
283 284
	<table>
284 285
		<tr valign="top">
285 286
			<td>

Also available in: Unified diff