RE: Speed differences between jsp:include and c:import

2003-09-24 Thread Chen, Gin
Just out of curiousity. Unless the code is doing something short of ridiculous.. How much of a speed difference could there really be? I mean what exactly are u looking for? Would a difference of 100 milli effect the outcome of ur app? 1 sec even? What is the you main concern? -Tim -Original

RE: Speed differences between jsp:include and c:import

2003-09-24 Thread Chen, Gin
this stuff is implemented ;) Matt - Original Message - From: Chen, Gin [EMAIL PROTECTED] To: 'Tag Libraries Users List' [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:42 AM Subject: RE: Speed differences between jsp:include and c:import Just out of curiousity. Unless the code is doing

RE: How Can I Write To The Servlet Log Using JSTL?

2003-09-16 Thread Chen, Gin
JSTL has nothing to support something like this. You can either write a taglib that does this or check out Log from taglibs. http://jakarta.apache.org/taglibs/doc/log-doc/intro.html -Tim -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003

RE: using c:if tag to work out if one date is less than another .

2003-09-04 Thread Chen, Gin
You can access anything that follows JavaBean standards. (get/setXXX)(isXXX)etc. -Original Message- From: Martin Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 9:34 AM To: Tag Libraries Users List Subject: RE: using c:if tag to work out if one date is less than

RE: list size from c:forEach

2003-09-04 Thread Chen, Gin
you can simply set up a var beforehand with the size of the list. Personally I have always used: bean:size id=foo collection=blah/ Look at http://jakarta.apache.org/struts/userGuide/struts-bean.html#size for the syntax that will solve your particular case. Now to reference that you can just use

RE: writing a custom tag that can use EL

2003-09-03 Thread Chen, Gin
Not only that but Shawn Bayern's book JSTL in Action has a great chapter on extending the already existing JSTL tags that include using EL. Pick up the book, it'll be worth it. -Tim -Original Message- From: Eric W Hauser [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 10:55

RE: writing a custom tag that can use EL

2003-09-03 Thread Chen, Gin
Why should JSTL be included in JSEE1.4? Maybe I'm misunderstanding here but I think of JSTL as this set of taglibs that I use. How silly to have it included with JSEE 1.4. Wouldnt that mean that if a new development occurs within JSTL taglibs that it would have to wait for J2EE 1.4's next release

RE: message and struts tiles

2003-09-02 Thread Chen, Gin
yup.. just include a var and optional scope attribute. isnt jstl simple? ;) example would be something like: fmt: message var=foo key=bar/ and then in your result page do a: c:out value=${foo}/ -Tim -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Sunday, August

RE: Book Recomendation

2003-07-25 Thread Chen, Gin
We dont have basements in Florida. :'( -Original Message- From: Rick Roberts [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 10:54 AM To: Tag Libraries Users List Subject: Re: Book Recomendation It's on sale. I got it for 27.97 with free shipping. I prefer books because, I like

RE: several messages

2003-07-25 Thread Chen, Gin
Shawn took up Zen and now he wants to be a lawyer? Something doesn't make sense here. -Tim -Original Message- From: Shawn Bayern [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 2:25 PM To: Tag Libraries Users List Subject: Re: several messages On Fri, 25 Jul 2003, Thomas Martin

RE: One loop for two arrays

2003-07-22 Thread Chen, Gin
You were on the right track. Use the varStatus with a c:set. I'm not sure what the problem is. -Tim -Original Message- From: Vincent Peytavin [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 11:52 AM To: [EMAIL PROTECTED] Subject: Re: One loop for two arrays Sounds like a Map

RE: Length of collection using EL?

2003-07-22 Thread Chen, Gin
Use the archives.. its been discussed SO many times already. -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 12:41 PM To: [EMAIL PROTECTED] Subject: Length of collection using EL? Does anyone know how to get the length of a collection using

RE: Exception var - how to get using JSTL

2003-07-16 Thread Chen, Gin
There is currently no way to do that using JSP 1.x because it will not allow method calling (including passing parameters) using EL. However, this will change in JSP 2 as this will be supported. So for now I guess your stuck with using a scriptlet or creating a simple tag to do this. -Tim

RE: How come c:out didn't regonize variable?

2003-07-11 Thread Chen, Gin
All four scopes *were* checked. However, remember that your property is encapsuled within the formbean class. Therefore, it is not actually in any of the scopes directly. As for it being enclosed by the html:form tags, don't confuse JSTL with Struts. Struts will automagically get properties from

JSTL and java.util.Set

2003-06-30 Thread Chen, Gin
Is there a way to check if a value is in a java.util.Set? I know for a Map I can do: c:choose c:when test=${myMap.map.foo ne null} c:out value=${myMap.map.foo}/ /c:when c:otherwise blahblah /c:otherwise /c:choose but how do I do

RE: Non EL enabled tags

2003-06-12 Thread Chen, Gin
you have to have rt turned on. why don't you just write it as EL enabled? the classes in jstl core package is great for it. -Tim -Original Message- From: James Norman [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 1:30 PM To: [EMAIL PROTECTED] Subject: Non EL enabled tags If I

RE: tag forEach

2003-06-04 Thread Chen, Gin
Shawn gave a great answer to this question before: In the future please search the archives first. Shawn's response: New tags would be required for this, but they are not implementable in JSP 1.2 and have thus are not planned for JSPTL 1.0. The problem is how a break tag would signal the

RE: tag forEach

2003-06-04 Thread Chen, Gin
guidelines on how to interoperate with JSTL sheez.. already starting to think like a lawyer. ;) -Tim -Original Message- From: Shawn Bayern [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:13 PM To: Tag Libraries Users List Subject: RE: tag forEach On 3 Jun 2003, Dave Newton

RE: Going nuts with JSTL tag lib installation

2003-06-03 Thread Chen, Gin
If you download the latest version of JBoss w/ Jetty (jboss-3.2.1) it works great. I tried it in 3.2.0 too and just fine. I haven't tried Jetty pre-3.2.0 but I've heard that it used to not completely support JSP 1.2 -Tim -Original Message- From: James CE Johnson [mailto:[EMAIL PROTECTED]

JSTL Defined Methods

2003-05-31 Thread Chen, Gin
Sorry this was posted not too long ago but I can't find it in the archives. What are the JSTL 1.0 defined functions? (for trimming etc) -Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: JSTL Defined Methods

2003-05-31 Thread Chen, Gin
: JSTL Defined Methods Chen, Gin wrote: Sorry this was posted not too long ago but I can't find it in the archives. What are the JSTL 1.0 defined functions? (for trimming etc) -Tim See below. Please note that these EL functions are only available in JSTL 1.1. Original Message

RE: Can I do this?

2003-05-30 Thread Chen, Gin
c:set var=mapColumn value=${param.columnname}/ .. blah blah blah ... c:when test=${columnName == mapColumn} -Tim -Original Message- From: Das, Amar [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 4:49 PM To: 'Tag Libraries Users List' Subject: Can I do this? Hi, Can I use

RE: JSP e EL

2003-05-29 Thread Chen, Gin
*sigh* your right of course. sorry I should have looked at my own usage of it. -Tim -Original Message- From: Brian Buckley [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 7:35 PM To: Tag Libraries Users List Subject: Re: JSP e EL The target attribute needs ${} around it: c:set

RE: JSTL okay with get method, but no set method?

2003-03-17 Thread Chen, Gin
Missing setters dont cause a problem and missing getters dont either (it just wont get that variable ;) Java Introspection is based on what it finds for getters and setters and not the actual variable. But even though that's how ji works it is still considered standard to define all getters and

RE: Error with c:forEach JSTL tag

2003-03-12 Thread Chen, Gin
I'm kind of guessing here but I believe that you have a corrupted archive file. Go thru all the jar files that you unpacked for Taglibs and try to open them up individually. In particular try: C:\jasic\JRockitVM\jre\lib\i18n.jar By the way, once you get this working you might not see what you

RE: Java constants as attribute values

2003-03-11 Thread Chen, Gin
It is a nice trick. What would be even nicer is when JSP 2.0 comes out and allows JSTL support of method calls and static variables ;) -Tim -Original Message- From: Henri Yandell [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 11:16 AM To: Tag Libraries Users List Subject: Re:

setProperty

2002-11-26 Thread Chen, Gin
Hi all, I was wondering if there was a way using JSTL to set a property on a bean? For example: I have a page that shows the country. If the country is null then I want to use USA as the default. My code looks like: c:if test=${empty applForm.country} ... i

RE: setProperty

2002-11-26 Thread Chen, Gin
PM To: Tag Libraries Users List Subject: Re: setProperty Chen, Gin wrote: Hi all, I was wondering if there was a way using JSTL to set a property on a bean? For example: I have a page that shows the country. If the country is null then I want to use USA as the default. My code

RE: Special Chars in Param Name

2002-10-24 Thread Chen, Gin
that would be ${pageScope[user.name]}. -Original Message- From: Chen, Gin [mailto:Gin_Chen;tvratings.com] Sent: Monday, October 21, 2002 7:06 AM To: 'Tag Libraries Users List' Subject: Special Chars in Param Name Hi all, How can I use jstl when accessing values with special

JSTL on the fly

2002-10-18 Thread Chen, Gin
Does JSTL EL support creating objects? for example the following sniplet: center%= new java.util.Date() %/center can i do this using jstl tags without first having to set up a bean? in particular. I want to use the fmt tag to format this date. Thanks, -Tim -- To unsubscribe, e-mail:

RE: JSTL on the fly

2002-10-18 Thread Chen, Gin
Thanks Hans! :) I was just trying to be lazy and do the creation of the bean in the fmt tag. :-P -Tim -Original Message- From: Hans Bergsten [mailto:hans;gefionsoftware.com] Sent: Friday, October 18, 2002 1:44 PM To: Tag Libraries Users List Subject: Re: JSTL on the fly Chen, Gin wrote

request.getContextPath()

2002-10-18 Thread Chen, Gin
Why is this not returning the same thing as the scriplet version? c:out value=${request.contextPath}/ %= request.getContextPath() % Thanks, -Tim -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

XTags URL

2002-09-05 Thread Chen, Gin
Why doesnt this work? xtags:parse url='/get/?media=%= request.getParameter(type) %'/ i wanted to do something using the EL language as in: xtags:parse url='/get/?media=$param:type'/ as was in the docs for xtags but its not working. i am running in Tomcat 4.04 and deployed with just the

RE: Problem using Xtags

2002-07-24 Thread Chen, Gin
That's not a valid web.xml It should look like: (watch wrapping) ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app taglib

RE: Xtags problem...

2002-07-10 Thread Chen, Gin
No u dont have to. I use tag libs from the Standard release separately as needed in my projects with no problems. -Tim -Original Message- From: Carlos Barroso [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 11:42 AM To: '[EMAIL PROTECTED]' Subject: Xtags problem... Hi there.

RE: Proxy Scrape

2002-06-14 Thread Chen, Gin
Now I have another problem, if I change something in the JSP but dont restart the server, I will get errors like: javax.servlet.ServletException: scrape id qt2 is already in use How can you do it so that the server doesnt have to restart? -Tim -Original Message- From: Chen, Gin [mailto

Proxy Scrape

2002-06-13 Thread Chen, Gin
Hi, I'm having a problem with scrapes and proxies. I'm using Tomcat 4.0.1 with the newest Scrape and ORO taglib. My code is (ofcourse sensitive info changed): %@ taglib uri=http://jakarta.apache.org/taglibs/scrape-1.0; prefix=scrp % html head

xtags:parse

2002-05-29 Thread Chen, Gin
Why doesnt this work? xtags:parse uri=bean:write name='flowxml' scope='session'/ id=mydoc/ and yet bean:write name='flowxml' scope='session'/ alone will return the correct value and using: jsp:useBean id=flowxml class=java.lang.String scope=session/ xtags:parse uri=%= flowxml % id=mydoc/

Struts Vs Taglibs

2002-03-18 Thread Chen, Gin
Hi All, Just a curiousity question. What is the advantages of using one over the other? For example, alot of the tags seem to be doing the same type of tasks. (ex. Foreach versus Iterate). Why would one pick one approach over another? -Tim -- To unsubscribe, e-mail: mailto:[EMAIL

RE: Quickie question

2002-03-15 Thread Chen, Gin
oh sorry. HTTPS. I'm not sure about that. You can prob just extend the HTTP taglib to do that. Someone who's written more taglibs than me can advise you better. :) I would just get the source of the HTTP taglib and rewrite it. Someone else might have another way (can you extend an existing

RE: Quickie question

2002-03-15 Thread Chen, Gin
actually there is. Look at the HTML taglib in the jakarta project. In particular, look for rewrite in that taglib. I use the same thing in my app to handle references to images, scripts, etc.. -Tim -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: Friday, March 15,

RE: JSTL tag forEach context question

2002-03-15 Thread Chen, Gin
I think method invocation is a necessary idea in the current versions of JSTL that I've seen. There are still alot of things that seems unnecessarily complex in using soem of the taglibs. For example, to check if an arraylist is empty. You must first set up a variable to represent the size before

RE: Tiles and struts action

2002-03-13 Thread Chen, Gin
Is it just me or does the Struts taglib get ALOT less traffic than this one? And why isnt there a person like Shawn on that list? Shoot.. why isnt there a person like Shawn on all the lists that I'm on?!? :) -Tim -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]] Sent:

Empty

2002-03-01 Thread Chen, Gin
Hi all, 1) Didnt the struts taglib use to have a way to test if a collection is empty? I cant seem to find it anymore. I have a bean that contains an ArrayList. I want to Output a message if that ArrayList is empty. I also want a header if it is notEmpty. I could use the

XTags param

2002-02-01 Thread Chen, Gin
Hi all, I'm having a problem passing params to using the Xtags taglib. The example shows: !doctype html public -//w3c//dtd html 4.0 transitional//en html %@ taglib uri=http://jakarta.apache.org/taglibs/xtags-1.0; prefix=xtags % %-- Demos the use of the xtags:style tag using

Server side XML parsers

2002-01-28 Thread Chen, Gin
Hi All, I was wondering if there was a taglib that can parse XML values to the serverside. I currently use XTags to populate javascript objects but I would also like to use it to create some javabeans. All the taglibs that I have seen so far have worked for display to client side. But I

RE: x:tranform and no stylesheet

2002-01-28 Thread Chen, Gin
Shawn and Matt, Pardon my ignorance, what is the browser's style sheet? You mean that collapsible tree that u see in IE? -Tim -Original Message- From: Shawn Bayern [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 5:30 PM To: Tag Libraries Users List Subject: Re:

RE: XTag examples deploy failure

2001-12-21 Thread Chen, Gin
xtags:style that does everything xsl:apply does and more. XSL taglib requires Xalan1. XTags requires Xalan2 and JAXP1.1. With Xalan2 comes a xalan1jCompat.jar (or something like that) to provide backwards compatibility. James - Original Message - From: Chen, Gin [EMAIL PROTECTED] To: 'Tag

XSL Taglib

2001-12-19 Thread Chen, Gin
Hi all, Is it possible to pass a param to the xsl if ur are using the XSL taglib? ie. Given xsl:apply xml=/xml/employees.xml xsl=/xml/employeeList.xsl/ (taken from the examples) How can I pass a param to the employeeList.xsl? I tried to use xsl:param but I got a No such