> -----Original Message-----
> From: Erik Weber [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 20, 2004 2:17 PM
> To: Struts Users Mailing List
> Subject: Re: Tag question
> 
> 
> Thanks guys! Seems like there was a method I used to call in 
> my Servlets 
> that would only return the Servlet portion of the request URI . . . I 
> must have gone loco!

Were you thinking of request.getContextPath() ?
It won't give you just the servlet portion.... but it would look like it did if you 
have a memory made out of stainless steel cheese like mine :)

On the other hand....... that might make it easier to extract the servlet portion I 
dunno...

> 
> I see that Struts puts a key to the servlet mapping "/services/*" in 
> some scope -- perhaps I can substring on that. I guess I'll have to 
> prepare this outside of the JSP as you suggest.
> 
> Thanks,
> Erik
> 
> 
> Erez Efrati wrote:
> 
> >That's what this method is supposed to return it's not 
> something you are
> >doing wrong.
> >
> >Maybe that will help:
> >
> >http://javaalmanac.com/egs/javax.servlet/GetReqUrl.html?l=new
> >
> >
> >Erez
> >
> >-----Original Message-----
> >From: Erik Weber [mailto:[EMAIL PROTECTED] 
> >Sent: Tuesday, July 20, 2004 10:56 PM
> >To: Struts Users Mailing List
> >Subject: Re: Tag question
> >
> >Hmm I must be doing something wrong. That's giving me the 
> same value as 
> >Erez's example. Strange, I would have expected it to give me 
> >"/services". I wonder how I am causing it to give me
> >"/usecase/page.jsp".
> >
> >atta-ur rehman wrote:
> >
> >  
> >
> >>Hi Erik,
> >>
> >>This one worked for me:
> >>
> >><c:set var="v">
> >>    <%= request.getServletPath() %>
> >></c:set>
> >>
> >><c:out value="${v}"/>
> >><bean:write name="v"/>
> >>
> >>HTH,
> >>
> >>ATTA
> >>
> >>On Tue, 20 Jul 2004 16:20:30 -0400, Erik Weber
> >>    
> >>
> ><[EMAIL PROTECTED]> wrote:
> >  
> >
> >> 
> >>
> >>    
> >>
> >>>How can I set a variable (I assume with c:set) that will hold the
> >>>      
> >>>
> >value
> >  
> >
> >>>of request.getServletPath, so that I can use it in el tags?
> >>>
> >>>Thanks,
> >>>Erik
> >>>
> >>>-----------------------------------------------------------
> ----------
> >>>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]
> >
> >
> >  
> >
> 
> ---------------------------------------------------------------------
> 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