Project

General

Profile

« Previous | Next » 

Revision 3726

Added by Jing Tao almost 17 years ago

Change the relative path to use a function getServerName+getPortNumber+getContextPath. But there is still problem in default.js.

View differences:

settings.jsp
29 29
<%
30 30

  
31 31
// GLOBAL CONSTANTS FOR KNB PORTAL PAGE /////////////////////////////////////
32
   
33
   // CONTEXT NAME of metacat installed:
34
	String      CONTEXT_NAME          = request.getContextPath();
35
	
36
	// URL of SERVER with context
37
	String     SERVER_URL_WITH_CONTEXT =  request.getScheme()+"://"+request.getServerName()+CONTEXT_NAME;
32 38

  
33 39
	// URL of metacat to be used for login & searching:
34
	String      METACAT_URL           = request.getContextPath() + "/metacat";
40
	String      METACAT_URL           =  SERVER_URL_WITH_CONTEXT+ "/metacat";
35 41

  
36
	// CONTEXT NAME of metacat installed:
37
	String      CONTEXT_NAME          = request.getContextPath();
38

  
39 42
	// label for logout form button when user *is* logged in:
40 43
	String      LOGOUT_LABEL          = "Logout";
41 44

  

Also available in: Unified diff