Project

General

Profile

« Previous | Next » 

Revision 3795

use the configured knb site url rather than a hardcoded value for the redirect (since we have it in the properties now)

View differences:

lib/style/skins/knb/index.jsp
49 49
       String reply = null;
50 50
       try{
51 51

  
52
         java.net.URL url = new java.net.URL("http://knb.ecoinformatics.org/index.jsp");
52
         java.net.URL url = new java.net.URL(KNB_SITE_URL + "index.jsp");
53 53
         edu.ucsb.nceas.utilities.HttpMessage msg =
54 54
                            new edu.ucsb.nceas.utilities.HttpMessage(url);
55 55
         java.io.InputStream returnStrea = msg.sendPostData(params);
......
65 65
         reply = sw.toString();
66 66
         sw.close();
67 67
      } catch(Exception e){
68
         response.sendRedirect("http://knb.ecoinformatics.org/");
68
         response.sendRedirect(KNB_SITE_URL);
69 69
      }
70 70
%>
71 71
<%=reply%>

Also available in: Unified diff