I'm not sure how to get it with OGNL but you could make your action
implement ServletRequestAware, call request.getRequestURL() somewhere in
your action and set that value in an instance variable with a getter and
then call the getter in  your action.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Tommy Becker <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <user@struts.apache.org>
> Date: Tue, 12 Feb 2008 10:52:07 -0500
> To: Struts Users Mailing List <user@struts.apache.org>
> Subject: Re: Get current URL on a page
> 
> Unfortunately it is.  I'm creating a url to another site using <s:url>
> and passing the current url as a parameter.  I suppose I don't *have* to
> use <s:url>  Is it not possible?
> /*
> 
> */ <http://www.motricity.com>
> 
> 
> Randy Burgess wrote:
>> If the value is not going into a struts tag then just use JSTL.
>> 
>> Regards,
>> Randy Burgess
>> Sr. Web Applications Developer
>> Nuvox Communications
>> 
>> 
>> 
>>   
>>> From: Tommy Becker <[EMAIL PROTECTED]>
>>> Reply-To: Struts Users Mailing List <user@struts.apache.org>
>>> Date: Tue, 12 Feb 2008 10:31:09 -0500
>>> To: Struts Users Mailing List <user@struts.apache.org>
>>> Subject: Get current URL on a page
>>> 
>>> Is there a way to get the URL for the current page using struts tags?  I
>>> thought I had access to the HttpRequest, and therefore could just use
>>> getRequestURL() but it appears the docs have led me astray :/
>>> <http://www.motricity.com>
>>> 
>>> 
>>> NOTICE: This e-mail message is for the sole use of the intended recipient(s)
>>> and may contain confidential and privileged information of Motricity.  Any
>>> unauthorized review, use, disclosure or distribution is prohibited.  If you
>>> are not the intended recipient, please contact the sender by reply e-mail
>>> and
>>> destroy all copies of the original message.
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>>     
>> 
>> 
>> 
>> This email and any attachments ("Message") may contain legally privileged
>> and/or confidential information.  If you are not the addressee, or if this
>> Message has been addressed to you in error, you are not authorized to read,
>> copy, or distribute it, and we ask that you please delete it (including all
>> copies) and notify the sender by return email.  Delivery of this Message to
>> any person other than the intended recipient(s) shall not be deemed a waiver
>> of confidentiality and/or a privilege.
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>>   
> 
> NOTICE: This e-mail message is for the sole use of the intended recipient(s)
> and may contain confidential and privileged information of Motricity.  Any
> unauthorized review, use, disclosure or distribution is prohibited.  If you
> are not the intended recipient, please contact the sender by reply e-mail and
> destroy all copies of the original message.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

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

Reply via email to