This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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"