This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which part does sturts "encodeURL"

 
Artemesia Lakener
Ranch Hand
Posts: 162
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 354
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic