Thanks Chris. I got the same value using requestURL as using requestURI.

On Mon, Aug 4, 2008 at 11:45 AM, Chris Pratt <[EMAIL PROTECTED]> wrote:
> Try
>
> ${request.requestURL}
>
> or
>
> <s:property
> value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURL}"/>
>
> Instead.
>  (*Chris*)
>
>
> On Mon, Aug 4, 2008 at 8:29 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
>
>> Thanks Wes.
>>
>> Maybe my question is not clear enough. I'd like to find a way to get
>> value in address bar which is different from the path to the jsp
>> rendering current page.  Your solutions give us the latter.
>>
>> e.g., if loginForm.jsp is responsible for rendering page for
>> login_input.action, ${...requestURI} will display .../loginForm.jsp
>> but I want to show login_input.action.
>>
>> Thanks.
>>
>>
>> On Mon, Aug 4, 2008 at 12:03 AM, Wes Wannemacher <[EMAIL PROTECTED]> wrote:
>> > Depending on how you want it, you can use EL like -
>> >
>> > ${request.requestURI}
>> >
>> > or, if you are talking OGNL, try -
>> >
>> > <s:property
>> >
>> value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}"/>
>> >
>> > -Wes
>> >
>> > On Sun, 2008-08-03 at 23:42 -0400, [EMAIL PROTECTED] wrote:
>> >> Hi,
>> >>
>> >> Is there a way to get current page's url in struts2?
>> >>
>> >> e.g. suppose a login page's url is http://.../<context
>> >> name>/login_input.action, how to get the url in that page?
>> >>
>> >> JavaScript is not allowed.
>> >>
>> >> Thanks.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

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

Reply via email to