When you use a relative url (without "/" as first char) browser request the ressource 
from it's current location:

For example, let's say the current URL is : http://server/context/news/consult.do

if you add a RELATIVE link to "list.do", browser will send a request for
"http://server/context/news/list.do";

if you add an ABSOLUTE link to "/list.do", browser will send a request for
"http://server/news/list.do";

<html:rewrite> tag is used to create absolute URI, adding webapp context at runtime :

<html:rewrite page="/foo"> will generate "/context/foo", regardless current URL is
"/context/subdir/another_subdir/action.do"

Nico.



Nicolas,
it works! thank you very much.
Can you explain me the magic of html rewrite tag.

Meissa





"Nicolas De Loof" <[EMAIL PROTECTED]>
04/07/2003 09:03
Veuillez répondre à "Struts Users Mailing List"


        Pour :  "Struts Users Mailing List" <[EMAIL PROTECTED]>
        cc :
        Objet : Re: How to pass parameters to a javascript popup


Perhaps you should try this :


<a href="help"
onclick="openWindow('<html:rewrite
page="/myaction.do"/>?task=doThis');return false;">Help</a>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or dissemination is 
prohibited.
If you are not the intended recipient of this message, then please delete it and
notify the sender.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to