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
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
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
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 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
::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
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
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
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
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
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
g.Boolean"%><%--
--%><%@ attribute name="includeLast"
type="java.lang.Boolean"%><%--
--%><%--
--%><%--
--%><%--
--%><%--
--%><%--
--%>${preDelim}<%--
--%><%--
--%>${item[property]}<%--
--%><%--
--
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
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
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
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
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
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
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
>
> ${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
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
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'
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
>
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
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
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);
>
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
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
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
-
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
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
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
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
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
34 matches
Mail list logo