struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meissa.Sa...@assetmanagement.natexis.fr
Subject Réf. : Re: Réf. : Re: How to pass parameters to a javascript popup
Date Fri, 04 Jul 2003 08:44:11 GMT

Everything is clear to now.
thank you again Nicolas.

Meissa




"Nicolas De Loof" <nicolas.deloof@cgey.com>
04/07/2003 10:32
Veuillez répondre à "Struts Users Mailing List"


        Pour :  "Struts Users Mailing List" <struts-user@jakarta.apache.org>
        cc :
        Objet : Re: Réf. : Re: How to pass parameters to a javascript popup


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" <nicolas.deloof@cgey.com>
04/07/2003 09:03
Veuillez ripondre ` "Struts Users Mailing List"


        Pour :  "Struts Users Mailing List"
<struts-user@jakarta.apache.org>
        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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org





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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org





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.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message