[wsas-java-dev] svn commit r4053 - in
trunk/wsas/java/modules/samples/TinyURL:
src/org/wso2/wsas/sample/tinyurl www
svn at wso2.org
svn at wso2.org
Tue Jun 19 05:58:45 PDT 2007
Author: saminda
Date: Tue Jun 19 05:58:35 2007
New Revision: 4053
Modified:
trunk/wsas/java/modules/samples/TinyURL/src/org/wso2/wsas/sample/tinyurl/TUrl.java
trunk/wsas/java/modules/samples/TinyURL/www/index.html
Log:
Fixing JIRA-255
Modified: trunk/wsas/java/modules/samples/TinyURL/src/org/wso2/wsas/sample/tinyurl/TUrl.java
==============================================================================
--- trunk/wsas/java/modules/samples/TinyURL/src/org/wso2/wsas/sample/tinyurl/TUrl.java (original)
+++ trunk/wsas/java/modules/samples/TinyURL/src/org/wso2/wsas/sample/tinyurl/TUrl.java Tue Jun 19 05:58:35 2007
@@ -31,12 +31,12 @@
/**
* Key used to store the url table in the configuration context
*/
- public final static String URL_TABLE = "urlTable";
+ public final static String URL_TABLE = "local_urlTable";
/**
* Key used to store the id table in the configuration context
*/
- public final static String ID_TABLE = "idTable";
+ public final static String ID_TABLE = "local_idTable";
public final static int ERR_INVALID_REQ = 0;
@@ -80,7 +80,7 @@
if (myEPR == null) {
myEPR = msgCtx.getServiceContext().getMyEPR();
}
- return getUrlPage(id, myEPR.getAddress().replaceAll("soap", "rest"));
+ return getUrlPage(id, myEPR.getAddress());
}
public static String go(String id, MessageContext msgCtx) {
Modified: trunk/wsas/java/modules/samples/TinyURL/www/index.html
==============================================================================
--- trunk/wsas/java/modules/samples/TinyURL/www/index.html (original)
+++ trunk/wsas/java/modules/samples/TinyURL/www/index.html Tue Jun 19 05:58:35 2007
@@ -11,7 +11,7 @@
<div id="divcontainer" class="clearfix" style="display:inline;">
- <form action="../../rest/TinyURL/addUrl" method="get" id="tinyURLFrom" name="tinyURLFrom">
+ <form action="../../services/TinyURL/addUrl" method="get" id="tinyURLFrom" name="tinyURLFrom">
Enter the long URL : <input type="text" id="url" name="url" size="100"/>
<input id="Search" type="submit" value="Get Short URL"/>
</form>
More information about the Wsas-java-dev
mailing list