Re: FormatNumberTag

2009-07-11 Thread Henri Yandell
on at length as to why I think the protected methods approach would be best, but will only do so upon request. Stuart Henri Yandell wrote: I didn't explain myself well. Basically I would insert reconfigureFormatter(NumberFormat/DateFormat) inside doEndTag. By default it would nothing

Re: FormatNumberTag

2009-07-10 Thread Henri Yandell
I'm wondering if protected configureFormatter(NumberFormat) is best, or if the better option is to have a protected void reconfigureFormatter(NumberFormat) method that is invokved at the end of that method. So by default the configureFormatter is always run, and then the user can hook in to do

Re: Download of Taglibs - IO

2009-06-14 Thread Henri Yandell
Better to go ahead and write the Java. FTP - presumably Commons Net (though I'm not 100% sure if it does FTP). HTTP/HTTPS to Apache HttpComponents. XmlRpc probably just use the basic API and SOAP Apache CXF or Apache Axis2 presumably have some kind of client? Must admit to not knowing much on

Taglibs deprecated

2009-06-07 Thread Henri Yandell
Random, DateTime and I18N taglibs have all been deprecated. In the former case because it's not that interesting a taglib, and the latter two because they offer only very little extra functionality on top of JSTL. Thanks, Hen -

Re: SEVERE: Servlet /rdc-examples threw load() exception - java.lang.ClassNotFoundException: org.apache.commons.collections.FastHashMap

2009-05-25 Thread Henri Yandell
Given that it would be a small delta, how about a 1.0.1 release with the rdc example war fixed Rahul? It would give us a chance to release from maven, which should be educational, and we could also look at adding Cactus testing. I'm happy to help out there - it would help me learn more about RDC

Re: Problem while downloading i18n binary

2009-05-21 Thread Henri Yandell
Those are dead pages and not hooked to the site - but I'm guessing Google still supplies them. I need to set some mod_rewrite rules up to stop people getting to them. There are no downloads for i18n - it was never released. You'll need to build from subversion and build. On the plus side, the

Re: Problem while downloading i18n binary

2009-05-21 Thread Henri Yandell
Message- From: Henri Yandell [mailto:flame...@gmail.com] Sent: Thursday, May 21, 2009 2:19 PM To: Tag Libraries Users List Subject: Re: Problem while downloading i18n binary Those are dead pages and not hooked to the site - but I'm guessing Google still supplies them. I need to set some

Re: Taglibs

2008-06-30 Thread Henri Yandell
On Mon, Jun 30, 2008 at 12:25 PM, Rahul Akolkar [EMAIL PROTECTED] wrote: On 6/29/08, Aaron Freeman [EMAIL PROTECTED] wrote: Specifically I am considering using Mailer2 initially, but don't want to do that if it and/or the whole taglib project has been abandoned. snap/ Mailer2 is

Re: Mailer2 Taglib

2008-06-30 Thread Henri Yandell
On Fri, Jun 27, 2008 at 5:52 AM, Aaron Freeman [EMAIL PROTECTED] wrote: Couple issues re: the mailer2 taglib. 1) Any idea when it might become supported? Rahul's pointed this out in the other thread, but for the archives I'll note that it's deprecated and we don't advise using this. In this

Re: XTags download

2008-04-14 Thread Henri Yandell
I think your only option is to check the code out from http://svn.apache.org/repos/asf/jakarta/taglibs/deprecated/xtags/trunk/ using subversion. I don't believe there was ever a release of xtags, and we've subsequently deprecated it. Hen On Mon, Apr 14, 2008 at 5:32 AM, Vijay [EMAIL PROTECTED]

Re: Where can I get a recent nightly build?

2008-01-07 Thread Henri Yandell
On Jan 7, 2008 9:42 AM, Kris Schneider [EMAIL PROTECTED] wrote: On Jan 7, 2008 12:22 PM, [EMAIL PROTECTED] wrote: Hi there, We're currently trying to resolve an issue in our code which appears to be solved by the following bug patch:

Re: NullPointerException from x:transform

2007-10-15 Thread Henri Yandell
Hi Rob, Could you open that as a Bugzilla entry? Just to make sure it doesn't get forgotten if there's no immediate reply here. Hen On 10/15/07, Rob Adamson [EMAIL PROTECTED] wrote: Hi, I may have discovered a bug in jakarta-taglibs-standard-1.1.2. The JSP code x:transform

Re: JNDI-taglib search tag returns null

2007-07-25 Thread Henri Yandell
On 7/24/07, Iikku Mattila [EMAIL PROTECTED] wrote: I finally figured it out but only with good luck. On Tue, 24 Jul 2007, Kris Schneider wrote: On 7/24/07, Iikku Mattila [EMAIL PROTECTED] wrote: jndi:search id=baz contextRef=test filter=uid=quux searchScope=subtree/ Seems like it might be

Re: spam

2007-07-17 Thread Henri Yandell
On 7/17/07, Antonio Petrelli [EMAIL PROTECTED] wrote: 2007/7/17, Henri Yandell [EMAIL PROTECTED]: On the plus side; it's kicked off a nice debate on infrastructure@ and after years of people there saying 'NONONO', there might be a small 'yes' winnning through. Henri, can you post the link

Re: sourcecode

2007-07-17 Thread Henri Yandell
On 7/16/07, Rahul Akolkar [EMAIL PROTECTED] wrote: On 7/16/07, Ortiz, Enrique Mauricio [EMAIL PROTECTED] wrote: hello im very impressed in your i18n taglig examples. can you please sentd to me the source files of the resources, the source of the

Re: spam

2007-07-16 Thread Henri Yandell
' winnning through. Hen On 7/15/07, Trenton D. Adams [EMAIL PROTECTED] wrote: Shouldn't the archives be mangling the email addresses, or not displaying them? I'm going to subscribe under an alias. At least an alias can be deleted. :) Sorry, I was a little jumpy. I should have expected this. Henri

Re: spam

2007-07-15 Thread Henri Yandell
Sorry Trenton, this is a public mailing list. There are multiple original archives (ie: not mirrors) across the internet. Presumably you also want the email you just sent removed. I'll cc this reply to [EMAIL PROTECTED] in case there's anything they can do. Hen On 7/14/07, Trenton D. Adams

Re: Is there a recent release of taglibs standard?

2007-06-29 Thread Henri Yandell
On 6/21/07, Kris Schneider [EMAIL PROTECTED] wrote: Quoting Klotz, Leigh [EMAIL PROTECTED]: Confused Questions: Is Jakarta Taglibs Standard still being developed? Yes, but there hasn't been much activity lately. Is there a release planned that incorporates the existing bug fixes? You

Re: Updated log taglib?

2007-02-20 Thread Henri Yandell
On 2/20/07, Gaurav Arora [EMAIL PROTECTED] wrote: I feel really stupid after reading your reply. The two import statements in LoggerTag.java should have given me a clue as to its implementation. No wonder it didn't work, I wasn't using it right! Now that I think about it, this implementation

Re: Updated log taglib?

2007-02-19 Thread Henri Yandell
I don't know if it's valid, but the current trunk of the log taglib uses commons-logging [so it can sit on top of log4j, jdk logging etc]. It seemed like a good idea N years ago [best intentions and all], but it can be rolled back if it's problematic. I'm quite happy to mentor someone if they

Re: Are there plans for a Jakarta implementation of the JSTL 1.2 spec

2006-10-31 Thread Henri Yandell
expressed the idea of using Glassfish on the dev list (sans explicit discussion of the license) and so far there have been no objections. If somebody raises an issues I'll post again on this list. Thanks for the help, Joe Henri Yandell wrote: I'll look into putting something up on the site

Re: Are there plans for a Jakarta implementation of the JSTL 1.2 spec

2006-10-30 Thread Henri Yandell
I'll look into putting something up on the site to that effect. Any idea if that's a problem for Geronimo Joe? Are you going to be able to reuse the CDDL'd Glassfish or is it something that's more preferable to have rewritten under AL 2.0? Hen On 10/17/06, Joe Bohn [EMAIL PROTECTED] wrote:

Re: URL for String TagLib source code

2005-07-15 Thread Henri Yandell
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: jakarta-taglibs-string-current.zip This appears to be a binary

Re: URL for String TagLib source code

2005-07-15 Thread Henri Yandell
On 7/15/05, Martin Cooper [EMAIL PROTECTED] wrote: 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: JVM Crashed because of taglibs

2005-03-04 Thread Henri Yandell
On Thu, 3 Mar 2005 19:45:38 +0530, Vivek Kumar Gupta [EMAIL PROTECTED] wrote: Hi Hen, today I have done some analysis about the JVM Crash: 1. Jakarta Taglibs are using the Sun XML parser. Rather than the Sun XML parser, it's probably the Apache variants of such jars. Ones very much like them

Re: JVM Crashed because of taglibs

2005-03-03 Thread Henri Yandell
Wow :) How sure are you that it's the Standard taglib? Seems unlikely for it to be causing JVM crashes, especially a compile. I'd advise trying to remove bits from the breaking system until you've reduced the problem a bit more. Might be you're just hitting bugs in the 64-bit compiler? (no clue

Re: Embed picture in HTML email

2004-04-06 Thread Henri Yandell
=cid:myattachmentname; instead of the server etc. It will look for the attachment with the Content-ID of 'myattachmentname' and display that. Henri Yandell wrote: You can't embed pictures in emails. You can have img src=foo etc in them, but the picture will be obtained from a server of some kind

Re: Embed picture in HTML email

2004-04-04 Thread Henri Yandell
You can't embed pictures in emails. You can have img src=foo etc in them, but the picture will be obtained from a server of some kind. Some mail clients [okay, Outlook is the only one I know of] allow for some proprietary xml-ish tags to be in your emails which will load resources from

Re: JSP development environments

2004-03-25 Thread Henri Yandell
Is there a free trial for MyEclipse with Eclipse 3.0 yet? Colleagues have bought it and liked it, but we've not started a new project with it yet as we're mopping up the last project so I can't verify if it works well over time. For all the people saying 'jbuilder, netbeans, eclipse' etc, I'd

Re: JSP development environments

2004-03-25 Thread Henri Yandell
You might find this painful by the way. I've done things the pure JSP way [and like it], but still find myself having to write beans to contain data. I'm unsure why that was. Need to check if JSTL-EL will work with Maps or not. Xephyrus' collections taglib is useful if you try to go no-beans.

Re: JSP development environments

2004-03-24 Thread Henri Yandell
Heh, is JBuilder that stunning for JSP? In the non-'enterprise' edition? Above and beyond the other Java IDEs I mean. I usually use either Vim or Eclipse and for JSP I've played at using Dreamweaver. It seems to have a lot of the right things, but the previous version just didn't seem to feel

Re: ANN: JSTL Quick Reference

2004-03-18 Thread Henri Yandell
I've always used the appendix to Shawn Bayern's JSTL in Action. What does this have above and beyond that? Is it JSTL 1.1 specific? Hen On Thu, 18 Mar 2004 [EMAIL PROTECTED] wrote: I noticed that there seems to be demand for a JSTL Quick Reference. When I was learning JSTL a couple of

Re: ANN: JSTL Quick Reference

2004-03-18 Thread Henri Yandell
provide listing of some useful XPath functions. Henri Yandell wrote: I've always used the appendix to Shawn Bayern's JSTL in Action. What does this have above and beyond that? Is it JSTL 1.1 specific? Hen On Thu, 18 Mar 2004 [EMAIL PROTECTED] wrote: I noticed that there seems

Re: date taglib help

2004-03-06 Thread Henri Yandell
Providing an example might help. It sounds like you're talking about intervals, ie) the amount of time between two points in time. The Java API only really handles points in time and sucks at intervals. Maybe we need to get a formatting taglib for JODA Time, http://joda.sf.net Hen On Sat, 6

Re: c:out tag silently fails

2004-03-03 Thread Henri Yandell
Just to check, does Thomas even want to use JSP 2.0? No one's asked if he's using a JSP 2.0 compliant server. Hen On Wed, 3 Mar 2004, Adam Hardy wrote: Thomas, use the default= attribute to force it to output something on error or when the value is null. As for your output, the EL is

Re: [Q] Performance of SQL tags?

2004-02-05 Thread Henri Yandell
Just guessing, but I doubt it will be faster performance-wise, just faster to develop. It lets you treat JSP as a scripting language and remove the compile/deploy stage. Hen On Thu, 5 Feb 2004, Riaan Oberholzer wrote: Is the SQL tags (in JSTL) performance acceptable? I'm populating tables

RE: Tag to Unescape an HTML String?

2004-01-26 Thread Henri Yandell
Commons Lang 2.0+ contains a StringEscapeUtils which has an escapeHtml and unescapeHtml that handle the 's etc. I can look to adding these to the String Taglib as it depends on Lang anyway, is easy to code and is in need of an update to fit Lang 2.0. Still waiting for JSP 2.0 to be a bit more

Re: [ANN] JavaServer Pages, 3rd Edition (O'Reilly)

2003-12-23 Thread Henri Yandell
How about a JSTL pocket reference Hans? You're with the right publisher and it sounds like the book has the content in it to make it easy. Hen On Tue, 23 Dec 2003, Hans Bergsten wrote: K.C. Baltz wrote: Does you book have a quick-reference/cheatsheet for JSTL? The one from Manning's

Re: sql:query to an ArrayList

2003-10-04 Thread Henri Yandell
You can use the Xephryus Data Structures Taglib here, rather than dropping down into Java. http://www.xephyrus.com/taglib-datastructs/ I've been very happily using it on a simple JSP-only system [well, JSP-only and JavaBeans because JSTL cannot treat Maps as beans *grumblegrumble*]. If

Re: JSTL startup times - is caching going on?

2003-09-20 Thread Henri Yandell
The JSP spec for Tomcat 4.1 does say that a container may cache Tag objects between page runs. It sounds like this could be what's happening here. I've no idea whether it would cache across sessions etc. Up to the server and not the taglib. On the speed issue. What are you using to create the

Re: How to get the size of a java.util.List object in EL?

2003-09-17 Thread Henri Yandell
This has been on the list before I think. The recommended solution appears to be to replace your List class with a ListBean which contains a getSize method. Would probably be useful if Taglib project could have these classes available for download. Anyone implemented these and feel like offering

Re: JSTL in Action

2003-09-07 Thread Henri Yandell
I've not seen any Manning books on Safari. I presume this is a big-business thing and not related to a specific book. Manning are quite into eBooks, so maybe they're seen as Safari competitors. Hen On Sun, 7 Sep 2003, Rick Ross wrote: Any chance of getting that onto Safari? I know I sound

Re: concatenate strings

2003-08-26 Thread Henri Yandell
Just do: c:setl var=varSum value=${variable1}${variable2} / ?? Think that would work. Hen On 26 Aug 2003, James Norman wrote: Hi All, I have two variables that I set using the c:set tags. c:set var=variable1 value=someValue / c:set var=variable2 value=1 / And I want to concatenate

Re: c:forEach items=${%=CONSTANT.MY_C%}...

2003-07-26 Thread Henri Yandell
On Sat, 26 Jul 2003, Eric W Hauser wrote: If you want to use constant fields, check out the archives for this list...There have been some good posts in the last couple of weeks on how to accomplish this...JSTL does not provide a mechanism for retrieving constant values from classes...Of

Re: Need Help Getting Taglibs Working

2003-07-15 Thread Henri Yandell
had? Just an example. At work, so wanted to pass the information over speedily. Do you want to try mailing your web.xml to the list? Just in case something looks dodge to someone? Hen Henri Yandell [EMAIL PROTECTED] wrote: WEB-INF/ should look akin to: c.tld fmt.tld log4j.properties sql.tld

Re: Displaying SQL being executed

2003-07-15 Thread Henri Yandell
P6Log at: http://www.p6spy.com/ can do this for you. Hen On Tue, 15 Jul 2003, Narayan, Anand wrote: Is there any way to tell the SQL tags to show/log all the sql statements being executed. Thanks Anand - To

Re: Accessing static variables

2003-07-02 Thread Henri Yandell
The unstandard taglib provides a way to get at these static variables: http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/intro.html On Wed, 2 Jul 2003, Capr1ce wrote: I'd just like to agree that this is quite annoying. If I have any static variables that I need to access from JSP

Re: [string] Unable to find setter method for attribute 'newlineToken'

2003-04-04 Thread Henri Yandell
My first guess is the rather simple thought that you've not got 1.0.1 installed properly on the Linux machine. Either you're using a 1.0 tld file, or you've got the jar in the classpath more than once? Hen On Fri, 4 Apr 2003, Matt Raible wrote: The following works fine on Windows, but not

Re: What is the default datasource?

2003-03-25 Thread Henri Yandell
On Tue, 25 Mar 2003, aps olute wrote: Hi, What is the default datasource used if one uses sql:query, sql:update and sql:transaction without the dataSource attribute? or no sql:dataSource ... / The one set in your web.xml as: context-param

Re: Basic EL Use Help

2003-03-23 Thread Henri Yandell
One thing to check is that you have a Struts version that supports EL [or you're using JSP 2.0]. Your EL looks good. Hen On Sun, 23 Mar 2003, Adam Sherman wrote: I think I must have missed something. If a servlet, in my case a Struts Action, contains: request.setAttribute(

Re: Java constants as attribute values

2003-03-11 Thread Henri Yandell
Nice trick :) On Tue, 11 Mar 2003, Serge Knystautas wrote: Karr, David wrote: The JSTL EL references JavaBeans properties, collections, and maps. That's it. If you want to reference a constant, you'll have to have your business or setup logic put the constant into a JavaBean

Re: c:out

2003-03-02 Thread Henri Yandell
I'm just guessing, based on frequent other answers to the list, but have you tried: ${sessionScope['com.symbol.mobilecommerce.analysis.SESSION_USER'].firstName} Hen On Sun, 2 Mar 2003, Sloan Seaman wrote: I have a variable in the session named:

Re: Jakarata taglibs and JSTL

2003-03-01 Thread Henri Yandell
I did it a little bit back, but it could have been on Dev list. I believe that currently my obvious toolset would be: JSTL, Log, Regexp, String. [also Iterators in the sandbox by its description] Each of these are generic enough to be something I'd expect to be available to me in any JSP page,

JCE Taglib

2003-03-01 Thread Henri Yandell
This looks like a pretty useful taglib: http://jcetaglib.sourceforge.net/ Just thought I'd mention it :) Hen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how to look for substrings

2003-02-20 Thread Henri Yandell
regexp taglib? On 20 Feb 2003, Felipe Schnack wrote: Hey all How can I include the body of a tag (much like an if) when a substring is found using JSTL? Basically, I would like to do this: c:if test=${param.name like '%smith%'} it works! /c:if But I see there isn't a like

Re: EL Functions

2003-02-16 Thread Henri Yandell
From what little I know, JSP 2.0 introduces the concept of functions to EL. I doubt these equate to ECMAScript, but is rather the ability to define your own functions. I'v eno clue if there will be standard-ised functions, though I'd expect JSTL might be the one to determine those. [Sorry, I'm

RE: Problem with empty key word on a collection.

2003-02-14 Thread Henri Yandell
It's mainly a set of ideas at the moment. People come to this list a lot asking for features in JSTL. Rather than send them away unsatisified, the idea is to implement them in the Unstandard taglib and have happy users. Additionally, it would provide an interesting research ground for the JSTL

RE: Problem with empty key word on a collection.

2003-02-13 Thread Henri Yandell
On Thu, 13 Feb 2003, Schnitzer, Jeff wrote: From: Shawn Bayern [mailto:[EMAIL PROTECTED]] Why not implement the empty keyword on all collections? The method isEmpty is available in the Collection interface. Was there some sort of argument against that when the spec was defined?

Re: ELSE for JSTL

2003-02-08 Thread Henri Yandell
On Sat, 8 Feb 2003, Mirko Nasato wrote: Henri Yandell wrote: On Fri, 7 Feb 2003, Ivonne Barrantes wrote: ? When we'll be able to enjoy the beneficts of our beloved ELSE for JSTL ? I know we have the c:choose tag, but it takes more code lines then a simple c:else What do you

Re: ELSE for JSTL

2003-02-07 Thread Henri Yandell
On Fri, 7 Feb 2003, Ivonne Barrantes wrote: ¿ When we'll be able to enjoy the beneficts of our beloved ELSE for JSTL ? I know we have the c:choose tag, but it takes more code lines then a simple c:else What do you think about it Shawn? Shawn mentioned it in a post a week back or so I

Re: accessing static fields/methods from a static class using jstlel

2003-02-05 Thread Henri Yandell
On Wed, 5 Feb 2003, Pierre Delisle wrote: Henri, Not being able to use static properties is a bit crappy. Who do we go kick to get them? JSTL JSR? Shawn? JSP JSR? As of JSP 2.0/JSTL 1.1, the Expression Language is owned by the JSP spec. The above issue as well as support for method

RE: Non Java Developers, programmers using JSTL and taglibs

2003-02-04 Thread Henri Yandell
On Tue, 4 Feb 2003, Jerome Jacobsen wrote: What does Javadoc document? Java. I think it is too much to ask most page designers to understand JavaBeans which means understanding Java types (primitive, wrappers, Collections, Maps). And then they'd need to understand this Expression

Re: FW: String TagLib 1.0 wordWrap StringIndexArrayOutOfBoundsException(Bug#15321)

2003-01-28 Thread Henri Yandell
: RE: String TagLib 1.0 wordWrap StringIndexArrayOutOfBoundsException Okay. I entered it as a bug. See bug #15321. robert -Original Message- From: Henri Yandell [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 11:24 AM To: Tag Libraries Users List Subject: Re: String

RE: FW: String TagLib 1.0 wordWrap StringIndexArrayOutOfBoundsException(Bug#15321)

2003-01-28 Thread Henri Yandell
if this fixes things for you tomorrow, Hen On Tue, 28 Jan 2003, Robert Taylor wrote: No worries. Thanks for a very useful tag library! robert -Original Message- From: Henri Yandell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 5:41 PM To: Tag Libraries Users List Subject

Re: about EL-based JSTL

2003-01-19 Thread Henri Yandell
On Sun, 19 Jan 2003, Kishi Mikio wrote: But, because expression language is available in only JSTL, it is inconvenience. Also, expression language has some problems. The nightly build of the String taglib ought to work in an EL environment. I can add the same feature to the Log taglib's

[ANN] Apache Jakarta Log Taglib release

2003-01-13 Thread Henri Yandell
Apache Jakarta Commons Logging instead of Log4j. More information on this can be obtained on the Jakarta Taglibs Users mail list [EMAIL PROTECTED]. Henri Yandell -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: String TagLib 1.0 wordWrap StringIndexArrayOutOfBoundsException

2002-12-12 Thread Henri Yandell
Hey Robert, This is my fault, I need to somehow document that the wordWrap method is a bit suss. Certain combinations of characters in different positions can make it blow up, while the rest of the time it sails on through. It's definitely nothing you are doing but just dodginess in the

RE: JSTL

2002-12-11 Thread Henri Yandell
JSTL is a specification. JSP Standard Tag Library is the meaning of that acronym. Jakarta Standard Tag Library is the Jakarta implementation of JSTL. Hen On Wed, 11 Dec 2002, Timothy Fisher wrote: JSTL, stands for JSP Standard Tag Library I believe they are one and the same. Tim

Re: ?? Using Taglib JARs Across Multiple Contexts ??

2002-12-09 Thread Henri Yandell
I think this came up a while ago. If I recall correctly, the only solution was to use symbolic links, and there is no solution if you are packaging your code in WARs. This obviously only works on platforms that support sym links fully, and I don't think Windows platforms do. I believe the

Re: JSTL Bug - requestScope[var] not working

2002-11-21 Thread Henri Yandell
I get pretty stupid with JSTL sometimes, but aren't you trying to treat requestScope as a map? ie) it should be requestScope.var? Other useful things that took me a while to get: request.getParameter(Xxx) is available as: param.Xxx and the request itself can be got to via:

Re: JSTL Bug - requestScope[var] not working

2002-11-21 Thread Henri Yandell
I seem to have a wonderful ability to not see Shawn's replies. Sorry Shawn. On Thu, 21 Nov 2002, Henri Yandell wrote: I get pretty stupid with JSTL sometimes, but aren't you trying to treat requestScope as a map? ie) it should be requestScope.var? Other useful things that took me a while

Re: Question for Bergsten

2002-11-21 Thread Henri Yandell
On Thu, 21 Nov 2002, Hans Bergsten wrote: To answer your question, the deprecated method is encodeRedirectUrl() (note the mixed case in Url), replaced with encodeRedirectURL() (note URL in all caps). This change was done for consistency with other methods that contains URL in their names.

Re: Jakarta Mailer

2002-11-15 Thread Henri Yandell
On Fri, 15 Nov 2002, Stefan wrote: Hi, Thans for the info. I will spend a bit more time reading the docs next time! BTW: I found that it atleast supports some EL. I was able to use c:out and it took. Yeah, usually no-EL support means that the hack for Jakarta Standard taglib hasn't been

Re: Whitespace generated by JSTL tags

2002-11-13 Thread Henri Yandell
really stupid answer but you could try wrapping it all in a string taglib which search and replaced for whitespace :) Hen On Wed, 13 Nov 2002, Corby Jacobs wrote: I am investigating an issue with a JSP page which, under certain circumstances, generates a 22.4 MB file to send back to the

RE: String Taglib and NewlineToken

2002-11-11 Thread Henri Yandell
On Sun, 10 Nov 2002, Calvin Lau wrote: I think I've figured out why I've been having a problem replacing newlines using str:replace. When I use a web form's textarea to submit add a chunk of text to my database (mysql), it stores the linebreaks as carriage returns rather than newlines.

Re: EL in String Taglib 1.0

2002-11-10 Thread Henri Yandell
On Fri, 1 Nov 2002, Travis McCauley wrote: Hello, I apologize if this has been covered recently. I'm trying to find out how to use EL expressions in the 'with' attribute of a str:replace tag. I'm using the 10/8/02 1.0 Release Version. If you grab the latest nightly build [tonights, which

RE: String Taglib and NewlineToken

2002-11-07 Thread Henri Yandell
=articleBody/ /str:replace brbr bFrom string typed out in JSP/bbr str:replace replace=NL with=br newlineToken=NLthis is a t est of newlines/str:replace brbr I noticed that in the first example it does add one extra br at the beginning but stops after that. Calvin --- Henri Yandell [EMAIL

Re: Tag for uploading

2002-11-07 Thread Henri Yandell
On Thu, 7 Nov 2002, Stefan wrote: Well I know one thing for sure, uploading files is standard 'out of the box' with ASP.net. That is one thing that makes me scratch my head about the Java platform, there are many common things that are used constantly in web programming that are not

RE: String Taglib and NewlineToken

2002-11-07 Thread Henri Yandell
property=source//str:replace This works for me. Does it work for you? I'm on latest version of Struts, 1.0.2. Hen On Thu, 7 Nov 2002, Henri Yandell wrote: Good call on using the same text in an article, was about to transfer suspicion to the piece of text in the article :) So.. that suggests

JSTL snippet

2002-11-07 Thread Henri Yandell
Apologies if this is in one of the books on JSTL, I've only got Shawn's and it's not in there afaik. It's a little JSTL snippet which dumps a database table to the screen. Such things in Java are easy enough to write, but I felt that one in JSTL would be educational [for myself]. Posting here

[jstl] if/when not working with param.xxx

2002-11-07 Thread Henri Yandell
Given the following code: % taglib prefix=c uri=http://java.sun.com/jstl/core; % c:if test=${param.one} FOOO /c:if c:choose c:when test=${param.two} c:out value=BING/ /c:when c:when test=${param.one} c:out value=BONG/ /c:when c:otherwise c:out value=BANG/ /c:otherwise /c:choose

Re: [jstl] if/when not working with param.xxx

2002-11-07 Thread Henri Yandell
On 7 Nov 2002, David M. Karr wrote: Shouldn't it be the following instead? c:if test=${!empty param.one} FOOO /c:if c:choose c:when test=${!empty param.two} c:out value=BING/ /c:when c:when test=${!empty param.one} c:out value=BONG/ /c:when c:otherwise

Re: [jstl] jsp:forward ideas

2002-11-07 Thread Henri Yandell
On 7 Nov 2002, David M. Karr wrote: Just use different quotes at the other level: jsp:forward page=somePage.jsp jsp:param name=id value='c:out value=${param.id}/'/ /jsp:forward Nope, not happy. I had: jsp:forward page='c:out value=${param.goto}/' jsp:param name=id value='c:out

RE: String Taglib and NewlineToken

2002-11-06 Thread Henri Yandell
= with=br bean:write name=article property=articleBody/ /str:replace However, after moving to a new server and upgrading to Tomcat4.1, and this is no longer working. I wanted to give the newlineToken nightly build a try. Thanks, Calvin On Fri, 25 Oct 2002, Henri Yandell wrote

RE: String Taglib and NewlineToken

2002-11-06 Thread Henri Yandell
) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) --- Henri Yandell [EMAIL PROTECTED] wrote: Hi Calvin, Try doing: str:replace replace=NL with=br newlineToken=NL bean:write name=article property=articleBody

RE: String Taglib and NewlineToken

2002-11-06 Thread Henri Yandell
=article property=articleBody/ /str:replace Calvin --- Calvin Lau [EMAIL PROTECTED] wrote: I dont have the commons-lang jar =P I guess this is something new...it was a year and a half ago that I was last working on this. Thanks. --- Henri Yandell [EMAIL PROTECTED] wrote: Just

Re: EL in String Taglib 1.0

2002-11-01 Thread Henri Yandell
Hi Travis, String Taglib [and all the Jakarta taglibs to my knowledge] are not ELized yet. JSP 2.0 will make all taglibs ELized, so the question on whether to add hacked in support for ELs to the taglibs is a bit up in the air depending on when JSP 2.0 is released, and how long this is going to

RE: EL in String Taglib 1.0

2002-11-01 Thread Henri Yandell
On Fri, 1 Nov 2002, Karr, David wrote: -Original Message- From: Henri Yandell [mailto:bayard;generationjava.com] Sent: Friday, November 01, 2002 11:21 AM On Fri, 1 Nov 2002, Karr, David wrote: If there's interest in EL-izing certain non-ELed tag libraries, without

RE: EL in String Taglib 1.0

2002-11-01 Thread Henri Yandell
conflicts, but I don't like to introduce changes that very likely won't have any effect. -Original Message- From: Henri Yandell [mailto:bayard;generationjava.com] Sent: Friday, November 01, 2002 12:31 PM On Fri, 1 Nov 2002, Karr, David wrote: All the tag classes in the Struts

Re: c:out and \n

2002-10-22 Thread Henri Yandell
So I've been thinking on this. My favourite idea atm: str:replace replace=hellNEWLINo jim with=hi bob newlineToken=NEWLIN.../str:replace Any thoughts on that? Such as would I need a separate token for replace and with? Hen On Tue, 17 Sep 2002, Henri Yandell wrote: I'm not sure. There's

RE: utility taglib, basic looping

2002-10-16 Thread Henri Yandell
Hey Thomas, JSTL is a new Java standard. JSR, JCP all that official jazz. The reference implementation [or one of two] is hosted at Jakarta Taglibs and called 'standard'. [Shawn was the implementation lead] It's JSP 1.2 however. It does deprecate many of the Jakarta Taglibs somewhat in

RE: utility taglib, basic looping

2002-10-16 Thread Henri Yandell
Sorry for repeating a lot of what Shawn said. Usual early morning failure to focus properly. On Wed, 16 Oct 2002, Henri Yandell wrote: Hey Thomas, JSTL is a new Java standard. JSR, JCP all that official jazz. The reference implementation [or one of two] is hosted at Jakarta Taglibs

[JSTL] fmt tag

2002-10-14 Thread Henri Yandell
As this is a suggestion from my using JSTL I thought it'd be better here. Has the following been considered: fmt:formatNumber value=424.233 maxFractionDigits=-1/ which outputs 420 Doesn't seem to work for me [I had wild hopes] and it seems surprisingly hard to find a standard way to do this.

Re: Is there a way to call java.lang.String.substring on a c: out ?

2002-10-13 Thread Henri Yandell
Ack. Sorry Stefan. Hadn't noticd this thread becoming a String taglib one. The only problem you should get when commenting out initAttributes should be that the following will happen: [test is an optional attribute] str:foo/ test is default str:foo test=blah/ test is blah str:foo/ test

JSTL in Java Was: Is there a way to call java.lang.String.substringon a c: ou t ?

2002-10-13 Thread Henri Yandell
On Sat, 12 Oct 2002, Stefan wrote: I just decided recently to finally look at using taglibs. For the last couple of years I have been fine with using %= % that processed bean methods that return strings. But now seeing how many taglibs there are out there, I decided it was time to jump in.

Re: Is there a way to call java.lang.String.substring on a c: out ?

2002-10-13 Thread Henri Yandell
Looking back I see that I can't easily replicate your code. If that has a problem, try using the code snippet I sent to see if that works/doesn't work. Might help to separate the issue from the surrounding code etc. Hen On Sun, 13 Oct 2002, Henri Yandell wrote: On Sat, 12 Oct 2002, Stefan

Re: Sorted Select values

2002-10-01 Thread Henri Yandell
Jakarta Commons Collection's SequencedHashMap would be my choice of use. TreeMap has irritating issues with equal objects. Hen On Tue, 1 Oct 2002, Shawn Bayern wrote: On Tue, 1 Oct 2002, Holly, Michael wrote: Is there not a method of sorting these to the way they were entered? HashMap

RE: can't make string taglibs work!

2002-09-18 Thread Henri Yandell
Hopefully./str:replace quite simple!! Xavier XP -Message d'origine- XP De : Henri Yandell [mailto:[EMAIL PROTECTED]] XP Envoyé : mercredi 18 septembre 2002 13:10 XP À : Tag Libraries Users List XP Objet : Re: can't make string taglibs work! XP XP XP XP XP On Wed, 18 Sep 2002

RE: c:out and \n

2002-09-17 Thread Henri Yandell
On Tue, 17 Sep 2002, zze-JEANJEAN S ext FTRD/DMI/SOP wrote: Is there a tag to convert \n to br/ ?? You should be able to use the String Taglib or the Regexp Taglib. The str:replace tag is not easy to use : in the replace propertie the \n is not understood :(( You have to put in this

Re: Dynamic string replacement?

2002-09-11 Thread Henri Yandell
Yep. Basically this is what we talk about when we discuss JSTLizing the String library. I would hook up the JEL thingy to the input. To be honest, I think it would simply involve: 1) Find the code needed in JSTL to implement this 2) Change StringTagSupport. Then all String tags are JEL'd. 3)

  1   2   >