RE: [JSTL] Indexed array variable

2004-06-02 Thread Derek Mahar
the array ahead of time. Maybe someone else can clarify this a little more. Bill Siggelkow [EMAIL PROTECTED] -Original Message- From: Derek Mahar [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 5:10 PM To: Tag Libraries Users List Subject: [JSTL] Indexed array variable

RE: [JSTL] Indexed array variable

2004-06-02 Thread Derek Mahar
is going to be able to create array elements. I think you will need to allocate the array ahead of time. Maybe someone else can clarify this a little more. Bill Siggelkow [EMAIL PROTECTED] -Original Message- From: Derek Mahar [mailto:[EMAIL PROTECTED] Sent

RE: [JSTL] Indexed array variable (and associations)

2004-06-02 Thread Derek Mahar
Yes, that is correct. You may refer to the propert 'name' in bean 'myAsoc' in two ways: ${myAsoc['name']} ${myAsoc.name} For a good description of the JSP 2.0 EL and JSTL, see JSP 2.0: The New Deal, Part 1 http://www.onjava.com/pub/a/onjava/2003/11/05/jsp.html JSP 2.0: The New Deal, Part 2

RE: [JSTL] Indexed array variable

2004-06-02 Thread Derek Mahar
: Derek Mahar [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 5:10 PM To: Tag Libraries Users List Subject: [JSTL] Indexed array variable How does one create and assign elements to an indexed array variable in JSTL or the Expression Language? c:set seems

RE: [JSTL] Indexed array variable (and associations)

2004-06-02 Thread Derek Mahar
Very clever! This is an interesting way around JSTL's array creation and assignment limitations. You represent the array as an XML document and instead of indexing the array using EL, you use the JSTL XML tags and XPath. Of course, if you define tag that accepts such a parsed XML array as an

Where is the Input tag library?

2004-06-01 Thread Derek Mahar
Where may I find the Input tag library binary distribution? The Input tag library is absent from the following Taglibs mirrors: http://apache.sunsite.ualberta.ca/jakarta/taglibs/input/ http://apache.mirror.mcgill.ca/jakarta/taglibs/input/binaries/ Derek NOTICE: This email contains

[JSTL] Indexed array variable

2004-06-01 Thread Derek Mahar
How does one create and assign elements to an indexed array variable in JSTL or the Expression Language? c:set seems lacking in this respect. Derek NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not

RE: *regular* jsp vs. *xml document* jsp question

2004-05-27 Thread Derek Mahar
What is the difference between strictly JSP 2.0 compliant pages and JSP 1.2 pages? I understand that JSP 2.0 replaces the non-XML compliant % % tokens with XML tags, but what are those tags and how do we use them? Thank you, Derek -Original Message- From: Kris Schneider [mailto:[EMAIL

RE: *regular* jsp vs. *xml document* jsp question

2004-05-27 Thread Derek Mahar
By the way, I am interested only in the differences in the JSP metadata such as header and tag library reference syntax rather than the JSP language elements themselves, such as the expression language. Derek -Original Message- From: Derek Mahar Sent: May 27, 2004 9:29 AM To: Tag

Associative array variable in JSP tag file

2004-05-27 Thread Derek Mahar
/ /c:otherwise /c:choose Thank you, Derek - Derek Mahar Software Developer Penson Financial Services Canada 360 St-Jacques St West, 12th Floor Montreal QC H2Y 1P5 514.841.9665 x212 Phone 514.841.3750 Fax - NOTICE: This email contains

RE: Associative array variable in JSP tag file

2004-05-27 Thread Derek Mahar
and update the value. Quoting Derek Mahar [EMAIL PROTECTED]: How does one create an associative array variable in a JSP tag file using the EL? I had no luck with the following attempt: %@ variable name-given=selected variable-class=java.util.Map% %@ taglib prefix=c uri=http

RE: passing JSTL to custom tag attribute

2004-05-21 Thread Derek Mahar
Users List Subject: Re: passing JSTL to custom tag attribute No, actually you don't have to in Tomcat 5. It does ship with JSTL built in. You just have to use the appropriate declarations in the web.xml and so on. Derek (H) On May 20, 2004, at 5:04 PM, Derek Mahar wrote: What do you mean

RE: [JSTL] How do I enter a null value with sql:param?

2004-05-20 Thread Derek Mahar
, so it is unnecessary to identify its type. Derek -Original Message- From: Derek Mahar Sent: May 20, 2004 2:08 PM To: Tag Libraries Users List Subject: RE: [JSTL] How do I enter a null value with sql:param? Thank you. I appreciate your attention and quick response. After reading JDBC

RE: choose question

2004-05-20 Thread Derek Mahar
I see several problems with this code. First, it doesn't compile. You didn't close your c:when clause and c:otherwise follows c:when. Your code should read: c:choose c:when test=${parsedDate == parsedDate} td align=left / /td /c:when c:otherwise td align=left

RE: [JSTL] How do I enter a null value with sql:param?

2004-05-20 Thread Derek Mahar
jTDS (or SQL Server) but just wanted to let you know about a potential alternative... Quoting Derek Mahar [EMAIL PROTECTED]: Thank you for the referral! Does the jTDS driver correctly implement PreparedStatement.setObject(index, null) (i.e. set the selected SQL parameter to NULL)? Have you

RE: sql tag

2004-05-20 Thread Derek Mahar
I'd use sql:query in the JSP page, but Model-View-Controller (MVC) purists strongly discourage using the sql tags at all because they more tightly couple the View (JSP page) with the Model (database) which violates the MVC principle of Model-View separation. An MVC designer prefers that a JSP

RE: passing JSTL to custom tag attribute

2004-05-20 Thread Derek Mahar
What do you mean when you say that Tomcat 5 implements JSTL natively? From my experience, Tomcat 5 does not ship with JSTL. You must download and install JSTL separately. Derek -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: May 13, 2004 9:14 AM To: Tag Libraries

RE: [JSTL] How do I enter a null value with sql:param?

2004-05-19 Thread Derek Mahar
with sql:param? sql:param value=${null}/ Derek Mahar wrote: How do I enter a null value into a table column with sql:param? The JSTL 1.1 specification states for sql:param that, If value is null, the parameter is set to the SQL value NULL. However, no matter what value I pass to sql:param, I'm unable

RE: [JSTL] How do I enter a null value with sql:param?

2004-05-19 Thread Derek Mahar
Correction: the table name should have read tblTest rather than tblTestDerek. -Original Message- From: Derek Mahar Sent: May 19, 2004 9:45 AM To: Tag Libraries Users List Subject: RE: [JSTL] How do I enter a null value with sql:param? Your solution is equivalent to Case 2 that I listed

RE: [JSTL] How do I enter a null value with sql:param?

2004-05-19 Thread Derek Mahar
nullValue to null (meaning that nullValue will actually be removed from page scope). Did you actually try it and got the same error? Quoting Derek Mahar [EMAIL PROTECTED]: Your solution is equivalent to Case 2 that I listed in my original message. The Microsoft SQL Server JDBC driver complains

RE: [JSTL] How do I enter a null value with sql:param?

2004-05-19 Thread Derek Mahar
parameterIndex, Object x, int targetSqlType) Of course, that implies a JSTL spec change... Quoting Wolfgang Röckelein [EMAIL PROTECTED]: Derek Mahar wrote: Your solution is equivalent to Case 2 that I listed in my original message. The Microsoft SQL Server JDBC driver complains

RE: [JSTL] How do I enter a null value with sql:param?

2004-05-19 Thread Derek Mahar
--- From: Wolfgang Röckelein [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Wed, 19 May 2004 16:05:14 +0200 Subject: Re: [JSTL] How do I enter a null value with sql:param? Derek Mahar wrote: Your solution is equivalent to Case 2 that I listed in my original

RE: [JSTL] How do I enter a null value with sql:param?

2004-05-19 Thread Derek Mahar
Röckelein [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Wed, 19 May 2004 16:05:14 +0200 Subject: Re: [JSTL] How do I enter a null value with sql:param? Derek Mahar wrote: Your solution is equivalent to Case 2 that I listed in my original message. The Microsoft SQL

RE: [JSTL] How do I enter a null value with sql:param?

2004-05-19 Thread Derek Mahar
After reading Section 17.7 of the JDBC specification (available at http://java.sun.com/products/jdbc/download.html), I now agree that there is a problem with the Microsoft SQL JDBC driver, but there is also a problem with the official Java JDBC API documentation that does not mention how

[JSTL] How do I enter a null value with sql:param?

2004-05-18 Thread Derek Mahar
How do I enter a null value into a table column with sql:param? The JSTL 1.1 specification states for sql:param that, If value is null, the parameter is set to the SQL value NULL. However, no matter what value I pass to sql:param, I'm unable to set a null column: Case 1: Set value to undefined