• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

which part does sturts "encodeURL"

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
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
You don't like waffles? Well, do you like this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic