Revision 3362
Added by barteau over 17 years ago
src/edu/ucsb/nceas/metacat/client/MetacatClient.java | ||
---|---|---|
960 | 960 |
if (result == null) { |
961 | 961 |
host = request.getHeader("host"); |
962 | 962 |
context = request.getContextPath(); |
963 |
metacatPath = String.format(metacatPath, host, context); |
|
963 |
metacatPath = metacatPath.replaceFirst("%1$s", host); |
|
964 |
metacatPath = metacatPath.replaceFirst("%2$s", context); |
|
964 | 965 |
result = (MetacatClient) MetacatFactory.createMetacatConnection(metacatPath); |
965 | 966 |
session.setAttribute("MetacatClient", result); |
966 | 967 |
} |
Also available in: Unified diff
Removed "Formatter" usage, to make java 1.4 compatible.