struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Pratt" <thechrispr...@gmail.com>
Subject Re: Accessing Request URI using struts tags
Date Thu, 02 Aug 2007 00:26:09 GMT
Try

<c:if test="${pageContext.request.requestURI == 'bla'}">
  <%@ include file="bla.jsp"%>
</c:if>

  (*Chris*)

On 8/1/07, Mon Cab <futon33@yahoo.com> wrote:
> I am trying to do the following from within a jsp, using Struts tags
>
> <if requestURI.equals("bla")>
>   <%@ include file="bla.jsp" %>
> </if>
>
> However, I cant seem to find the tags to do do this.
>
> I would have imagined that one could do something like:
>
> <bean:define id="request_uri" name="request" property="requestURI" />
>  <logic:match name="request_uri" value="bla" />
>   <%@ include file="bla.jsp" %>
>  </logic:match>
>
> but this does not work.
> Any adivice would be helpful.  Sorry for the newbie question.
>
>
>
>       ____________________________________________________________________________________
> Luggage? GPS? Comic books?
> Check out fitting gifts for grads at Yahoo! Search
> http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message