RE: Java String to Javascript String

2004-05-04 Thread Eric W Hauser
I'm not sure I made my question clear. If I use c:out / (which escapeXml is set to false by default so you don't have to define that), everything works fine. My issue is that I have to convert certain characters (new line or carriage returns are an example) into their Javascript literals for

RE: Java String to Javascript String

2004-05-04 Thread Eric W Hauser
to my pages with core:out escapeXml=false -Original Message- From: Eric W Hauser [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 10:35 AM To: Tag Libraries Users List Subject: RE: Java String to Javascript String I'm not sure I made my question clear. If I use c:out

Re: JSTL 1.0 and resin

2004-02-18 Thread Eric W Hauser
In the the resin.conf file, you need to specify: caucho.com http-server jsp fast-jstl='false'/ /http-server /caucho.com If you are just using the core and fmt tag libraries, I would just recommend using Resin's internal JSTL implementation. I've been using it on production applications

Re: JSTL with Resin 2.1.11 and JDK1.4.2

2004-01-15 Thread Eric W Hauser
Resin won't load from the webapp/lib directory unless you turn on the classloader hack. I've been using the following method of defining jars specific to a webapp with a lot of success (in web.xml): classpath id=/path/to/jarfile.jar / Also if you to add a whole directory: classpath

Re: Specifying SELECTED for an option

2003-11-06 Thread Eric W Hauser
Stored your month information in a scoped variable as a map, I would recommend creating a static map that is a org.apache.commons.collections.SequencedHashMap. select name=startMonth c:forEach items=monthMap var=month c:choose c:when test=${month.key == 10}

RE: How to maintain the selection items in the Select using the j akarta.apache.org input tag library

2003-11-05 Thread Eric W Hauser
keep in mind that a TreeMap only supports natural ordering. if you use a SequencedHashMap, it supports fifo ordering (first in first out). i believe that the LinkedHashMap available in 1.4 JVM's operates the same way. On Wed, 5 Nov 2003, Popova, Marina wrote: you could also try using TreeMap

RE: c:out unable to find value

2003-11-03 Thread Eric W Hauser
Whenever I can't figure out what is going on with an evaluation, I just debug. Download the source for taglibs and run the compiled jsp through a debugger. That should give you some insight as to how the expression is being evaluated and whether or not there is a bug that needs to be fixed. On

RE: tiles+wsad [OT??]

2003-09-08 Thread Eric W Hauser
Depending on what servlet container you are using, I would just recommend not using tiles. If you are using a Servlet 2.3 container, then I would recommend attempting to accomplish the same functionality of tiles using a filter instead. It's pretty simple to implement, not to mention a lot less

RE: tiles+wsad [OT??]

2003-09-08 Thread Eric W Hauser
that give me the same functionality as tiles? -Original Message- From: Eric W Hauser [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 10:19 AM To: Tag Libraries Users List Subject: RE: tiles+wsad [OT??] Depending on what servlet container you are using, I would just

RE: tiles+wsad [OT??]

2003-09-08 Thread Eric W Hauser
- From: Eric W Hauser [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 12:34 PM To: Tag Libraries Users List Subject: RE: tiles+wsad [OT??] Yes, this is what I am talking about. You can write a filter to do the same thing as tiles. It is very simple if all you need as a header

Re: writing a custom tag that can use EL

2003-09-03 Thread Eric W Hauser
I'm not sure why implementing ExpressionEvaluatorManager is that difficult. It is fairly simple to add this to existing tag libraries. Not to mention that this is the way that all of the standard taglibs evaluate their EL expressions. If you are looking for a good way to implement this, look at

Re: writing a custom tag that can use EL

2003-09-03 Thread Eric W Hauser
On Wed, 3 Sep 2003, Felipe Leme wrote: - you *have* to add the code that evaluates the expression. With JSP 2.0 you won't need to, it's done automatically Although this is obviously a valid point, waiting for JSP 2.0 is not really a good solution for the present. Especially if you are

Re: Editor

2003-08-14 Thread Eric W Hauser
Vim is an excellent editor for JSP and XML files...It's syntax highlighting is good for pointing out when you miss a quote... On Mon, 11 Aug 2003, Sgarlata Matt wrote: I use Eclipse for Java and EditPlus for JSP. However, I don't see any syntax highlighting files posted for the JSTL on

RE: JSTL or html:options issue

2003-08-14 Thread Eric W Hauser
I would try using the Struts html-el tag libraries for doing this: html:options property=po collection=${searchForm.po}/ You would obviously have to create a collection of beans that contained the labelName and labelProperty accessors. More information on this method can be obtained here:

Re: fmt:formatNumber currency format problem on different platform

2003-07-31 Thread Eric W Hauser
The problem is with the locale on your Unix box. You have two choices. Talk to your system administrator and make sure this is set properly on your Unix box, or explicitly define the locale in your JSP like so: fmt:setLocale value=en-US scope=request/ fmt:formatNumber type=currency

RE: Using the standard (JSTL) tag library ...

2003-07-31 Thread Eric W Hauser
Doing what you want to do is actually pretty simple. You just have to create your own JSP tag library to do it. You could create your own library that was your own custom frame tag that excepting EL expressions for its parameters. If you have the standard JSTL taglibs downloaded, look at the

Why no exception with missing accessor?

2003-07-30 Thread Eric W Hauser
While discussing JSTL with some others developers today, a question came up about the lack of helpful errors when using JSTL incorrectly. If I use the following line of code: c:out value=${sessionScope.mybean.value}/ and there is no accessor method of value, then JSTL just returns nothing.

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

2003-07-26 Thread Eric W Hauser
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 course, there is a tag for it in the unstandard

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

2003-07-26 Thread Eric W Hauser
On Sat, 26 Jul 2003, Henri Yandell wrote: 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

RE: Is it possible: get DB fields with a taglib, process with a form bean

2003-07-17 Thread Eric W Hauser
. -Original Message- From: Eric W Hauser [mailto:[EMAIL PROTECTED] i'm guessing that you are using Struts...so, why don't you just get those fields out of the database in an Action class and set them as a request attribute? maybe you could store them in a Map with constants in your JSP

Re: Is it possible: get DB fields with a taglib, process with a form bean

2003-07-16 Thread Eric W Hauser
i'm guessing that you are using Struts...so, why don't you just get those fields out of the database in an Action class and set them as a request attribute? maybe you could store them in a Map with constants in your JSP as your keys and then use JSTL to retreive those values? If you're doing that,

Re: how to ask length of collection in JSTL tags

2003-07-15 Thread Eric W Hauser
Although the bean idea is a good workaround, that may not be the most efficient way to do this for a large application with a large of collections. Since object created is one of the most expensive tasks in Java, it may be more efficient to come up with a different solution than using a bean as a

Re: Using JSP scriptlets to specify parameter values of custom tags

2003-07-10 Thread Eric W Hauser
you may want to consider accepting EL as parameters to your tags...this is much cleaner than using scriptlets...i did some googling for you and found a good article on how to do this: http://www.onjava.com/lpt/a/2864 this should get you well on your way... On Thu, 10 Jul 2003, N. Chen wrote:

Accessing static variables

2003-07-01 Thread Eric W Hauser
I searched through the archives, and I couldn't find a good answer for this question. Is there a reason why there is not a JSTL tag to expose the static final variables for a class? You can obviously do this by importing the class and using %= MyClass.STATICVAR %, or by specifying it as an