Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which part does sturts "encodeURL"

 
Artemesia Lakener
Ranch Hand
Posts: 162
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic