Re: Taglib URI error in Weblogic60

2001-02-14 Thread Hans Bergsten
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

Re: WebLogic 6.0 deploying taglib:request -- jsp:getProperty() problems

2001-03-05 Thread Hans Bergsten
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

Re: WebLogic 6.0 deploying taglib:request -- jsp:getProperty() problems

2001-03-06 Thread Hans Bergsten
-- 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

Re: JSTL (standard taglib) Early Access 2

2001-11-22 Thread Hans Bergsten
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

Re: JSTL: Nightly build crashes

2002-03-14 Thread Hans Bergsten
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

Re: JSTL: sql

2002-05-01 Thread Hans Bergsten
://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

Re: JSTL sql:query row count

2002-05-06 Thread Hans Bergsten
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

Re: JSTL sql:query row count

2002-05-06 Thread Hans Bergsten
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

Re: documentation

2002-05-11 Thread Hans Bergsten
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

Re: documentation

2002-05-11 Thread Hans Bergsten
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

Re: Nested Tag Libraries

2002-05-30 Thread Hans Bergsten
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

Re: Is it possible to do %=request.getContextPath()% with JSTL

2002-06-04 Thread Hans Bergsten
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

Re: JSTL XML, URL, and SQL tags, does anyone use them?

2002-06-11 Thread Hans Bergsten
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

Re: FWD: need help about translating scriptlets into JSTL EL

2002-06-24 Thread Hans Bergsten
=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

x:transform and JAXP problems

2002-07-29 Thread Hans Bergsten
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

Re: x:transform and JAXP problems

2002-07-29 Thread Hans Bergsten
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

Re: AW: Off-topic: Deploy compiled JSPs

2002-07-31 Thread Hans Bergsten
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

Re: jsp tag evaluation on the fly

2002-07-31 Thread Hans Bergsten
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

Re: jsp tag evaluation on the fly

2002-07-31 Thread Hans Bergsten
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

Re: jsp tag evaluation on the fly

2002-07-31 Thread Hans Bergsten
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

Re: using datasource

2002-08-04 Thread Hans Bergsten
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

[ANN] JavaServer Pages, 2nd Edition released

2002-08-30 Thread 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

Re: Dynamically reloading bundles?

2002-09-03 Thread Hans Bergsten
] 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

Re: How to access an element of array without using the iterationtag

2002-09-10 Thread Hans Bergsten
]} 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]

Re: How to access an element of array without using the iterationtag

2002-09-10 Thread Hans Bergsten
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

[ANN] JSTL article, Part 2, at ONJava.com

2002-09-11 Thread 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

Re: c:out and \n

2002-09-17 Thread 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

Re: c:import

2002-09-17 Thread Hans Bergsten
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

Re: jsp:getProperty

2002-09-27 Thread Hans Bergsten
=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

Re: Issue in giving runtime expression for custom tag attributes

2002-09-27 Thread Hans Bergsten
-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]

Re: Request Parameter keys as java constants

2002-10-12 Thread Hans Bergsten
: 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

Re: Beefing up JSTL EL in JSP 2

2002-10-13 Thread Hans Bergsten
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

Re: Beefing up JSTL EL in JSP 2

2002-10-14 Thread Hans Bergsten
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

Re: JSTL on the fly

2002-10-18 Thread Hans Bergsten
/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

[ANN] Part 3 of my JSTL article at ONJava.com

2002-10-30 Thread Hans Bergsten
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

Re: JSTL: converting taglib and Java variables

2002-11-03 Thread Hans Bergsten
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

Re: JSTL Result Object and caching

2002-11-04 Thread Hans Bergsten
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

Re: Tag for uploading

2002-11-06 Thread Hans Bergsten
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

Re: i need your opinion guys

2002-11-06 Thread Hans Bergsten
. 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

Re: i need your opinion guys

2002-11-06 Thread Hans Bergsten
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

Re: i need your opinion guys

2002-11-06 Thread Hans Bergsten
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

Re: [jstl] jsp:forward ideas

2002-11-08 Thread Hans Bergsten
-- 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

Re: Beans and JSTL

2002-11-11 Thread Hans Bergsten
. 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

Re: How to close a database connection with JSTL?

2002-11-11 Thread Hans Bergsten
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

Re: Whitespace generated by JSTL tags

2002-11-13 Thread Hans Bergsten
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

Re: How to maintain collections with JSTL?

2002-11-15 Thread Hans Bergsten
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

Re: problem with SQL tags

2002-11-15 Thread Hans Bergsten
, 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

Re: problem with SQL tags

2002-11-18 Thread Hans Bergsten
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

Re: How to maintain collections with JSTL?

2002-11-18 Thread Hans Bergsten
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

Re: problem with SQL tags

2002-11-18 Thread Hans Bergsten
); } 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

Re: problem with SQL tags

2002-11-18 Thread Hans Bergsten
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

Re: taglib directives confusion

2002-11-20 Thread Hans Bergsten
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

Re: Question for Bergsten

2002-11-21 Thread Hans Bergsten
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

Re: taglib directives confusion

2002-11-21 Thread Hans Bergsten
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

Re: How to use JSTL XSLT tags with result attribute

2002-11-25 Thread Hans Bergsten
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

Re: setProperty

2002-11-26 Thread Hans Bergsten
} 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

Re: c:set can't set JavaBean property

2002-12-18 Thread Hans Bergsten
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

Re: Using scripting variables in a custom taglib

2003-01-14 Thread 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

Re: more forEach woes

2003-02-10 Thread Hans Bergsten
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

Re: more forEach woes

2003-02-10 Thread Hans Bergsten
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

Re: simple question

2003-02-17 Thread Hans Bergsten
-- 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

Re: Attributes with Spaces in Their Names

2003-02-19 Thread Hans Bergsten
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

Re: Can I use MyClass as a attribute

2003-02-19 Thread Hans Bergsten
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

Re: Syntax for concatenating strings and escaping quotes

2003-02-20 Thread 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

Re: Basic EL Use Help

2003-03-23 Thread Hans Bergsten
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

Re: JSTL Tag in a directive.

2003-07-05 Thread Hans Bergsten
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

Re: JSTL Tag in a directive.

2003-07-05 Thread Hans Bergsten
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

Re: How to create a general resource bundle for JSTL?

2003-07-09 Thread Hans Bergsten
] - 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

Re: JSTL character encoding

2003-09-29 Thread Hans Bergsten
). 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

Re: Tag Lifecycle

2003-09-30 Thread 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

Re: fmt taglib validation fails with web-app_2_4.xsd

2003-10-02 Thread 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

Re: fmt taglib validation fails with web-app_2_4.xsd

2003-10-03 Thread Hans Bergsten
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

Re: is this link correct?

2003-10-21 Thread Hans Bergsten
-- 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

Re: is this link correct?

2003-10-22 Thread Hans Bergsten
., 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

Re: Storing JSTL/EL statements?

2003-10-30 Thread Hans Bergsten
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

Re: JSTL (fmt multiple bundles get locale, c forTokens last token)

2003-11-11 Thread Hans Bergsten
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

Re: c:forEach, c:import and variable scope?

2003-12-09 Thread Hans Bergsten
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

Re: c:forEach, c:import and variable scope?

2003-12-09 Thread Hans Bergsten
=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

[ANN] JavaServer Pages, 3rd Edition (O'Reilly)

2003-12-19 Thread Hans Bergsten
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

Re: [ANN] JavaServer Pages, 3rd Edition (O'Reilly)

2003-12-19 Thread 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

Re: [ANN] JavaServer Pages, 3rd Edition (O'Reilly)

2003-12-23 Thread Hans Bergsten
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

Re: [ANN] JavaServer Pages, 3rd Edition (O'Reilly)

2003-12-23 Thread Hans Bergsten
(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

Re: JSTL with Resin 2.1.11 and JDK1.4.2

2004-01-15 Thread Hans Bergsten
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

Re: How can I get the size of a java.util.List class from JSTL?

2004-01-22 Thread Hans Bergsten
} 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

Re: c:set vs. bean:define and %= % behavior question

2004-02-03 Thread Hans Bergsten
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

Re: JSTL: POST vs GET

2004-02-06 Thread Hans Bergsten
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

Re: taglib standard 1.0 in Tomcat

2004-02-26 Thread Hans Bergsten
;, 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

Re: taglib standard 1.0 in Tomcat

2004-02-26 Thread Hans Bergsten
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

Re: taglib standard 1.0 in Tomcat

2004-02-27 Thread 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

Re: taglib standard 1.0 in Tomcat

2004-02-27 Thread Hans Bergsten
. 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

Re: taglib standard 1.0 in Tomcat

2004-02-27 Thread Hans Bergsten
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

Re: xslt expression

2004-03-03 Thread 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

Re: More SQL Date problems

2004-03-30 Thread Hans Bergsten
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

Re: More SQL Date problems

2004-03-30 Thread Hans Bergsten
-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

Re: More SQL Date problems

2004-03-31 Thread Hans Bergsten
) /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

Re: More SQL Date problems

2004-04-16 Thread Hans Bergsten
) 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

Re: JSTL1.1 and DataSource problems

2004-06-08 Thread Hans Bergsten
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

Re: Custom Tags

2004-10-05 Thread Hans Bergsten
) % /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