I'm working on a proxy-type application. The app generates a page with links pointing at my Turbine app and path info which specifies a URL with the actual content to be retrieved. Like this, inside angle brackets:
A HREF="http://palimpsest.it.hq.nasa.gov:8080/sna/servlet/Turbine/action/Proxy/url/http%3A%2F%2Fwww.google.com%2Fads%2F" Initially, I just tacked on the normal URL but found that ParameterParser was getting variable "url" (above) as just "http:". I realized that Turbine was using the slashes in the full URL as attribute/value separators. So I used URLEncoder before affixing the target URL to my path, as you see above. But ParameterParser is still seeing only the "http:" part, as if it's gratuitously decode()ing the incoming URL string before parsing it. Here's how the Proxy.doPerform is getting at the parameter, and then putting it in my context for display: ParameterParser pp = data.getParameters(); java.util.Enumeration keys = pp.keys(); while (keys.hasMoreElements()) { String key = keys.nextElement().toString(); data.addMessage(" key=`" + key + "'"); data.addMessage(",val=`" + pp.getString(key) + "'"); } And the template emits it with a simple: $data.getMessage(); Which gets rendered, in part, as: key=`template',val=`Proxy.vm' key=`action',val=`Proxy' key=`url',val=`http:' key=`www.google.com',val=`ads' Any suggestions how I get it to leave embedded slashes in an argument? Thanks. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
