You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mon Cab <fu...@yahoo.com> on 2007/08/02 01:42:25 UTC

Accessing Request URI using struts tags

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


Re: Accessing Request URI using struts tags

Posted by Mon Cab <fu...@yahoo.com>.
It works.  Thanks Chris. 


--- Chris Pratt <th...@gmail.com> wrote:

> Try
> 
> <c:if test="${pageContext.request.requestURI == 'bla'}">
>   <%@ include file="bla.jsp"%>
> </c:if>
> 
>   (*Chris*)
> 
> On 8/1/07, Mon Cab <fu...@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
> 
> 



       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

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


Re: Accessing Request URI using struts tags

Posted by Chris Pratt <th...@gmail.com>.
Try

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

  (*Chris*)

On 8/1/07, Mon Cab <fu...@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