File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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/submit.do" or just "/app/submit.do" ?

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/submit.do'. 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="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
 
 
subject: which part does sturts "encodeURL"