struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul McCulloch <>
Subject RE: RequestURI (Action not JSP)
Date Tue, 01 Mar 2005 12:22:57 GMT
I don't think you need to do this. If you miss out the requestURI attribute
then the current request's URI is used, which will (in a typical struts
application) be the URI of the last action - not the JSP forwarded to.

If you need more help with this then post to the displaytag mailing list.


> -----Original Message-----
> From: Tim Christopher []
> Sent: 28 February 2005 21:31
> To: Struts Users Mailing List
> Subject: Re: RequestURI (Action not JSP)
> Hi,
> I'd like to be able to access the path of my Struts Action as the
> Display Tag requires a parameter 'requestURI'.  It needs this
> attribute so that it can append values to the end of the current url -
> without the requestURI it will make the link point to the jsp which is
> located under the WEB-INF directory.
> The best way I can think of doing this is to extend the
> RequestProcessor to add request.getRequestURI() as a variable stored
> in each request.  I will then access like this within a JSP:
> <% String a = (String) request.getAttribute("actionName"); %>
> <display:table name="somecollection" requestURI="<%= a %>">
> <display:column property="id" sortable="true"></display:column>
> </display:table>
> I don't seem to be able to extract it within the display:table tag
> itself, no matter how I nest different "s and 's...  However as tables
> are only on a relatively small number of pages I'm not sure this is
> the best way, also it looks a bit clumsy,
> Any suggestions?
> Tim Christopher
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not the addressee
indicated in this message (or responsible for delivery of the message to such person), you
may not copy or deliver this message to anyone. In such case, you should destroy this message,
and notify us immediately. If you or your employer does not consent to Internet email messages
of this kind, please advise us immediately. Opinions, conclusions and other information expressed
in this message are not given or endorsed by my Company or employer unless otherwise indicated
by an authorised representative independent of this message.
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via
electronic mail attachments we cannot guarantee that attachments do not contain computer virus
code.  You are therefore strongly advised to undertake anti virus checks prior to accessing
the attachment to this electronic mail.  Axios Systems Ltd grants no warranties regarding
performance use or quality of any attachment and undertakes no liability for loss or damage
howsoever caused.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message