use Bind Variables?

2004-04-20 Thread Roy Benjamin
If you use the form, does the tag in some way optimize to use a bind variable and a prepared statement? It seems this could be done. I'll also check the source. Thanks Roy - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

RE: Beans static method in non static way

2004-04-06 Thread Roy Benjamin
My 2 cents: Although static methods are valid code applied to instances of the class; this is a matter of parsing and code generation. Static methods are logically methods of that instance's class object. In either case Java's reflecton mechanism doesn't seem to provide API access to invoking a

RE: Tomcat JNDI JDBC connection/JSTL DataSource

2004-04-05 Thread Roy Benjamin
gt; > 1). Add the following to web.xml to define the default datasource for JSTL: > > > javax.servlet.jsp.jstl.sql.dataSource > jdbc/EmployeeAppDb > > > 2). Use the "dataSource" attribute with , , or > : > > > > Quoting Roy Benjamin &l

RE: Tomcat JNDI JDBC connection/JSTL DataSource

2004-04-02 Thread Roy Benjamin
//jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how > to.html > > Also, you may want to check the JSTL spec -- it has a fair amount of info on > accessing data sources. > > Bill Siggelkow > [EMAIL PROTECTED] > > > -Original Message- >

Tomcat JNDI JDBC connection/JSTL DataSource

2004-04-02 Thread Roy Benjamin
I think I'm having some trouble with JDBC access via JSTL. I'm uncertain, but performance seems very sporadic and may relate to connection overhead and resource exhaustion. Now, I only see one form for the sql:dataSource tag and it seems not to allow for any connection management or tuning.

RE: formatDate -> changes Japanese to ???

2004-04-01 Thread Roy Benjamin
the content of your page. I'm not 100% certain but there were > some issues with setting the charset of the response. Check the list > archives to see if you can come up with something. > > Martin > > -Oorspronkelijk bericht- > Van: Roy Benjamin [mailto:[EMAIL PROTE

RE: formatDate -> changes Japanese to ???

2004-04-01 Thread Roy Benjamin
the browser will simply assume a charset by > looking at the content of your page. I'm not 100% certain but there were > some issues with setting the charset of the response. Check the list > archives to see if you can come up with something. > > Martin > > -Oorspron

fmt:formatDate -> changes Japanese to ???

2004-03-31 Thread Roy Benjamin
Perviously I wrote about using date fmt. I started using this construct to format results comming back from Oracle. I have Japanese in parts of this page. It displays fine if I do not use JSTL Otherwise it prints only as . Looking at the page source, it looks like the is outputing ?

Re: jsp:useBean (probably a stupid question)

2004-03-31 Thread Roy Benjamin
> update the scoped var it *won't* be reflected in the value of the scripting > var. In other words, doing this: > > > > : <%= foo %> > > : <%= foo %> > > Will output: > > bar : bar > baz : bar > > What specific problems are you ha

jsp:useBean (probably a stupid question)

2004-03-31 Thread Roy Benjamin
I have a function to format a date; takes and returns a String. There are two possible places where this may be used, one for on-line display, the other when downloading the data. construct. This works for the on-line option: but only if I use a different bean for the off-line option..

Re: EL access to a bean property... ?

2004-03-26 Thread Roy Benjamin
ty or not, you can use ${not empty map}. If you > really need the size of the map, you could try the Unstandard taglib: > > http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/intro.html > > Or do something like create a wrapper bean for collections that exposes a "s

EL access to a bean property... ?

2004-03-26 Thread Roy Benjamin
I am displaying the values in a TreeMap using forEach tag. However, I only want to do this if the map is not empty. I also need to display the count of entries in the map at the top of the page. In TreeMap, size/size() is not a Bean Property (no?) so I tried in-line subclassing to expose the prope

RE: JSP development environments

2004-03-25 Thread Roy Benjamin
I develop on SuSE linux only, so may bias my choices. I've been using Netbeans for years, primarily for Java server, networking, and Swing development.. last couple of years doing all jsp development though. Netbeans 3.5 -> Ok, but with some nearly fatal flaws. Netbeans 3.6 -> A Beta, I'm using

Re: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 and j2sdk1.4.1_06

2004-03-16 Thread Roy Benjamin
Not sure if this is helpful, but I'd be very reluctant to adopt a 'replace all methods' approach. Event if it were to work, you probably have not actually found the problem. The first thing I would do is to grab another copy (download) of Tomcat and untar it into a temp directory. Then I'd check t

Re: how to use c-rt? (or, when to mod web.xml?)

2004-03-11 Thread Roy Benjamin
t" uri="http://java.sun.com/jstl/core_rt"; %> > > Quoting Roy Benjamin <[EMAIL PROTECTED]>: > > > I'm using: > > > > Java SDK 1.4.2_03, > > Java J2EE 1.4 > > jakarta-taglibs-standard-1.0.5 > > jakarta-tomc

how to use c-rt? (or, when to mod web.xml?)

2004-03-11 Thread Roy Benjamin
I'm using: Java SDK 1.4.2_03, Java J2EE 1.4 jakarta-taglibs-standard-1.0.5 jakarta-tomcat-4.1.30 I've had no trouble using the core, sql, and fmt tags in my JSPs. ***All I did was to drop jstl.jar and standard.jar into my WEB-INF directory and add the proper direc