File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes which part does sturts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "which part does sturts "encodeURL"" Watch "which part does sturts "encodeURL"" New topic

which part does sturts "encodeURL"

Artemesia Lakener
Ranch Hand

Joined: Jun 21, 2005
Posts: 162
if I have

<base href="http://server ort/">

<html:form action="/submit">

will struts apply the "encodeURL() to "http://server ort/app/" or just "/app/" ?

It is giving me some trouble here
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
struts html:form will translate that to JUST '/app/'. the better way of going about portable app with relative URL is not to do 'base href', but rather have EVERY link start out with /app/ (e.g /app/images/a.gif etc.). the '/' takes the path back to the server each time so no matter where you are on a URL, everything is relative to http://server/app/. - alan

-/a<br />certified slacker...yes, my last name is 'do' - <a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: which part does sturts "encodeURL"
It's not a secret anymore!