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
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
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
: 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
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 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
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
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
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
/
/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
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
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
, 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
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
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
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
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
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
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
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
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
---
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
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
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
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
25 matches
Mail list logo