Re: message bundle from listener

2005-08-25 Thread Rahul P Akolkar
::SammyRulez:: [EMAIL PROTECTED] wrote on 08/25/2005 06:11:54 PM: Hi all I would like to store in an application scope variable a message bundle via listener when the application stat up... something like: public void contextInitialized(ServletContextEvent event) {

Re: Dynamic vars in c:set

2005-08-25 Thread Rahul P Akolkar
Dylan MacDonald [EMAIL PROTECTED] wrote on 08/25/2005 06:42:03 PM: Hi - I was wondering whether it was possible to set the var in the c:set tag dynamically? For example, within my forEach tags I want to build a list of page variables dynamically based on the index (or the varStatus count)

Re: Uri confusion

2005-08-11 Thread Rahul P Akolkar
Murray Steele [EMAIL PROTECTED] wrote on 08/10/2005 04:15:26 AM: Hi, The _rt bit means that the taglibs understand runtime expressions as the values of their attributes. snip/ On 9 Aug 2005, at 08:41, Karianne Berg wrote: Hi, I'm quite new to JSTL, and crawling through tutorials

Re: Struts Validator - missing longRange and doubleRange

2005-08-11 Thread Rahul P Akolkar
Givler, Eric [EMAIL PROTECTED] wrote on 08/10/2005 08:16:25 AM: Our development tool at the office includes an older version of Struts (v1.16). The tool mentions some incompatibilities with newer versions of struts, so we have not changed this. Anyway, there is a Validator in struts that

[ANNOUNCEMENT] Reusable Dialog Components (RDC) 1.0.0 released

2005-07-27 Thread Rahul P Akolkar
The Apache Jakarta Taglibs team is pleased to announce the release of version 1.0.0 of the Reusable Dialog Components (RDC) tag library. JSP 2.0 based Reusable Dialog Components (RDC) is a framework for creating JSP taglibs that aid in rapid development of voice and multimodal applications.

Re: c:forEach index in looop

2005-07-27 Thread Rahul P Akolkar
Marco Mistroni [EMAIL PROTECTED] wrote on 07/27/2005 05:30:17 PM: hello all, i am trying to replace struts logic:iterate with JSTL c:forEach... however, i need what in logic:iterate is the index in the loop is it possible to get it from anywhere? c:forEach ... varStatus=status ...

Re: TagSupport vs BodyTagSupport

2005-07-23 Thread Rahul P Akolkar
Luca Passani [EMAIL PROTECTED] wrote on 07/23/2005 02:28:14 PM: ooops, I felt this was a general taglib question, more than a Struts question. It only takes struts as an example, but the question is is there a reason why it makes sense to always subclass BodyTagSupport in a tag-library?

Re: URL for String TagLib source code

2005-07-15 Thread Rahul P Akolkar
Henri Yandell [EMAIL PROTECTED] wrote on 07/15/2005 01:29:09 PM: On 7/15/05, Robert Taylor [EMAIL PROTECTED] wrote: Thanks Martin, but at the risk of sounding ignorant. The last source link is labeled archives... (not very intuitive) I clicked on it and then downloaded the file:

Re: URL for String TagLib source code

2005-07-15 Thread Rahul P Akolkar
Henri Yandell [EMAIL PROTECTED] wrote on 07/15/2005 01:53:07 PM: snip/ While I'm on a slightly different topic: * we really don't release source when we release code? AFAICT. Which is why I had to prepend my earlier post with In the mean time, ... Do we have tags for all past releases? I

Re: c:import and context attribute

2005-07-15 Thread Rahul P Akolkar
Dylan MacDonald [EMAIL PROTECTED] wrote on 07/13/2005 05:41:46 PM: Can someone explain the context attribute in the c:import tag? snip/ It is used in cross-context imports and is the name of the context you're importing from. Most containers need to be configured to enable cross-context

Re: [SOLVED] Re: how to debug jsp compilation error in Tomcat 5.5 ?

2005-06-17 Thread Rahul P Akolkar
Woodchuck [EMAIL PROTECTED] wrote on 06/17/2005 11:18:17 AM: The lists have been slow. Please do not send multiple copies :-) i also noticed there seems to be multiple copies of my original post. i do not know why, i only sent once. OK, sorry about the banter ;-) It seems we had quite a

Re: [OT] Using JSTL 1.1.2 with Tomcat 5.5 J2SE 5.0

2005-06-06 Thread Rahul P Akolkar
Dino Klein [EMAIL PROTECTED] wrote on 06/06/2005 09:16:07 AM: I have two jspx files (pasted below), where one includes the other. When I remove the xmlns:c declaration/importation - it works; similarly, when I do not include the other file, it also works fine. snip/ (1) main.jspx

Re: Using JSTL 1.1.2 with Tomcat 5.5 J2SE 5.0

2005-06-06 Thread Rahul P Akolkar
Dino Klein [EMAIL PROTECTED] wrote on 06/06/2005 03:44:38 PM: snip/ I did some primitive debugging, and all I could find out is that if I use xmlns:fn=http://java.sun.com/jsp/jstl/functions;, then I have no problems; I checked the TLDs, and I noticed that it does not include a validator

Re: Upgrade from Tomcat 4 to 5

2005-06-03 Thread Rahul P Akolkar
Nic - I recommend downloading the JSTL 1.1 Spec Maintenance Release from here [ http://java.sun.com/products/jsp/jstl/ ] and reading Appendix A (Compatibility Migration), specifically A.2 deals which JSTL 1.0 - 1.1 migration. Should have everything you need to know. -Rahul

Re: c:out problem

2005-05-31 Thread Rahul P Akolkar
See Question 1 on Taglibs Wiki FAQ [ http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions ] -Rahul Andy [EMAIL PROTECTED] wrote on 05/31/2005 09:29:37 AM: I have another problem ! (what is going on today?) Why can't I print out the value of a variable using c:out ? The below

RE: c:choose not evaluating correctly

2005-05-31 Thread Rahul P Akolkar
A jsp:useBean declaration, that changes things ;-) On 5/31/05, Andy [EMAIL PROTECTED] wrote: snip/ I can see lots of horrible conditional glue logic in my future. No, really, atleast not because of whats discussed in this thread. I would: 1) Set the session attribute in the Struts layer only

Re: join and arrays

2005-05-26 Thread Rahul P Akolkar
Lookup the varStatus attribute of x:forEach, it will allow you to query for boundary cases (first/last) amongst other things and you can use that to decide when the trailing delimiter is not needed (for the last iteration of the forEach). -Rahul On 5/26/05, Kralidis,Tom [Burlington] [EMAIL

Re: counter in forEach tag?

2005-05-26 Thread Rahul P Akolkar
varStatus is good here too, it can give you the count of the current iteration. With that, for example, you can do a modulo 2 operation for alternating bgcolors or style classes. -Rahul Scott Purcell [EMAIL PROTECTED] wrote on 05/26/2005 12:58:20 PM: Hello, I have this scenario come up

Re: Getting a substring

2005-05-10 Thread Rahul P Akolkar
Jakarta Taglibs has a JSTL implementation here: http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html Please look at the EL functions library, specifically the substring function. -Rahul On 5/10/05, Darryl Pierce [EMAIL PROTECTED] wrote: How can one get the substring from a string

Re: JSTL Recursion possible??

2005-05-02 Thread Rahul P Akolkar
I, for one, did not understand the question (or what the nesting you show has to do with JSTL recursion). Can you please try again? Thanks, -Rahul On 5/2/05, Gros, Martin [EMAIL PROTECTED] wrote: JSTL and recursion, is this possible? e.g. walk an xml tree with same element names on

[ANN] Recent changes to the RDC sandbox taglib (was Re: [ANN] First beta release of the RDC sandbox taglib)

2005-04-25 Thread Rahul P Akolkar
A clarification is due, the recent changes do not constitute a release of the RDC sandbox taglib, please view Martin's note here for details: http://marc.theaimsgroup.com/?l=taglibs-devm=111440395623056w=2 -Rahul On 4/24/05, Rahul P Akolkar [EMAIL PROTECTED] wrote: The RDC sandbox taglib

[ANN] First beta release of the RDC sandbox taglib

2005-04-24 Thread Rahul P Akolkar
The RDC sandbox taglib [ http://jakarta.apache.org/taglibs/sandbox/doc/rdc-doc/intro.html ] has a new features beta 1.0 release. Major Changes: 1) Defining Custom Event tuples - It is possible to leverage VoiceXML support for user defined event (name, grammar, handler) tuples. These tuples

Re: c:when problem

2005-04-21 Thread Rahul P Akolkar
c:when test=${nc.Response=='Exchange Failure' !empty nc.readyDate} On 4/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi There, i have a strange problem when i am using a when clause with multiple conditions, ie c:choose c:when test=${nc.Response=='Exchange Failure'} ${!empty

Re: packing images and style sheets with a taglib

2005-04-19 Thread Rahul P Akolkar
I have a taglib that I am packaging up as a jar and I'm trying to figure out how I can package it with images and style sheets that could be referenced in a relative path like img src=/mytaglibimages/car.gif in the taglib code. Not sure if you can get relative paths to work with no

Re: packing images and style sheets with a taglib

2005-04-19 Thread Rahul P Akolkar
It also means you have to deal with cache headers, so that you're not serving up the same images to the same browser again and again. Very true, cache, response-type, in short, you have to behave like a good web server ;-) However, its definitely manageable, and by pulling some of the

Re: Retrieve a session attribute

2005-04-14 Thread Rahul P Akolkar
I thought a JSP would share the same session within the servlet if a session already exists in the container. JSP is eventually translated into servlet code, doesn't it? I insert the log message code in the servlet before getting to the JSP and find that a session already exists at the

Re: c:forEach problem

2005-03-29 Thread Rahul P Akolkar
c:forEach var=directory items=CONTEXT_STRUCTURE.directories EL expression for items? String argument will be treated as a CSV. -Rahul

Re: Odd behavior of Number/String conversion??

2005-03-08 Thread Rahul P Akolkar
Rick wrote: Thanks Rahul for the info. I'm wondering which would have less overhead behind the scenes... using the replace like you have it above or storingwhat I want to replace in a temp var? The reason I ask is this operation will have to actually be repeated several times within an

Re: Odd behavior of Number/String conversion??

2005-03-07 Thread Rahul P Akolkar
trying to convert String field. to type java.lang.Doublesnip I even tried using the fn:trim tag which is supposed to return a String In short, the spec says so :-) Remember, + is not string concatenation in JSPs, it is an arthmetic operator. The rogue argument here is not the index (so

Re: Taglib / context-param question

2005-02-09 Thread Rahul P Akolkar
If I put the hex values of the colors in the context-param area of the web.xml file, how do you call them? pageContext. getServletContext().getInitParameter(insert-context-param-name-here); -Rahul

Changes to the RDC sandbox taglib

2005-02-06 Thread Rahul P Akolkar
The RDC sandbox taglib [ http://jakarta.apache.org/taglibs/sandbox/doc/rdc-doc/intro.html ] has a new features pre beta release. There have been a multitude of code enhancements. Major Changes: 1) Rule based directed dialog strategy for rule based dialog management across child RDCs using

Re: trying to create a Html table from a Taglib

2005-01-29 Thread Rahul P Akolkar
The the tag lib will receive two parameters: the list off skills and the number of columns. snip Can I pass a collection, a list, to a tag lib? how? The c:forEach tag [JSTL core] will allow you to iterate over items in a collection, you may add the tr and td elements appropriately before

Re: Struts integration

2005-01-17 Thread Rahul P Akolkar
well, how else would I know if that's just a string I need to send verbatim to the client, or if I need to retieve the actual URL another way? of course, the resul will be an href attribute sent to the client anyway. You're tempting me to reply, so let me blame you for this email ;-) We

Re: Mixing JSTL with scriptlet and problematic evaluation order

2004-12-13 Thread Rahul P Akolkar
c:url var=encodedUrl value=Blah.do?sortId=${sortId}...title=${titleText}.../ onclick=javascript:window.open('${encodedUrl}', ...) Because I couldn't find a nice JSTL solution, I tried it with a mixture of JSTL and the scriptlet: ...title=' + '%= URLEncoder.encode(c:out

jsp:include and internet explorer

2004-11-30 Thread Rahul P Akolkar
: was Rahul P Akolkar/Watson/IBM received

Re: JSTL converts ' to #039;

2004-10-29 Thread Rahul P Akolkar
Don't escape XML in the JavaScript bit. %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % c:set var=foobar value=Foo's Moos / html headscript language=JavaScriptalert(c:out value='${foobar}' escapeXml='false' /);/script/head body bgcolor=white c:out value=${foobar} / /body /html

Re: [INPUT] Is input:text .../ producing the correct HTML?

2004-10-23 Thread Rahul P Akolkar
Is this a non-impacting bug? This will be helpful (W3C HTML and XHTML FAQ): http://www.w3.org/MarkUp/2004/xhtml-faq -Rahul

RE: Error: org.xml.sax.SAXParseException: Content is not allowed in prolog.

2004-10-22 Thread Rahul P Akolkar
c:import var=nieuwsXML url=nieuws.xml x:parse doc=${nieuwsXML} var=nieuwsDOC / /c:import -Rahul

Re: How to avoid the line breaks when a tag file used within javascript?

2004-10-21 Thread Rahul P Akolkar
This thread has gotten too long to ignore :-) trimSpaces probably won't do it for you. As my bit, I tried this trivial JSP: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %%-- --%tag attr=foo('jsp:include page=test.jsp /')%-- --%anotherTag / where test.jsp is another trivial JSP as

Re: VoiceXML RDC with return element

2004-09-21 Thread Rahul P Akolkar
Looks like you are all set. The submit URI defaults to the JSP page hosting the RDC tag. Sidebar: Think of each RDC as a conversation with the user, with potentially multiple round trips. As an example, rdc:date id=myDate minDate=01012004 maxDate=01012005 confirm=true echo=true /

Re: VoiceXML RDC with return element

2004-09-20 Thread Rahul P Akolkar
I don't understand what you mean by generate RDC with return element. A RDC can be used in any VoiceXML form, and whether that form is referenced as a subdialog elsewhere does not change the RDC behavior (and hence, you shouldn't have to create a RDC that can be used in subdialog). The