eb-app_2_2.dtd"
web-app
taglib
taglib-uritaglib/taglib-uri
taglib-location/WEB-INF/taglib.tld/taglib-location
/taglib
/web-app
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com
taglib/handler.html#359297
Dynamically Named Scripting Variables
[ text snipped ]
And it works in Tomcat. So that makes me think it's a deployment issue, but
I can't find it. What am I missing?
-tak
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com
--
Even the BEA docs say this should be supported.
http://edocs.bea.com/wls/docs60/taglib/handler.html#359297
Dynamically Named Scripting Variables
[ text snipped ]
And it works in Tomcat. So that makes me th
language instead of inventing a new one, and most page authors
are familiar with ECMAScript from client-side scripts. But I would prefer
a subset of ECMAScript as the EL instead of the full functionality. Can
Rhino be configured to only expose a subset?
Hans
--
Hans Bergsten [EMAIL
supposed to be fixed in the
nightly builds after 3/13 (I have not confirmed this yet, though).
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED
://www.stg.brown.edu/
personal: http://www.stg.brown.edu/~carolem/
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Hans
for the number of rows in the Result.
I hope that made some kind of sense ;-)
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
Paul DuBois wrote:
At 14:57 -0700 5/6/02, Hans Bergsten wrote:
Paul DuBois wrote:
After issuing a SELECT query with sql:query, you can access the row
count with ${rs.rowCount} (where rs is the result set variable).
However, in other APIs such as Perl DBI, the equivalent construct
they'll comment or incorporate
the suggestion.
Thanks for your patience.. :)
Anuj.
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http
Paul DuBois wrote:
At 16:07 -0700 5/11/02, Hans Bergsten wrote:
The getRowCount() method is described in 10.9 Interface Result, and
the fact that an object implementing the Result interface is used to
hold the result from sql:query is decsribed in 10.3 sql:query.
I understand your
and then delete it.
==
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http
value=/images/foo.gif /
turns the context-relative path into an absolute path that the
browser knows how to deal with.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com
--
To unsubscribe, e-mail
Jayson Falkner wrote:
Thanks for the feedback Hans,
Hans Bergsten wrote:
Absolutely. If you have experience with a real programming language,
learning Java in itself is a lot of work. Learning servlets, JDBC,
and at least a basic idea about multithreading issues on top of that
is just
=session class=mm.CateBean /
jsp:useBean id=report scope=page class=mm.ReportBean /
c:set var=ld value=${cate[report.id]} /
The ld variable is then available in other EL expressions, and
as a page scope attribute to custom actions etc.
Hans
--
Hans Bergsten [EMAIL PROTECTED
with Standard 1.0, JDK 1.3.1_01
(and JDK 1.4, I believe), and Tomcat 4.0.4 on Windows ME. Now I can't
get it to work with that configuration either. Most likely I've done
something stupid, but I can't see what.
Any ideas?
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http
a JDK 1.3 problem. Was 1.0.1 supposed to solve
the problem, or do we have to use the solution presented in README
for older Tomcat versions also for JDK 1.3?
Hans
Hans Bergsten wrote:
Sorry to bother you with this, but after stairing at it for some time,
I still don't understand what's going on. I
suggest that you read the
JspC docs, play with it, and if you have more questions, post them
to the Tomcat User list instead.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com
--
To unsubscribe, e
PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands
that you
can use from both the a:link and the article:display tag handlers.
Or did I miss something?
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:[EMAIL
Ben Pezzei wrote:
hi
Hans Bergsten schrieb:
Ben Pezzei wrote:
So the perfect way would be: give the String, which contains the
tag, to some method, parse it and return the altered text with
the correct link. how can i give this String to the corresponding
link-tag-class? if possible
with the
ResourceParams element in the conf/server.xml file. See the Tomcat
docs for details:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html
Hans
plugI cover this in great detail in JavaServer Pages, Second Edition
(O'Reilly), to be released in August/plug
--
Hans Bergsten
on this list for inspiration writing this book.
I hope you like it.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e
]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto
]}
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
BORDER=0
/c:when
c:otherwise
IMG SRC=c:out value=${prov.photoPaths[0]} /
NAME=Photo ALIGN=BOTTOM BORDER=0
/c:otherwise
/c:choose
Note the use of c:url for the case when no path is provided; it adds
the context path automatically for you.
Hans
--
Hans Bergsten
Henry's mail reminded me that I've forgot to tell you that part 2 of
my JSTL article series at ONJava.com was published today:
http://www.onjava.com/pub/a/onjava/2002/09/11/jstl2.html
It seems like JSTL has become a very popular article subject lately ;-)
Hans
--
Hans Bergsten
apologies for
not being able to get it in sooner.
Hen
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pages
the
getAttribute method on the request object.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto
=com.foo.MyClass1 /
c:out value=${myClass1.myClass2.name2} /
For details about using JSTL, see http://java.sun.com/products/jsp/jstl/
I hope this helps,
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp
-mail: mailto:[EMAIL PROTECTED]
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
:
web-app
context-param
param-name
foo
/param-name
param-value
bar
/param-value
/context-param
...
/web-app
and use it like this:
${param[foo]}
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http
detail: JSP 2.0 adds
_functions_ to the EL, but not _methods_ as is used in this example.
A function is a method on a specific class, declared in the TLD. It can
then be used in an EL expression like this:
${mylib:customer(mybean, pageScope.range * 2)}
Hans
--
Hans Bergsten [EMAIL
Martin Cooper wrote:
-Original Message-
From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
Shawn is rarely wrong, but here actually missed one detail:
JSP 2.0 adds
_functions_ to the EL, but not _methods_ as is used in this example.
A function is a method on a specific class, declared
/setPropertyName() naming convention (needed
to access properties with EL expressions or jsp:get/setProperty).
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pages http://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe
custom tag libraries.
I hope you'll find it useful.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pages http://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail
times, for instance
here:
http://marc.theaimsgroup.com/?l=taglibs-userm=103245887321124w=2
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pages http://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe
after the last time you processed the
query.
If you access the database in a servlet or a bean instead, you
can translate this logic into Java code.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pages http://TheJSPBook.com
--
To unsubscribe
in this article
by Jason Hunter:
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters-p4.html
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pages http://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe
. Are you maybe using some other
implementation? For instance, Resin includes its own implementation.
Or are you also accessing the database using your own code? If so,
the problem may lie there.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pages http
there are plenty of time-tested pools on the net for free. I show a
number of alternatives for making various types of DataSource pools
available to the JSTL SQL actions in my book. I recommend it ;-)
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer
O'Reilly's Safari service:
http://safari.oreilly.com/JVXSL.asp?xmlid=0-596-00317-X
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pages http://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pages http://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org
. Or, maybe even better in this specific case, use
the existing Jakarta Taglibs Mailer tag library ...
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pages http://TheJSPBook.com
--
To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe
Johann Uhrmann wrote:
Am Montag, 11. November 2002 18:40 schrieb Hans Bergsten:
Johann Uhrmann wrote:
Hi,
are database connections automatically closed by the jstl on pages
which use the sql:setDataSource ... tag?
I use this tag to connect to a database connection pool and the pool
whitespace, but
that requires parsing of the response. You may be able to do it using
something like the W3C JTidy parser, assuming the HTML is basically
well-formed.
http://sourceforge.net/projects/jtidy
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software
is almost always the case, see the EL type coersion rules). What kind of
error do you see? If you want to avoid convertion to String, change the
setList() method to take an Object instead of a String.
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software
, DataSource
invalid: No suitable driver
This is because the JDBC driver classes are not found by the web
container. Make sure you have installed them in the WEB-INF/lib
directory of the application.
[...]
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software
suggest is making
sure that the JDBC URL is syntactically correct. If you still can't
get it to work, it may be a bug in the JSTL implementation. Are you sure
you use the JSTL implementation from Apache Taglibs? Note that Resin
bundles it's own implementation.
Hans
Hans Bergsten wrote:
John C
Message-
From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 15. November 2002 17:34
To: Tag Libraries Users List
Subject: Re: How to maintain collections with JSTL?
Zaretzke, Peter wrote:
[...]
But how to add a new items to the collections? I tried this
c:set target=${testbean
);
} catch (Exception e) {
throw (new ServletException(Error loading Driver:
+e.getMessage()));
}
seems to work fine. Does JSTL look for the Driver classes in a location
other than the scriplet-based connection code?
Thanks again!
-- john
Hans Bergsten wrote:
John C Cartwright wrote
to suggest. All I can say is that I have similar examples running
with Tomcat 4.0.4 (and 4.0.6 and 4.1.14).
Hans
Hans Bergsten wrote:
Bell, Buck (c) wrote:
Hi John,
My $.02. Although I'm not using MySQL, my experience with Tomcat
4.1.12 has
been that I must place the JDBC Driver classes
versions no matter which Tomcat version you
use. I suggest you upgrade to JDK 1.4 in that case, or search the
archives for this mailing list for ideas how get it to work with
JDK 1.3.
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http
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.
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http
makes you think you
don't?
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com/
Author
xml=${pipeline_final_output_String} xslt=${xslturl2}
result=${outputResult}/
Also, you don't need to code the escaping yourself. c:out does it
by default, so this should work:
c:out value=${outputResult} /
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software
} property=country value=USA /
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com/
Author of O'Reilly's JavaServer Pages, covering JSP 1.2 and JSTL 1.0
Details athttp
ever called in any of the code.
[...]
That's the problem, and it doesn't matter if you call one or the other
or not. The JavaBeans rules that defines what's a property says that
both the getter and the setter must be of the same type, if they are
both implemented.
Hans
--
Hans Bergsten
, a book I could buy written by
someone on this list!
Since you ask :-) My JSP book covers all of this; the recommendation
above plus how to declare variables when you really want to:
http://TheJSPBook.com/
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software
the uri
http://java.sun.com/jstl/core; for the EL library.
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com/
Author of O'Reilly's JavaServer Pages, covering JSP 1.2 and JSTL 1.0
Details
it. Sun's JSTL pages has lots of resources:
http://java.sun.com/products/jsp/jstl/
Hans
On Mon, 2003-02-10 at 18:55, Hans Bergsten wrote:
Felipe Schnack wrote:
I must have a serious problem here... I can't make this work:
c:forEach begin=1 end=20 var=i
c:out value=${i} /
/c:forEach
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com/
Author of O'Reilly's JavaServer Pages, covering JSP 1.2 and JSTL 1.0
Details athttp://TheJSPBook.com
attribute items with value
${applicationScope.theRestaurantCollectionPacific Rim.collection}:
Encountered Rim
...
Not that surprised... Is there any way to access an attribute with a space
in the name?
Yes,
${applicationScope['theRestaurantCollectionPacific Rim'].collection}
Hans
--
Hans
com.harland.datatypes.hCategories for attribute categories:
java.lang.IllegalArgumentException: Property Editor not registered
with the
PropertyEditorManager
Using Tomcat 4.1.18
First can I do this? Then if I can how do I pass the hCategories
object?
Thanks,
Jeff Born
--
Hans Bergsten
the same thing:
c:set var=var value=string='${var}'
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com/
Author of O'Reilly's JavaServer Pages, covering JSP 1.2 and JSTL 1.0
Details
Adam Sherman wrote:
On 03/23/03 13:10:25 -0800 Hans Bergsten wrote:
No, you need to use a different syntax when the variable name contains
dots, since they are used as separators in the EL language:
${requestScope['ca.tritus.tmailer.CONFIRM_ACTION.action']}
Ah! Light! (-:
If action
to include data from external resources, like a different web app in
the same server or even from a different server; jsp:include only
support include of resources in the same web app.
Hope this helps,
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software
I think I missed an important point, see intermixed below.
Hans Bergsten wrote:
Rick Ross wrote:
I can't seem to get this to work:
%@ includes file=c:out value='${includePage}' / %
I didn't see anything in the Spec that suggests that it would violate
spec,
but it wasn't mentioned either
]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com/
Author of O'Reilly's
). FYI, Oracle 9iAS still has some
other character encoding issues with JSP tags that use BodyContent so the
Oracle container still doesn't work 100% even after using the
filter/response wrapper.
Let me know if you have need any more details than this.
Good Luck, Robb
--
Hans Bergsten
Lukas Bradley wrote:
What is the lifecycle of custom tags? Are tag objects reused throughout a
page? It seems as if my tags are not always being created. They are not
*always* reused however.
See http://www.onjava.com/pub/a/onjava/2001/11/07/jsp12.html
Hans
--
Hans Bergsten
5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software
to bugs in the bundled version of Xerces.
If you absolutely need the validation, you may want to try to replace it
with a different JAXP compliant XML parser that handles XML Schema
validation.
Hans
On 10/02/2003 11:59 PM Hans Bergsten wrote:
To make a long story short, if you primarily want
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com/
Author of O'Reilly's JavaServer Pages, covering JSP 1.2 and JSTL 1.0
Details athttp://TheJSPBook.com
., copy the JAR
files to WEB-INF/lib as I described earlier) You must then use the _EL_
library URIs in the taglib directive, i.e., core instead of core_rt:
%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %
Hans
-Original Message-
From: Hans Bergsten [mailto:[EMAIL PROTECTED
this:
c:out value=${${expression}} /
which would perform 2 evaluations giving - in theory:
c:out value=${business.name} /
Business Foobar
(assuming Business Foobar is the name attribute of
hte business
attribute). this one's killin' me! :-)
--
Hans Bergsten[EMAIL
the signature).
The 3rd edition, covering JSP 2.0 and JSTL 1.1, is available for
pre-ordering at Amazon.com, Barnes Noble, and most other book store
sites.
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com/
Author
value=${foo} scope=request/]
However, that c:import-ed page.jsp does not see ${newFoo}
either. :(
I am using jakarta-taglibs 1.0.3 with JBoss/Jetty.
Is the above supposed to work?
How do I get the import-ed page.jsp to see a variable defined in
the page that imported it?
Thanks,
Otis
--
Hans
=request/]
However, that c:import-ed page.jsp does not see ${newFoo}
either. :(
I am using jakarta-taglibs 1.0.3 with JBoss/Jetty.
Is the above supposed to work?
How do I get the import-ed page.jsp to see a variable defined in
the page that imported it?
Thanks,
Otis
--
Hans
as JSP pages), the Expression
Language, the new, simplified tag handler API, XML syntax enhancements,
new configuration options, and a lot more.
For more information, a sample chapter and the updated examples, please
visit the book web site:
http://www.thejspbook.com/
Hans
--
Hans Bergsten
Rick Ross wrote:
How 'bout Safari? How long?
Thanks for the interest. From past experience, I guess it will be a
month or so.
Hans
- Original Message -
From: Hans Bergsten [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Friday, December 19, 2003 3:05 PM
Subject
to
do separate JSP 2.0 and JSTL 1.1 pocket references, or one that combines
JSP 2.0 and JSTL 1.1?
I'll check with O'Reilly after the holidays.
Hans
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 book
(including the JSTL 1.1 EL functions).
Hans
Hans Bergsten wrote:
K.C. Baltz wrote:
Does you book have a quick-reference/cheatsheet for JSTL? The one
from Manning's book (appendix A) isn't really quick enough for me
(Too many pages). I find I'd really like a 1-2 page summary of EL
and the JSTL tags
using
the apache JSTL libraries 1.04? I'm having some class problems with
the standard-example webapp. Resin works fine with JDK1.4.1, but
with 1.4.2 there seems to be some sort of class conflicts.
-Dennis
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software
}
With JSP 2.0 and JSTL 1.1, you can use the length() function:
c:set var=nr_of_scc_history value=${fn:length(scc_history)}/
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com/
Author of O'Reilly's JavaServer
a TagExtraInfo class. See the
JSP spec for details. The JSTL tags don't, but the Struts tags do.
If you need to expose a variable set by JSTL as a scripting variable,
use jsp:useBean, e.g.,
c:set var=var1 value=var1 scope=page /
jsp:useBean id=var1 class=java.lang.String /
%= var1 %
Hans
--
Hans
doesn't use the encoding you set with setCharacterEncoding()
for query string parameters, only for parameters in a POST body:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12253
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http
;, not
http://java.sun.com/jsp/core;
hANS
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com/
Author of O'Reilly's JavaServer Pages, covering JSP 2.0 and JSTL 1.1
Details
and in the text to describe JSP 2.0, and it shows you how to
install Tomcat 5, not 4.x, in Chapter 4. And the sample application
comes with the correct web.xml version. So please, keep the versions
straight and I can guarantee you that the examples work as they should.
Hans
--
Hans Bergsten
Hassan Schroeder wrote:
Hans Bergsten wrote:
Unless there's a copy of this example in another O'Reilly book, this
looks like an example from my book named JavaServer Pages, 3rd
Edition,
Unforunately I don't have your book, but I thought I'd try this out;
using Tomcat 5.0.19 and Java 1.4.1
.
Thanks! It's always nice to hear that my books are helpful.
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com/
Author of O'Reilly's JavaServer Pages, covering JSP 2.0 and JSTL 1.1
Details
statisfies the
above.
JSP 1.2 doesn't support EL expressions in template text, so you have
to use JSTL's c:out action instead, e.g.,
This page has been visited bc:out value=${sessionCounter} /
/b times ...
Again, the examples for the second edition uses JSP 1.2 and JSTL 1.0.
Hans
--
Hans Bergsten
:
%@ taglib prefix=c
uri=http://java.sun.com/jstl/core; %
%@ taglib prefix=x
uri=http://java.sun.com/jstl/xml; %
c:import url=/includes/xslt/sortablegrid.xslt
var='xslt'/
x:transform xslt=${xslt}
%=objXML.getXml().toString().trim()%
/x:transform
--
Hans Bergsten[EMAIL
reason for the
error you get is that the column isn't declared to accept a NULL
value. Check the database table constraints.
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com/
Author of O'Reilly's JavaServer Pages
-ODBC bridge, I
suggest you try with a real Oracle JDBC type 3 or 4 driver instead. The
bridge driver is buggy and not intended for production use.
Hans
-- Original Message ---
From: Hans Bergsten [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Tue, 30 Mar 2004
)
/sql:update
/c:otherwise
/c:choose
If the real case involves many parameters that may be null, this
gets ugly, but if it's just this one, it may be okay.
Hans
--
Hans Bergsten[EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
) the way JSTL expects isn't
spec compliant.
Hans
Hans Bergsten wrote:
Wolfgang Röckelein wrote:
Hi,
at JDBC level there are two different possibilities to set a
parameter value to null: with setNull and setting to null. Depending
on the driver sometimes only on of these methods work, and when
connection, DataSource invalid: java.sql.SQLException: No suitable
driver
Any ideas why this worked with JSTL1.0 and now, with JSTL1.1, it does not?
Thanks,
Frank.
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
) %
/foo:mySimpleTagHandler
If you instead implement it as a classic tag handler, the above
is valid (but not recommended; avoid scripting elements in all
pages).
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
98 matches
Mail list logo