RE: JavaScript Functions-like Taglib

2002-02-01 Thread Brady Moritz
Without really looking at this, isn't string replacement better done as tag replacement using xsl, ie use tags in the body indicating header, etc and just transform via xsl? Or even just use xml entities? This is probably my favorite thing about xml... its like having a string with variables/plac

Re: JavaScript Functions-like Taglib

2002-02-01 Thread Greg Bishop
OK, save, here is something better /** Takes a string, and replaces the replace text with new text. * @param str String to replace into * @param pattern Pattern of text to replace. * @param replace What to replace it with. * @return str with the replace text replaced with t

Re: JavaScript Functions-like Taglib

2002-02-01 Thread Greg Bishop
The things on the client happen on the client. The things on the server happen on the server. What I do to handle this is read a template file (a piece of HTML), and plug in things replacing some text tags. (HIDDEN_FIELD_VALUE_GOES_HERE), etc... This gives you full control of everything. Porb

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: <%@ taglib uri="http://jakarta.apache.org/taglibs/xtags-1.0"; prefix="xtags" %> <%-- Demos the use of the tag using relative URIs and parameters are passed into the stylesheet --%>

Pb ForEach on a range

2002-02-01 Thread Jean-Paul Le Fèvre
Hi, I'm having a problem with iterator on a range. When I specify hard coded values for begin or end in the ForEach tag it works fine but when my end value is defined by an other variable : (end = "$lastValue") I got a raised exception. This lastValue is evaluated in one of my servlets and I ne

Re: [standard] Newbie: How to extend the examples?

2002-02-01 Thread Shawn Bayern
Hi Eric, It actually looks like what you've done is correct. Make sure that you've recomppiled the org.apache.taglibs.standard.examples.startup.Init class and that the container is noticing your changes. For instance, add some logging to that class and see if your message is printed to the log.

[standard] Newbie: How to extend the examples?

2002-02-01 Thread Eric . Lewis
Hi I'm new to JSTL and not quite new to Java. I think JSTL is the best thing since sliced bread :-) but I'm having a problem. Probably this is a very dumb question, but anyway... (I tried the examples and they all work) All I'm trying to do is set up a new iterator. Thus, I modify org.apache.ta

[standard] accepts what expression types?

2002-02-01 Thread Eric . Lewis
Hi I'm a newbie to JSTL (and Java more or less too) and was extremely confused about the syntax for the ECMAscript EL. Until I read http://www.mail-archive.com/taglibs-user@jakarta.apache.org/msg01249.html Of course, I had first tried something like and it didn't work. >From my point of vie

Problems Using a javax.xml.transform.dom.DOMSource with xtags library

2002-02-01 Thread Peter . Burgess
Hi, I have been having a great deal of difficulty transforming a org.w3c.dom.Document object with the xtags:style (and also x:transform) tag. All the examples have been targetted toward reading XML from a file ( url and StreamSource approaches). However, in our application we need to receive d