Re: c:set can't set JavaBean property

2002-12-18 Thread Mike Cantrell
int max = cal.getMaximum(Calendar.DAY_OF_MONTH); day = (day > max) ? max : day; cal.set(Calendar.DAY_OF_MONTH, day); date = cal.getTime(); } public Date getDate() { return date; } } %> <% Foo foo = new Foo(); pageContext.setAttribute("f

Re: CLOBS and the EL

2002-12-17 Thread Mike Cantrell
The JSTL sql tag simply saves the ResultSet's .getObject() method and when you iterate through the rows, c:out calls the object's .toString() method. Oracle's implementation of the Clob object does not override the Object's .toString() method to produce the field's value. You must do something

c:set can't set JavaBean property

2002-12-17 Thread Mike Cantrell
I'm seeing some really strange problems while trying to use JSTL's action to set a property of a JavaBean. It's throwing a NullPointerException (see below for stackTrace). It doesn't like to set my property "day". If I create a setter method with a different name (day2 for instance), which sim

Re: mt: Mailer Tag Error - mt:setrecipient - Help

2002-10-22 Thread Mike Cantrell
FYI, we're having the same issue. I wonder if it's somehow related to the tag pooling email I sent earlier. Patrick Swarts wrote: Hello, After upgrading from Tomcat 4.0. to 4.1.12, I encountered weird errors with certain mailer tags (mt:). Specifically, the mt:setrecipient tag seems to "hold

release() methods for jakarta taglibs

2002-10-22 Thread Mike Cantrell
We are encountering some problems with the Jakarta Taglibs with newer servlet containers that pool the tag objects (Tomcat 4.1.x and JRun 4.0). Most of the tags I looked through don't override the release() method to reset the initial values and do cleanup. For instance, the mailer taglib has

Re: Updating Oracle CLOBs with JSTL sql tags

2002-08-30 Thread Mike Cantrell
, 29 Aug 2002, Mike Cantrell wrote: > > > >>Is there any way to get JSTL to update Oracle CLOBs with large amounts >>of data? the tag works fine until it reaches the 4k limit. >>Anything larger results in: >> >>Data size bigger than max size for this

Updating Oracle CLOBs with JSTL sql tags

2002-08-29 Thread Mike Cantrell
Is there any way to get JSTL to update Oracle CLOBs with large amounts of data? the tag works fine until it reaches the 4k limit. Anything larger results in: Data size bigger than max size for this type: 27257 -- To unsubscribe, e-mail: For additional comm

Re: JSTL sql tag error: No suitable driver

2002-07-02 Thread Mike Cantrell
was stomping on the request.setAttribute. Sorry :) It works fine like this now... I'm still wondering why I can't find the JNDI resource by just calling dataSource="dev" or dataSource="jdbc/dev" but this will work for now. I'll just stick it in my header temp

Re: JSTL sql tag error: No suitable driver

2002-07-02 Thread Mike Cantrell
dAttribute(), this should defeinitely not be a String since it was put there as a DataSource Object: <% javax.naming.InitialContext ctx = new javax.naming.InitialContext(); javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("dev"); request.s

Re: JSTL sql tag error: No suitable driver

2002-07-02 Thread Mike Cantrell
Well, I tried that just now and I had the same result. I just tried getting the DataSource manually and feeding it to the tag and got a little more descriptive error: <% javax.naming.InitialContext ctx = new javax.naming.InitialContext(); javax.sql.DataSource ds = (javax.sql.

JSTL sql tag error: No suitable driver

2002-07-02 Thread Mike Cantrell
I'm trying to use the sql JSTL tags on JRun 4.0 and I'm not having any luck with their pooled dataSources. I get the following error: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "No suitable driver" Here's how I'm using the tag: <%@ taglib uri="/WEB-

Re: JSTL and JRun 3.1

2002-06-27 Thread Mike Cantrell
You know, I think you're correct... I'll grab the developers version of 4.0 which should support it. Shawn Bayern wrote: >Others have been having this problem too, and since I don't have JRun, I >can't look more closely into the problem. Does JRun 3.1 support JSP 1.2? >I was under the impres

JSTL and JRun 3.1

2002-06-27 Thread Mike Cantrell
I can't seem to get the JSTL taglibs to work with JRun 3.1. I'm getting the following error: Error parsing TLD '/WEB-INF/tlds/c.tld': null. java.lang.NullPointerException I dropped all the .jar files in the /WEB-INF/lib dir: $ ls -la WEB-INF/lib/ total 2772 drwxrwxr-x 2 mikec mikec 40