Re: Custom Tags

2004-10-05 Thread Hans Bergsten
tln("This is invalid") %> 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 <

Re: JSTL1.1 and DataSource problems

2004-06-08 Thread Hans Bergsten
valid: "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/&g

Re: More SQL Date problems

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

Re: More SQL Date problems

2004-03-31 Thread Hans Bergsten
VALUES (res_id_seq.NEXTVAL, ? ) INSERT INTO resource_registry (resource_id) VALUES (res_id_seq.NEXTVAL) 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

Re: More SQL Date problems

2004-03-30 Thread Hans Bergsten
C driver are you using? If it's the JDBC-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 Librari

Re: More SQL Date problems

2004-03-30 Thread Hans Bergsten
er in the SQL statement to SQL NULL if the value is null (according to the spec; bugs in an implementation is a different story). One possible 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 Bergste

Re: xslt expression

2004-03-03 Thread Hans Bergsten
expressions??!!" That seems absolutely crazy to me. Does it really want me to type in a whole xsl document? I have to deliver the xsl document via an expression. I must be doing something wrong. Any ideas? Here is my code code: <%@ taglib prefix="c" uri="http://java.sun.co

Re: taglib standard 1.0 in Tomcat

2004-02-27 Thread Hans Bergsten
uot;; %> The example application for the second edition of my statisfies the above. JSP 1.2 doesn't support EL expressions in template text, so you have to use JSTL's action instead, e.g., This page has been visited times ... Again, the examples f

Re: taglib standard 1.0 in Tomcat

2004-02-27 Thread Hans Bergsten
old web apps in JSP. 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 "JavaSer

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; usin

Re: taglib standard 1.0 in Tomcat

2004-02-26 Thread Hans Bergsten
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-26 Thread Hans Bergsten
quot;http://java.sun.com/jstl/core";, not ^^^^ "http://java.sun.com/jsp/core"; hANS -- Hans Bergsten<[EMAIL PROTECTED]> Gefion Software <http://www.gefionsoftware.com/> Author of O&#

Re: JSTL: POST vs GET

2004-02-06 Thread Hans Bergsten
cs may not have been updated to describe them yet). Hans --- Hans Bergsten <[EMAIL PROTECTED]> wrote: Evgeny Gesin wrote: Hi, I will provide a little more information, may be that will be important. 1. I use an in-house developed Tiles, similar to Struts, so each page is make up of of

Re: JSTL: POST vs GET

2004-02-06 Thread Hans Bergsten
rks fine. What is wrong ? Tomcat 5 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 PR

Re: vs. and <%= %> behavior question

2004-02-03 Thread Hans Bergsten
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 , e.g., <%= var1 %> Hans -- 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
Zsolt wrote: Hi, how can I replace the code below with a JSTL command ? (scc_history points to a java.util.List class). With JSP 1.2 and JSTL 1.0, there's no way to get the size, only to check if it's empty: With JSP 2.0 and JSTL 1.1, you can use the length() function: Ha

Re: JSTL with Resin 2.1.11 and JDK1.4.2

2004-01-15 Thread Hans Bergsten
.4.2 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]> Gef

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

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

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

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

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

2003-12-23 Thread Hans Bergsten
chapter, plus appendixes with concice descriptions of all JSTL custom tags and classes and the JSP EL syntax, variables, and type conversion rules. The EL and JSTL tags are also used extensively in realistic examples throughout the book. Hans Hans Bergsten wrote: I'm proud to announce that th

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]> Se

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

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

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

2003-12-09 Thread Hans Bergsten
jsp"/] > > [/c:forEach] > > > > In this page.jsp I try to access ${foo}, like so: > > [c:out value="${foo}"/] > > > > No go. ${foo} seems undefined there :( page.jsp does not see > > it. Scope issue? > > > > I then tried adding t

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

2003-12-09 Thread Hans Bergsten
o} 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 Bergsten<[EMAIL PROTECTED]> Gef

Re: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator

2003-11-25 Thread Hans Bergsten
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) note The full stack trace of the root cause is available in the Tomcat logs. Thanks. ----

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

2003-11-11 Thread Hans Bergsten
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 of O'Reilly&#x

Re: Storing JSTL/EL statements?

2003-10-30 Thread Hans Bergsten
ope? say you have "business.name" expression stored in request scope (tied to "expression") alongside a "business" object. i'd essentially like to do something like this: which would perform 2 evaluations giving - in theory: Business Foobar (assuming Busine

Re: is this link correct?

2003-10-21 Thread Hans Bergsten
y 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] Sent: Tuesday, October 21, 2003 2:24 PM

Re: is this link correct?

2003-10-21 Thread Hans Bergsten
stribution) in the WEB-INF/lib directory of the web application and use the appropriate taglib directives in the JSP pages, as shown above. Do _not_ use any tag library declarations in the web.xml file. At best, they are redundant since JSP 1.2, at worst they cause the application to fail. Some container

Re: test expression within test using jsp:expression request.isUserInRole

2003-10-17 Thread Hans Bergsten
IsUserInRole within the test. How do i do that ? Right now,it says that test must not contain the < character. Thanks, Vijay "> -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> -- Hans Bergsten

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

2003-10-03 Thread Hans Bergsten
t problems with XML Schema validation due 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

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

2003-10-02 Thread Hans Bergsten
7;t find any reference to this issue in the archives or google or bugzilla, but I'm sure it must be a well known issue. Does anybody know what's up with my set-up? Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 ---

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 Be

Re: JSTL & character encoding

2003-09-29 Thread Hans Bergsten
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<[EMAIL PROTECTED]> Gefion Software

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

2003-07-09 Thread Hans Bergsten
scribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --

Re: Please define ${ }

2003-07-08 Thread Hans Bergsten
te text with any version of the JSP spec. 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: 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="" %> I didn't see anything in the Spec that suggests that it would violate spec, but it wasn't mentioned either

Re: Problems with tag

2003-07-05 Thread Hans Bergsten
continue to use the Struct logic library instead of using JSTL's for testing property values of these things. Hans -- Hans Bergsten<[EMAIL PROTECTED]> Gefion Software <http://www.gefionsoftware.com

Re: JSTL Tag in a directive.

2003-07-05 Thread Hans Bergsten
u can use an EL expression) and that the semantics for are better defined for error cases (e.g., page not found). is also able to include data from external resources, like a different web app in the same server or even from a different server; only support include of res

Re: Problems with tag

2003-07-05 Thread Hans Bergsten
7;summaryForm' object. It was capable of seeing it and extracted the variable I asked from it just fine. Why doesn't the tag act in the same manner? Is this a bug or am I doing something wrong? See above. It's arguably a bug in your bean class (unless there's something el

Re: Calling values by their key in a vector of hashtables...

2003-06-18 Thread Hans Bergsten
over them. 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 at

Re: why the jstl didn't work :(

2003-04-02 Thread Hans Bergsten
Pendaftaran Nama Domain http://idc.plasa.com khusus di bulan Maret ! === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hans Bergsten<[EMAIL PROTECTED]> Gefion Software <http://www.g

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 &qu

Re: Basic EL Use Help

2003-03-23 Thread Hans Bergsten
.getAction(), correct? 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']} Hans -- Hans Bergsten<[EMAIL PROT

Re: Syntax for concatenating strings and escaping quotes

2003-02-20 Thread Hans Bergsten
David Goodenough wrote: Looking at the PDF of Appendix A of the JSTL book it would appear that there is no operator for concatenating strings. Following the EcmaScript model one would assume that it should be +, but is this right? Also if I wanted to add a ' to a string in an expression of the f

Re: Can I use MyClass as a attribute

2003-02-19 Thread Hans Bergsten
rland.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: Attributes with Spaces in Their Names

2003-02-19 Thread Hans Bergsten
tionScope['theRestaurantCollectionPacific Rim'].collection} Hans -- Hans Bergsten<[EMAIL PROTECTED]> Gefion Software <http://www.gefionsoftware.com/> Author of O'Reilly's "JavaServer Page

Re: simple question

2003-02-17 Thread Hans Bergsten
no different than this as far as it's concerned: foo bar It's just to us poor humans it looks confusing ;-) Hans -- Hans Bergsten<[EMAIL PROTECTED]> Gefion Software <http://www.gefionsoftware.com/>

Re: more forEach woes

2003-02-10 Thread Hans Bergsten
a bit about JSTL before you use 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: It simpl

Re: more forEach woes

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

Re: Using scripting variables in a custom taglib

2003-01-14 Thread Hans Bergsten
e used. Or even better, 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

Re: c:set can't set JavaBean property

2002-12-18 Thread Hans Bergsten
x27;t 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.

Re: setProperty

2002-11-26 Thread Hans Bergsten
what to use here ... ... c:set only sets a scoped var but cant use the bean (if i'm reading Shawn's book right)... is this possible using jstl or struts? i looked at the struts doc but dont see anything there either. Use : Hans -- Hans Bergsten

Re: How to use JSTL XSLT tags with "result" attribute

2002-11-25 Thread Hans Bergsten
o convert a String "outputResutl" into the type of "javax.xml.transform.Result", there is not a PropertyEditor to the type." I could not find a instructive articles on Web how to use "result" attribute of . You're example looks okay, except that you need to

Re: taglib directives confusion

2002-11-21 Thread Hans Bergsten
"; %> You do need to add this taglib directive. What 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]&

Re: Question for Bergsten

2002-11-21 Thread Hans Bergsten
deRedirectUrl() (note 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<[EMA

Re: taglib directives confusion

2002-11-20 Thread Hans Bergsten
1.4. If you use JDK 1.3, there are issues with XML parser 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

Re: problem with SQL tags

2002-11-18 Thread Hans Bergsten
han that, I don't know what 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 m

Re: problem with SQL tags

2002-11-18 Thread Hans Bergsten
ot;,"test user","testpass"); } 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? Th

Re: How to maintain collections with JSTL?

2002-11-18 Thread Hans Bergsten
hod that adds to the list, you need to use different methods names (i.e. define different properties), e.g.: public List getList() { return list; } public void setListItem(Object o) { list.add(o); } You can then add to the list with Hans -----Original Message- From

Re: problem with SQL tags

2002-11-18 Thread Hans Bergsten
class files really are in WEB-INF/lib, the only thing I can 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

Re: problem with SQL tags

2002-11-15 Thread Hans Bergsten
27;m getting a: org.apache.jasper.JasperException: Unable to get connection, 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. >

Re: How to maintain collections with JSTL?

2002-11-15 Thread Hans Bergsten
). 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 <http://www.gefionsoftware.com/&g

Re: Whitespace generated by JSTL tags

2002-11-13 Thread Hans Bergsten
avaworld.com/javaworld/jw-06-2001/jw-0622-filters.html> Another alternative is to use a filter that removes 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.

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 tag? > > I use this tag to connect to a database connection pool and the pool &

Re: Beans and JSTL

2002-11-11 Thread Hans Bergsten
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@;jakarta.apache.org> Fo

Re: How to close a database connection with JSTL?

2002-11-11 Thread Hans Bergsten
, plus the other JSTL SQL actions, I doubt that the problem lies with JSTL. You may want to elaborate on "I use this tag to connect to a database connection pool" and also tell us if you use the pool from some other code than the JSTL SQL actions. Hans -- Hans Bergsten [EMAIL PROTECTED]

Re: Alternatives to this hack ?

2002-11-10 Thread Hans Bergsten
o you can then get the normalized String with an EL expression like this: ${ef.string} As long as a method doesn't take any arguments, you can use this approach no matter what the return type is (i.e. it doesn't have to return a String). Hans -- Hans Bergsten [EMAIL PROTECT

Re: [jstl] jsp:forward ideas

2002-11-08 Thread Hans Bergsten
use existing code, that's exactly what I did for my book. You can download the code and use it anyway you like from here: <http://www.thejspbook.com/download.jsp> 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
ature for details). It's available in an online version through 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.c

Re: i need your opinion guys

2002-11-06 Thread Hans Bergsten
C drivers today include a real DataSource implementation that supports pooling, and if your's doesn't 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

Re: Tag for uploading

2002-11-06 Thread Hans Bergsten
ions are sufficient and that very little would be gained by adding it to the spec (in fact, it would make the spec more complex, and arguable file upload is not in scope for the servlet spec). If you feel strongly about it, I suggest you send it as a suggestion to the spec group. Hans -- Hans Ber

Re: i need your opinion guys

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

Re: Tag for uploading

2002-11-06 Thread Hans Bergsten
riginal Message ----- From: "Hans Bergsten" <[EMAIL PROTECTED]> To: "Tag Libraries Users List" <[EMAIL PROTECTED]> Sent: Wednesday, November 06, 2002 11:30 PM Subject: Re: Tag for uploading Martin Cooper wrote: [...] The Struts tag generates an HTML element,

Re: i need your opinion guys

2002-11-06 Thread Hans Bergsten
lidated, or the application is shutdown), the Result becomes available for garbage collection. Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com JavaServer Pages http://TheJSPBook.com -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakar

Re: Tag for uploading

2002-11-06 Thread Hans Bergsten
filter, like the file upload filter described 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 unsu

Re: JSTL Result Object and caching

2002-11-04 Thread Hans Bergsten
Stefan wrote: Hans, This using the Jakarta Cache object? No, the example I showed you uses only JSTL actions and the standard action. The Cache tag library is something different. Hans - Original Message - From: "Hans Bergsten" <[EMAIL PROTECTED]> To: "Tag

Re: JSTL Result Object and caching

2002-11-04 Thread Hans Bergsten
ure you only access the database for a request received at least one minute 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.ge

Re: JSTL 1.0.2 x:transform var/scope not working

2002-11-03 Thread Hans Bergsten
"var" attribute if you want to further manipulate (e.g. parse or transform) the transformation result. To save the String representation of the transformation, you can use the action like this instead: Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefion

Re: JSTL: converting taglib and Java variables

2002-11-03 Thread Hans Bergsten
;http://marc.theaimsgroup.com/?l=taglibs-user&m=103245887321124&w=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@;jakarta.apache.org> F

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

2002-10-31 Thread Hans Bergsten
e articles", the answer is "no". But if you feel that you need to refresh your memory about what JSTL can do for you, the articles may help you see the "big picture" so that you can then better understand the details in the book. Hans -- Hans Bergsten [EMAIL PROTECTED] Ge

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

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

Re: JSTL on the fly

2002-10-18 Thread Hans Bergsten
action to create an instance of java.util.Date: Don't be scared by the "bean" term; a bean is just a class with a no-argument constructor (all that's needed for ) and methods using the get/setPropertyName() naming convention (needed to access properties with EL expre

Re: [dbtags] SOLVED: Strange behavior since switching to Tomcat 4.1.1 2

2002-10-15 Thread Hans Bergsten
/ it's not fatal if the result set cannot be closed > e.printStackTrace(); > } > } > * * * * * * * * * * * * * * * * * * * > // we have to call this guy manually now > // with the spec clarification > release(); > * * * * * * * * * * * * * * *

Re: [dbtags] SOLVED: Strange behavior since switching to Tomcat 4.1.12

2002-10-15 Thread Hans Bergsten
ing), but we have the requirement of supporting JSP 1.1 > containers too (like WebSphere 4.0). So let's get busy on that JSP 1.1 > back-port of JSTL. > > Thanks > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > &

Re: Nested tag lib not working.

2002-10-14 Thread Hans Bergsten
is problems? Yes, you're using an action element as an attribute value. That's a no-no, and also unnecessary to accomplish what you want. Try this instead: ... Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com Ja

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.

Re: Beefing up JSTL EL in JSP 2

2002-10-13 Thread Hans Bergsten
entire > expression, not a single variable reference. 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 in the TLD. It can then be used in an

Re: Request Parameter keys as java constants

2002-10-12 Thread Hans Bergsten
ers in the web.xml file: foo bar ... and use it like this: ${param[foo]} Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com JavaServer Pageshttp://TheJ

Re: Beefing up JSTL EL in JSP 2

2002-10-12 Thread Hans Bergsten
Stefan wrote: > When are these changes due out ? I believe both JSP 2.0 and JSTL 1.1 are scheduled for release Q1 2003. Hans > - Original Message - > From: "Hans Bergsten" <[EMAIL PROTECTED]> > To: "Tag Libraries Users List" <[EMAIL PROTECTED]&

Re: Issue in giving runtime expression for custom tag attributes

2002-09-27 Thread Hans Bergsten
; >> Is this a bug or the expected functionality because for other html >> tags such as input i can specify it as >> >> >> >> Thanks Shanmugam.PL >> >> >> -- To unsubscribe, e-mail: >> <mailto:[EMAIL PROTECTED]> For additional

Re: jsp:getProperty

2002-09-27 Thread Hans Bergsten
", myClass2); %> With JSTL, case 2) it's much easier: 1) 2) 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.gefionsof

Re: parameters

2002-09-26 Thread Hans Bergsten
.XMLReaderImpl not found If you're using JDK 1.3.x, this may help: <http://marc.theaimsgroup.com/?l=taglibs-user&m=102806090925868&w=2> Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com JavaServer Pageshttp://TheJSP

Re: Is it possible to reference scriptlet variables from a JSTL tag?

2002-09-19 Thread Hans Bergsten
your code like this: <% Collection coll = delegate.getReservationsForUserID(userid); pageContext.setAttribute("col1", col1); %> Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com JavaServer Pagesh

Re: c:import

2002-09-17 Thread Hans Bergsten
javax.servlet.include.path_info javax.servlet.include.query_string These attributes are accessible from the included servlet via the getAttribute method on the request object. Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com

Re: c:out and \n

2002-09-17 Thread Hans Bergsten
nescaped for Java entities, and maybe even all > content as well. I wonder if this will hurt anything... > > If not, I'll aim for this feature to be in a 2.0 release. My apologies for > not being able to get it in sooner. > > Hen > > > -- > To unsubscrib

[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 -

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

2002-09-10 Thread Hans Bergsten
ts, not JSTL and the EL as you asked about. With JSTL and EL, something like this should work: " NAME="No Photo Available" ALIGN=BOTTOM BORDER=0> " NAME="Photo" ALIGN=BOTTOM BORDER=0> Not

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

2002-09-10 Thread Hans Bergsten
ression like this: ${myArray[0]} 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: Dynamically reloading bundles?

2002-09-03 Thread Hans Bergsten
eing considered by > J2SE. > > > Jan > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://ww

  1   2   >