Re: Recursive Tag

2005-08-19 Thread Rick Reumann
Cool tag Eugeny. Could you provide a sample of its use - or maybe add the sample usage in the comments of the tag file. On 8/19/05, Rahul P Akolkar <[EMAIL PROTECTED]> wrote: > > Eugeny N Dzhurinsky <[EMAIL PROTECTED]> wrote on 08/19/2005 09:25:34 > AM: > > I wrote the simple tag to handle and s

Re: Best practice for taglib declaration?

2005-04-05 Thread Rick Reumann
John Fereira wrote the following on 4/1/2005 2:28 PM: So why not use an include tag" <%@ include file="/WEB-INF/jsp/Include.jsp" %> where Include.jsp looks something like: http://www.w3.org/TR/html4/loose.dtd";> <%@ page contentType="text/html" %> <%@ taglib prefix="spring" uri="http://www.springfr

Re: Odd behavior of Number/String conversion??

2005-03-08 Thread Rick Reumann
Rahul P Akolkar wrote the following on 3/7/2005 6:51 PM: Conceptually, a fn:join is a better fit here, but I'm not too keen on creating arrays in JSPs ;-) Finally, if temporary variables is what you're after, 'theField' would be the next in line, although readability has its own benefits. Than

Odd behavior of Number/String conversion??

2005-03-07 Thread Rick Reumann
Ok this seems weird There is a map with some keys named field.0.type, field.1.type etc (don't ask reasoning, I was given this:) There is also fieldCount as a map property so I know how many of the annoying field.X.type keys there are. What I need to do now is loop over the count and get out t

[Thanks] Re: Can JSTL xml tags use a Document object in scope or does it require parse first?

2005-01-20 Thread Rick Reumann
Thanks guys. This list is great. Appreciate the help. Wim Goossens wrote the following on 1/20/2005 1:40 PM: Rick Reumann schreef: If we have a bean method that returns a org.w3c.dom.Document object, can the JSTL xml tag use that directly? or does it require the raw XML to be parsed first using

Re: Can JSTL xml tags use a Document object in scope or does it require parse first?

2005-01-20 Thread Rick Reumann
::SammyRulez:: wrote the following on 1/20/2005 10:24 AM: according to Bill Siggekow reference x:transform acept org.w3c.dom.Document object as vule of doc attribute. But will that only work in conjuction with applying an XSLT style sheet to it? I want to be able to use the x:out tags as if just d

Can JSTL xml tags use a Document object in scope or does it require parse first?

2005-01-20 Thread Rick Reumann
If we have a bean method that returns a org.w3c.dom.Document object, can the JSTL xml tag use that directly? or does it require the raw XML to be parsed first using the JSTL x:parse? Thanks for any info. The JSTL book I have doesn't mention being able to use a Document object in scope, only the

[solved thanks all] Re: How to avoid the line breaks when a tag file used within javascript?

2004-10-21 Thread Rick Reumann
ode looks much cleaner now. Now it's time to go struggle with more javascript for an application that I'm wondering will ever get out on time:) Rick Reumann wrote the following on 10/21/2004 7:45 PM: Kris Schneider wrote the following on 10/21/2004 7:39 PM: Output (no line breaks): *N/A

Re: How to avoid the line breaks when a tag file used within javascript?

2004-10-21 Thread Rick Reumann
Kris Schneider wrote the following on 10/21/2004 7:39 PM: Output (no line breaks): *N/A Now that drives me mad:) If you get a chance, just so I can tell if ends up being some server or OS situation. If you could send me that JSP and the tag file so I can plop them 'as is' into my app- that would

Re: How to avoid the line breaks when a tag file used within javascript?

2004-10-21 Thread Rick Reumann
Rahul P Akolkar wrote the following on 10/21/2004 7:10 PM: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %><%-- --%>')"><%-- --%> where test.jsp is another trivial JSP as follows: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %><%-- --%>A, <%-- --%>B, <%-- --%>C I

Re: How to avoid the line breaks when a tag file used within javascript?

2004-10-21 Thread Rick Reumann
Jason Lea wrote the following on 10/21/2004 6:31 PM: So you don't have a blank line after the ? positive. I triple checked that:) Perhaps you could try assigning the result to a var eg items="${associate.additionalServices}" property="code" postDelim=" ,"/>');" onmouseout="return nd();">* Then u

Re: How to avoid the line breaks when a tag file used within javascript?

2004-10-21 Thread Rick Reumann
g.Boolean"%><%-- --%><%@ attribute name="includeLast" type="java.lang.Boolean"%><%-- --%><%-- --%><%-- --%><%-- --%><%-- --%><%-- --%>${preDelim}<%-- --%><%-- --%>${item[property]}<%-- --%><%-- --

Re: How to avoid the line breaks when a tag file used within javascript?

2004-10-21 Thread Rick Reumann
uot; uri="http://java.sun.com/jsp/jstl/core"; %><%-- --%> ${s} EOF Will produce: Tag output: ' 0 1 2 3 ' But this tag file: <%@ tag body-content="scriptless" %><%-- --%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core

Re: How to avoid the line breaks when a tag file used within javascript?

2004-10-21 Thread Rick Reumann
Kris Schneider wrote the following on 10/21/2004 2:59 PM: Nope (I tried it - it looks like your choice A), but your example really isn't any different than mine ;-). The ' is after the tag and it's still on the same line as the tag's output. Care to (re)post the tag file that's giving you the probl

Re: How to avoid the line breaks when a tag file used within javascript?

2004-10-21 Thread Rick Reumann
Kris Schneider wrote the following on 10/21/2004 7:33 AM: Here'a a bogus example: dummy.jsp: -- <%@ page contentType="text/plain" %> <%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %> Tag output: '' dummy.tag: -- <%@ tag body-content="scriptless" %><%-- --%><%@ taglib prefix="c" uri

Re: How to avoid the line breaks when a tag file used within javascript?

2004-10-20 Thread Rick Reumann
Kris Schneider wrote the following on 10/21/2004 12:36 AM: You're sure there's not a newline at the very end of your tag file? I've even done a reg expression search and replace for \n and nothing found. It's just one line. I'm calling it from javascript like: ');" onmouseout="return nd();">* I

Re: How to avoid the line breaks when a tag file used within javascript?

2004-10-20 Thread Rick Reumann
Kris Schneider wrote the following on 10/20/2004 3:51 PM: Are you still pursuing this? If so, I use the following comment hack: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %><%-- --%><%@ attribute name="items" required="true" type="java.util.Collection"%><%-- --%>... I've also se

How to avoid the line breaks when a tag file used within javascript?

2004-10-15 Thread Rick Reumann
I created a simple forEach type of delimeter tag that works well for me (code at end). The problem, though, is I need to use this tag within a javascript method to produce a string that'll be used in a dhtml popup. The problem is that, even if I make this tag file all on one line, I still end u

Re: easy enough to write, but curious if it'll exist as part of JSTL (forEach question)

2004-10-14 Thread Rick Reumann
Kris Schneider wrote the following on 10/14/2004 8:12 AM: <%@ page contentType="text/plain" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %> <% pageContext.setAttribute("strArray", new String[] { "zero", "one", "two", "three" }); %> ${fn:join(strArray, ",")} very cool, tha

Re: JSP2.0 Tag File question

2004-04-05 Thread Rick Reumann
> > ${employee} (${employee.class}) > Employees: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] (class java.lang.String) [EMAIL PROTECTED] (class java.lang.String) [EMAIL PROTECTED] (class java.lang.String) [EMAIL PROTECTED] (class java.lang.String) &g

Re: JSP2.0 Tag File question

2004-04-05 Thread Rick Reumann
On Mon, Apr 05, 2004 at 12:04:50PM -0400, Kris Schneider wrote: > Glad that worked. What's the actual implementation type of the Collection? I'm > guessing that the string representation of the Collection contains > comma-separated elements which means will process it as a > collection of string

Re: JSP2.0 Tag File question

2004-04-05 Thread Rick Reumann
On Mon, Apr 05, 2004 at 09:20:16AM -0400, Kris Schneider wrote: > Jumping in late, sorry if I've missed something. If you don't specify a "type" > attribute for an "attribute" directive, it defaults to String. Perhaps: > > <%@ attribute name="employees" type="java.util.Collection" %> > Don'

Re: JSP2.0 Tag File question

2004-04-04 Thread Rick Reumann
not sure how to get the Tag File to see the var as EmployeeVO and not a String? Thanks again > > -Original Message- > > From: Rick Reumann [mailto:[EMAIL PROTECTED] > > Sent: Saturday, April 03, 2004 10:42 PM > > To: Tag Libraries Users List >

JSP2.0 Tag File question

2004-04-03 Thread Rick Reumann
This is just for a demo, but I'm trying to pass in collection into a Tag File. I'm doing something wrong though as I'm getting Unable to find a value for "name" in object of class "java.lang.String" using operator "." so, I'm thinking maybe I need to do the following differently when in a Tag Fi

Re: can't reference a class file (field) with el?

2003-08-14 Thread Rick Reumann
On Thu, Aug 14,'03 (03:06 PM GMT-0700), Solomon wrote: > > I was trying to use the value of a Java-class' static final field as > part of an EL-based value, but it didn't work. Kris proposed a great solution loading these static fields into a Map on application start up. I don't have the cod

RE: Way to compare scoped value to a class constant variable?

2003-07-22 Thread Rick Reumann
On Tue, 2003-07-22 at 12:41, Kris Schneider wrote: > public static Map getConstantFieldsAsMap(Class cls) > throws IllegalAccessException { > Field[] allFields = cls.getDeclaredFields(); > int numFields = allFields.length; > Map propMap = new HashMap(numFields); >

RE: Way to compare scoped value to a class constant variable?

2003-07-22 Thread Rick Reumann
On Tue, 2003-07-22 at 12:13, Karr, David wrote: > > So for every constant value that you want to use, in every JSP page, > you're going to have a call to the "bind" tag from the unstandard > library? This is as opposed to a single block of code in a servlet to > load the constants into a bean a

RE: Way to compare scoped value to a class constant variable?

2003-07-22 Thread Rick Reumann
On Tue, 2003-07-22 at 10:54, Karr, David wrote: > If you have a bunch of constants that you might want to reference, you > might consider processing a class with reflection, loading all the > "static final" variables into a hashmap, keyed by the variable name. > The resulting references in your J

Re: Way to compare scoped value to a class constant variable?

2003-07-22 Thread Rick Reumann
On Tue, 2003-07-22 at 10:52, Henri Yandell wrote: > Unsure if JSTL 1.1 will allow this, but using the Unstandard taglib you > can do: > > > > .. > > > http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/intro.html Killer! I'll have to check this out right now. -- Rick -

Way to compare scoped value to a class constant variable?

2003-07-22 Thread Rick Reumann
I'm wondering if there is a way I could compare a scoped variable to a static constant variable that is in a class? For example in Const class I have some levels like: public static final int JVP_LEVEL = 3; It would be nice if in my JSP I could do (after the import up top).. I know I could ju

Re: continued question on using an Integer from a Map

2003-07-17 Thread Rick Reumann
On Thu, Jul 17,'03 (10:46 AM GMT-0400), Kris wrote: > Did you see my previous reply? > > http://marc.theaimsgroup.com/?l=taglibs-user&m=105840665117009 No, sorry I missed it... I really need to start using IMAP for my mail so that I don't miss any between here and work. I keep my POP to leave

Re: continued question on using an Integer from a Map

2003-07-17 Thread Rick Reumann
On Thu, 2003-07-17 at 09:56, Michael Duffy wrote: > The java.util.Map only takes Objects as keys and > values. If you've got an int that you want to use as > the key to get a value out of your Map, you'll have to > wrap it as a java.lang.Integer first. I understand that:) What in my e-mail led

continued question on using an Integer from a Map

2003-07-17 Thread Rick Reumann
mapOfLaborReports[reportID]}'/> which is very different from (with "reportID" as the key) <:set var="laborReport" value='${mapOfLaborReports["reportID"]}'/> so to use 3 as a key nick On 16 Jul 2003, Rick Reumann wrote: > There is prob

How to retrieve a value from a Map where key is an Integer & ..?

2003-07-16 Thread Rick Reumann
There is probably a real easy answer for these two questions, but I searching the archives for a while hasn't helped... 1) I have beans in a map that are stored with integers for the keys. For testing I can retrive the bean out fine with the key of "test" like: But if I try this with... I g