Re: Re: Getting request URI with JSTL

2004-03-04 Thread otisg
'/Action.do', which is what I needbut I need it in the JSP. Thanks, Otis On Wed, 03 Mar 2004, Hassan Schroeder ([EMAIL PROTECTED]) wrote: otisg wrote: Does anyone know how to get '/Action.do' or even '/context/Action.do' from a request such as http://www.example.com/context/Action.do

Re: Re: Getting request URI with JSTL

2004-03-04 Thread otisg
Yes, the filter approach I just added. I was hoping I could do it just with JSTL. I guess not. :( Thanks for your help! Otis On Thu, 04 Mar 2004, Hassan Schroeder ([EMAIL PROTECTED]) wrote: otisg wrote: However, c:out value=${pageContext.request.servletPath}/ gives me

Re: Getting request URI with JSTL

2004-03-03 Thread otisg
to create the page, and not real request elements, like '/Action.do'. Thanks, Otis Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag On Sat, 28 Feb 2004, otisg ([EMAIL PROTECTED]) wrote: Hello, I

Getting request URI with JSTL

2004-02-28 Thread otisg
Hello, I am trying to use JSTL to get the part of the request URI that is after the contextPath, and before the Query String. For example: If a request is http://./context/Action.do?x=y I would like to get a hold of 'Action.do' part of the String. Is there a way to get to this using JSTL? I

Formatting (Gregorian)Calendar instances?

2004-02-03 Thread otisg
Hello, If I use java.util.Date with the following piece os JSTL, it works nicely. However, I need to format an instance of (Gregorian)Calendar. I used Google to try to find the answer, but found nothing. fmt:formatDate value=${myDate} var=mmdd type=date

Re: Re: Formatting (Gregorian)Calendar instances?

2004-02-03 Thread otisg
Muuuchos gracias! I didn't see that DategetTime() method in Calendar. Thanks, Otis On Tue, 3 Feb 2004, Brian Buckley ([EMAIL PROTECTED]) wrote: fmt:formatDatevalue=${myDate.time} var=mmdd type=date pattern=-MM-dd/ Note the .time. -Brian Hello, If

Getting web app context?

2004-01-08 Thread otisg
Hello, I am trying to do something like this in a JSP: a href= c:url value=Foo.do c:param name=_doneURI value=/MYAPP/Action.do/ /c:url/a That /MYAPP part is hard-coded, and I would like ot replace it with a piece of JSTL that would always put the name of the current web application context

Re: Re: Getting web app context?

2004-01-08 Thread otisg
PROTECTED]) wrote: pageContext.request.contextPath Quoting otisg [EMAIL PROTECTED]: Hello, I am trying to do something like this in a JSP: a href= c:url value=Foo.do c:param name=_doneURI value=/MYAPP/Action.do/ /c:url/a That /MYAPP part is hard-coded, and I would like ot

Q: c:forEach, c:import and variable scope?

2003-12-09 Thread otisg
Hello, Here is the problem (using [] to avoid problems with email clients not handling HTML well). Summary: c:forEach loop, inside it c:import, but the c:import-ed JSP does not see the var from the c:forEach loop. [c:forEach var=foo items=${bars}] [c:import url=some/page.jsp/] [/c:forEach]

Re: Re: c:forEach, c:import and variable scope?

2003-12-09 Thread otisg
-Original Message- From: otisg [mailto:[EMAIL PROTECTED] Here is the problem (using [] to avoid problems with email clients not handling HTML well). Summary: c:forEach loop, inside it c:import, but the c:import-ed JSP does not see the var from the c:forEach loop. [c:forEach var

Re: Re: c:forEach, c:import and variable scope?

2003-12-09 Thread otisg
Hello, Aaaalmost there :) On Tue, 09 Dec 2003, Hans Bergsten ([EMAIL PROTECTED]) wrote: Ben Anderson wrote: How bout this: c:forEach var=foo items=${bars} c:import url=some/page.jsp c:param name=foop value=${foo}/ /c:import /c:forEach some/page.jsp

Re: Re: c:forEach, c:import and variable scope?

2003-12-09 Thread otisg
On Tue, 09 Dec 2003, K.C. Baltz ([EMAIL PROTECTED]) wrote: Could it be related to your map being keyed by Integers instead of Strings? I know that JSTL/EL does a lot of magical conversions, but I'm not sure how far they extend. K.C. otisg wrote: Hello, Aaaalmost

trim string, append '...'

2003-11-26 Thread otisg
Hello, I am trying to find out if I can use any of the Jakarta taglibs to do some string formatting. In particular, I am trying to trim strings that exceed a certain length, and append something like ellipses to it. e.g. Wolfgang Amadeus Mozard - Wolfgang Amadeus M... I tried looking at the

Re: RE: trim string, append '...'

2003-11-26 Thread otisg
PROTECTED]) wrote: Hi You should use the String tag library for that: http://jakarta.apache.org/taglibs/doc/string-doc/string-1.0.1/index.html Best regards, Eric -Original Message- From: otisg [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 26. November 2003 15:58 To: [EMAIL