Re: Serialising javax.servlet.jsp.jstl.sql.ResultImpl

2003-12-16 Thread Shawn Bayern
On Tue, 16 Dec 2003, Kris Schneider wrote: > Thanks for looking into it. To be honest, I'm surprised it took this > long to surface ;-). As for whether Result should actually extend > Serializable, I'm usually of the mind that an interface shouldn't extend > Serializable and that it's an "implemen

Re: break in c:forEach

2003-10-18 Thread Shawn Bayern
rue for only the first element in your loop, so it would be clearer just to turn the tag into a tag and be done with it. But in the general case, you'll need to use a flag. -- Shawn Bayern "JSTL in Action" http://www.jstlbook.com

JSTL in Action

2003-09-06 Thread Shawn Bayern
Hi there (from law school)! :) As I take a break from reading about civil rights in California, I just wanted to point out that I just found out "JSTL in Action" is back in stock at Amazon.com. (Some people here had pointed out that it was sold out for a while, but Amazon's stock is now replenis

Re: Unable to find value using operator "." (null)

2003-08-23 Thread Shawn Bayern
t it, and new methods, will not work.. Changing the method, and adding other classes, won't help. Just refer to the property as ${foo.crazy}. -- Shawn Bayern "JSTL in Action" http://www.jstlbook.com - To uns

Re: several messages

2003-08-14 Thread Shawn Bayern
On Thu, 7 Aug 2003, Rick Roberts wrote: > Dude! > Amazon and BarnesAndNobel are out of "JSTL in Action". > They must be selling like hot-cakes :) Ha. I just noticed too, and I've talked with the publisher; I hear they'll be restocking them soon. -- Shawn B

Re: Getting default data source into JSP

2003-07-28 Thread Shawn Bayern
mation in a standard fashion using just the 'el' tags. -- Shawn Bayern "JSTL in Action" http://www.jstlbook.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: several messages

2003-07-25 Thread Shawn Bayern
On Fri, 25 Jul 2003, Thomas Martin wrote: > Reading tech books is a good way to ruin a good cigar. Hey! Parts of my book should go quite well with a cigar (though I can't honestly say that was the design goal). :-) On Fri, 25 Jul 2003 [EMAIL PROTECTED] wrote: > I much prefer Shawn's new book,

Re: tag for checking "enum"?

2003-07-17 Thread Shawn Bayern
a 'getValue()' method, and then for a 'Power' instance, you could write '${p.value}'. -- Shawn Bayern "JSTL in Action" http://www.jstlbook.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Jakarta Taglibs Installation

2003-06-30 Thread Shawn Bayern
format necessary for it to work. Note that it's mandatory for the container to support it; it's not mandatory for a taglib author to deploy his or her libraries in this fashion (though it's probably a good idea in all cases). -- Shawn Bayern "

Re: Jakarta Taglibs Installation

2003-06-29 Thread Shawn Bayern
On Mon, 30 Jun 2003, [gb2312] guo yingshou wrote: > Are you sure it works on all j2ee complaint servlet engine? The behavior is mandated by sections 7.2.1 and 7.3.1 of the JSP 1.2 specification, so all compliant containers support it; if a product claiming compliance doesn't support it, then it's

Re: Jakarta Taglibs Installation

2003-06-29 Thread Shawn Bayern
On Sun, 29 Jun 2003, Michael Duffy wrote: > Actually, step 3. is unnecessary. When you create the JAR file for > your handler, the TLD file goes inside it. It's already got the URI > string you should use in your JSP. When the JSP compiler goes looking > for your TLD, it'll find it in the JAR b

Re: Auto commit in Jakarta taglib?

2003-06-16 Thread Shawn Bayern
Ah - I just realized you were using DBTags, not JSTL. If you're using a JSP 1.2 container, you'll probably want to switch to JSTL anyway. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern On Mon, 16 Jun 2003, Roland Dong wrote: > > > I have some

Re: Auto commit in Jakarta taglib?

2003-06-16 Thread Shawn Bayern
JSTL offers a tag to handle transactions; you can simply group related tags -- which you should be using instead of -- as children of a sql:transaction> element. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern On Mon, 16 Jun 2003, Roland Dong wrote: >

Re: Document root element is missing

2003-06-11 Thread Shawn Bayern
or something similar) with an EL expression. In other words, if you've called it 'xmldoc_string' in one of the scopes, then should work. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -

Re: Example use of java.servlet.jsp.jstl.sql.dataSource?

2003-06-06 Thread Shawn Bayern
s necessary. When you set a default, you don't need to use the tag at all; this tag is useful only in cases where you haven't established (or want to override) the default. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern ---

RE: tag forEach

2003-06-04 Thread Shawn Bayern
exception if they caught it). Instead, the goal is to simplify things for page authors. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Custom tags outputting a JSTL tag

2003-05-27 Thread Shawn Bayern
to include, parameterized by request attributes. This leads to a better design anyway, where output stays the responsibility of JSP pages. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: why the jstl didn't work :(

2003-04-01 Thread Shawn Bayern
on a particular implementation of a standard). -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Evaluating BodyContent

2003-03-21 Thread Shawn Bayern
Expressions, unlike Java, are limited in function; they are only used to retrieve values from a handful of specific locations, not to call open-ended Java code. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -

Re: Evaluating BodyContent

2003-03-21 Thread Shawn Bayern
vague and not particularly a target. The advantage of ${foo} to <%= foo %> is that it can be used in the middle of otherwise well-formed XML documents; JSP continues to provide an XML syntax. In fact, ${foo} is more compatible with XML than in cases where you want to use the variab

Re: Evaluating BodyContent

2003-03-21 Thread Shawn Bayern
tand the question, but one of JSP 2.0's advantages is that you can use the EL in your tags without having to write any code (just the way you can use rtexprvalues now). So you'd write -- Shawn Bayern "JSTL in Action&

Re: Evaluating BodyContent

2003-03-21 Thread Shawn Bayern
to simplify page syntax; the focus hasn't changed. In other words, instead of <%= pageContext.findAttribute("foo") %> you'd simply write ${foo} in JSP 2.0. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern --

Re: Evaluating BodyContent

2003-03-21 Thread Shawn Bayern
following situation: ${a} The user will probably expect ${a} to evaluate to its original value, but if the tag's only opportunity to read and parse the content comes within doEndTag(), ${a}'s evaluation will be affected by the that occurs *after* its presence in the page. --

Re: Dynamic XPath Expression in JSTL

2003-03-20 Thread Shawn Bayern
On Thu, 20 Mar 2003, Peter Giesin wrote: > > > > > I would like to define the "x:out" statement to use the foo variable > instead of the hard-coded xpath. Something like this: select="$xml/$foo"/> > > I have read through the spec and various other docs, but just cannot > seem to get this wor

Re: [Q] Will the *REAL* JSTL taglib documentation please stand up

2003-03-20 Thread Shawn Bayern
ication itself, available from http://java.sun.com/products/jstl. That page also has an appendix from my book that lists tags and attributes in a concise form. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -

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

2003-03-15 Thread Shawn Bayern
o cause > problems later! JSTL defers to the JavaBeans standard in this regard: the introspector finds a property, by default, if either a getter exists, a setter exists, or both exist and match. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern --

Re: JSTL c:out rewrites html tags

2003-03-10 Thread Shawn Bayern
On Mon, 10 Mar 2003, Hanasaki JiJi wrote: > Great! the c:out inside the c:set just modifies the value but doesnt > output it to the web page? right? Right, exactly. -- Shawn Bayern "JSTL in Action" http://www.ma

Re: JSTL c:out rewrites html tags

2003-03-10 Thread Shawn Bayern
n use wrapped by to do this, as in <%-- modify string --%> -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: JSTL c:out rewrites html tags

2003-03-10 Thread Shawn Bayern
On Mon, 10 Mar 2003, Hanasaki JiJi wrote: > The JSTL taglibs (c:out) re-write html tags into > so the actual > text prints out. Is there any way to disable this? Yes, the escapeXml="false" attribute of the tag disables this behavior. -- Shawn Bayern "JSTL in Action&q

Re: Dynamically built select statements (SQL)

2003-03-03 Thread Shawn Bayern
ed > result.limitedByMaxRows and that got the same. Presumably it is > looking for a get method, how do I access an is method? ${result.limitedByMaxRows} is correct; are you sure it produced an error? -- Shawn Bayern "JSTL

Re: Dynamically built select statements (SQL)

2003-03-03 Thread Shawn Bayern
metacharacters. Use the escapeXml="false" attribute to get around your problem. (The problem would show up more clearly if you looked at the raw HTML source of the page that's giving you this error message.) -- Shawn Bayern "JSTL in Action" http://www.manning.com/

Re: 1.03 Change List?

2003-02-26 Thread Shawn Bayern
On Wed, 26 Feb 2003, Hunter Hillegas wrote: > Any place where there is a list of changes? Sure. It's linked (as "Release Notes") off of the Standard Taglib Documentation on the main page for the Standard Taglib at Jakarta Taglibs. The direct URL for the revision history is http://jakarta.ap

Re: Starting

2003-02-19 Thread Shawn Bayern
application, and a "web portal." They stretch JSTL as far as it can go in this respect; any larger applications would probably require Java. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -

RE: Benefits of using taglibs...

2003-02-19 Thread Shawn Bayern
r words, they're compiled only when they change.) -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Starting

2003-02-19 Thread Shawn Bayern
In fact, "JSTL in Action" has lots of information for people in your situation; I had sort of hoped there would be more people like you. :-) -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern

Re: Benefits of using taglibs...

2003-02-19 Thread Shawn Bayern
tag libraries; your scriptlet code is being compiled into servlets before it's run. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tag List

2003-02-18 Thread Shawn Bayern
Just as interesting historical background... The terms "model 1" and "model 2" actually come from an old version of the JSP specification that describes two models of web-application development: the first model ("model 1") sends requests directly to JSP pages, whereas the second ("model 2") send

Re: JSTL

2003-02-18 Thread Shawn Bayern
oon; I had planned on releasing it this weekend but got sidetracked by a number of other things -- I expect to have it posted tonight or tomorrow. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsub

Re: EL Functions

2003-02-16 Thread Shawn Bayern
he precise set of functions that JSTL 1.1 will expose is still being debated, but it will likely include a limited set of string-manipulation functions and a handful of targeted solutions (such as a 'size' function). Future versions of JSTL can expose more functions as necessary. -- S

Re: Looping a tree-structure of objects of unknown depth

2003-02-14 Thread Shawn Bayern
ies make me think that as cute as solutions like this are, they're better done in Java. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern On Fri, 14 Feb 2003, Sha

Re: Looping a tree-structure of objects of unknown depth

2003-02-14 Thread Shawn Bayern
, you could do the following: printDirectory.jsp -- Cute, huh? :-) -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern --

Re: Problem with "empty" key word on a collection.

2003-02-13 Thread Shawn Bayern
EL doesn't deal with Collections in general in any other situation. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem with "empty" key word on a collection.

2003-02-13 Thread Shawn Bayern
lder.getContent() returns a type of java.util.Collection. The 'empty' operator is specified to work with java.util.List and java.util.Map (as well as arrays and strings), not java.util.Collection in general. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern ---

Re: Properties of variables

2003-02-12 Thread Shawn Bayern
On Wed, 12 Feb 2003, Eddie Barna wrote: > I am working through the JSTL in Action book by Shawn Bayern. Great > book by the way. Cool! Great to hear. > I have finaly ran into a situation that brought me here. The variable > exposed by the tag has certain proper

Re: Standard Taglib 1.0.3: almost ready

2003-02-12 Thread Shawn Bayern
On Tue, 11 Feb 2003, Fredrik Westermarck wrote: > Will there be a 1.0.3 of the Standard Taglib soon, or are there still > issues that needs to be resolved before a release can be made? Our plan is to release Standard Taglib 1.0.3 within a few days -- most likely by 2/17. Shawn

Re: oh, my

2003-02-10 Thread Shawn Bayern
On 10 Feb 2003, Felipe Schnack wrote: > I guess I need an "extremely dummy user guide to JSTL". I'm making a > request to a JSP much like > http://localhost:8080/test.jsp?number=5 > So, why this doesn't work: > > What have you put inside the l

Re: Typecasting the variable inside a c:foreach-loop

2003-02-10 Thread Shawn Bayern
> > Here's the loop: > > > > Need to cast here <% TypeB typeB = anObject.typeB %> > > Java code can refer to the scoped attribute as pageContext.findAttribute("anObject"); To get "typeB," you'd need to cast anObject to

RE: Using Standard Tag Library to Display a Request Attribute

2003-02-09 Thread Shawn Bayern
No, but that's only because 'org.apache.struts.Globals' isn't a scoped variable; the expression language can't be used to retrieve static fields in a class. The expression language is designed to access only certain kinds of data. -- Shawn Bayern "JSTL in Action&qu

Re: Using Standard Tag Library to Display a Request Attribute

2003-02-09 Thread Shawn Bayern
standing the request right, the following would work: ${requestScope[requestScope['org.apache.struts.Globals.LOCALE_KEY']]} -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ELSE for JSTL

2003-02-08 Thread Shawn Bayern
tical problem (or at least a very similar one) and came to the same conclusions. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using Standard Tag Library to Display a Request Attribute

2003-02-06 Thread Shawn Bayern
rks wherever . works, but it lets you avoid problems when the property name itself contains a period. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: Counter using Struts Taglibs

2003-02-06 Thread Shawn Bayern
s on JSTL; more info on mine is available at the URL below. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: and boolean value

2003-02-06 Thread Shawn Bayern
master block (like ) that caused us to want to avoid specifying such a tag for JSTL. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: jstl type conversion

2003-02-05 Thread Shawn Bayern
uble, but the result of a division with "/" is, by spec. If you're concerned simply about display, you can use to process the number according to your needs. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern

Re: about "return" in c:if tag

2003-02-05 Thread Shawn Bayern
iately, better ? > > Thanks in advance You don't seem to mind using scriptlets, so <% if (1==1) return; %> would work. Your own would indeed probably be cleaner, though. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -

Re: Dynamic HTML Parameters

2003-01-31 Thread Shawn Bayern
! You'll want to build up the string first and then use it as a dynamic property of 'param': -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to get all request parameters

2003-01-23 Thread Shawn Bayern
ith param.key - but a collection > of all keys ... is just ${param}, a Map of all request parameters (with single values). -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: c:out Problem

2003-01-21 Thread Shawn Bayern
version, use the attribute 'escapeXml="false"' in the tag. You might want to read through the JSTL standard or pick up a book on JSTL; it'll help with basic features like this. Best, -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To un

Re: about EL-based JSTL

2003-01-20 Thread Shawn Bayern
, and the "RT-based tags," which will allow either rtexprvalues or JSP 2.0 EL expressions, will be used. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

RE: forEach Problem

2003-01-20 Thread Shawn Bayern
ggested that this was a bug with a > particular implementation of JSTL. Are you using Tomcat? If I remember right, I think the bug was with Resin's implementation of JSTL. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: [JSTL] Is JSTL 1.0 forward compatible w/ JSP 2.0?

2003-01-20 Thread Shawn Bayern
On Mon, 20 Jan 2003, Jerome Jacobsen wrote: > I was looking at the JSTL code and noticed that the Tags attributes > which accept EL are of type String. Then the Tag handler does the EL > evaluation. However with JSP 2.0 wouldn't the attribute be the actual > Object expected (post evaluation)? In

Standard Taglib 1.0.3: almost ready

2003-01-14 Thread Shawn Bayern
now would be a great time. Just mail [EMAIL PROTECTED], or post to the regular Bugzilla archive at nagoya.apache.org, if you've got any questions or bugs to report. Thanks for all the feedback, reports, and questions. The implementation benefits immeasurably from your feedback. Shawn Ba

Re: x:set var

2003-01-13 Thread Shawn Bayern
ch, per the DOM API, isn't the same thing as what XPath means by "string-value." To store the value you expect instead of outputting it immediately, you should use a pattern like instead of . Alternatively, you can wrap the XPath expression in the string() function and continue to

Re: Can't call the field from a specific table.

2003-01-13 Thread Shawn Bayern
]}. You need to use the [] operator when the name of your property contains a dot. Your other two choices are to give aliases to the column names in your SQL statement and to refer to rows by index. But using ["oa.golf"] is probably the easiest in your situation. -- Shawn Bayern "

Re: How to Use a forEach Variable in Scriptlet

2003-01-10 Thread Shawn Bayern
ompile the JSP page. My understanding is that > z gets put in page scope, but I don't know how to > access it from there. JSTL tags don't expose scripting variables. You'd need either to insert a tag or to refer to the scoped attribute, as in <% String a = ((MyClass) p

Re: JSTL confused by overloading accessor methods

2003-01-09 Thread Shawn Bayern
e formal parameter in setXxx(). That is, in TYPE getXxx() and void setXxx(TYPE x) 'TYPE' must be the same. - No more than one setXxx() method may exist. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-mail:

Re: [JSTL] Help hiding/showing sections on JSP (w/ cookie?)

2002-12-19 Thread Shawn Bayern
) and work off of that. Having position-dependent > values seems an invitation to fragility. Oh, I definitely agree. Personally, I might just set multiple cookies, unless there were more than perhaps a dozen of them. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -

Re: [JSTL] Help hiding/showing sections on JSP (w/ cookie?)

2002-12-19 Thread Shawn Bayern
"Y,N,N,Y,..."), you could in principle loop over the cookie's components with and set different variables depending on what each individual value equals. The rough form of this solution looks like -- Shawn Bayern "JSTL in Action" http://www.manning.com/baye

Re: Need help with

2002-12-19 Thread Shawn Bayern
> filecreatedate, etc. > > Is this possible with JSTL or should I use the XTags library. Sure, you can use XPath expressions that use the "@" shorthand notation for the "attribute" axis, so you end up with something like /version/@mimetype This means "the attribute 'mimetype' of the tag 'version.'" Hope that helps, -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: periodic refresh with JSTL c:import

2002-12-18 Thread Shawn Bayern
perty of this object against the current time; Hans has shown how to do this in previous messages. It might be easier to use the Cache Taglib, which isn't part of JSTL but does exactly what you're looking for. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To

Re: Word Separator Character For Bean Key Names...

2002-12-12 Thread Shawn Bayern
ation. You must use the [] operator, as in ${sessionScope["com.abc.fleetsystems.employee"]} -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: a JSTL question

2002-12-05 Thread Shawn Bayern
On Fri, 6 Dec 2002, Hao Ding wrote: > Hi all, > > I got a question which confused me for several days. I hava a collection > and I want to set each item of the collection to a set of variables. Can > I do it using tag and how to access these variables? > > For example: > > > > > Can

Re: is it possible to re-use an existing sql:query variable?

2002-11-25 Thread Shawn Bayern
#x27;s possible just as you've written it. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: [Howto] use with varReader to import/parse large XMLfile ?

2002-11-25 Thread Shawn Bayern
to combine varReader with XML parsing, can somebody give me a > demonstration ? accepts a Reader, so you can simply write -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: [standard] nested forEach tags?

2002-11-23 Thread Shawn Bayern
On Sat, 23 Nov 2002, Wendy Smoak wrote: > Can you nest tags? I can't find an example of it, and > it's not working for me. Sure. > > > . > > > > > > > > > The first tag ends the loop. > > Should this be working? Does anyone see a

RE: JSTL Bug - requestScope[var] not working

2002-11-21 Thread Shawn Bayern
On Thu, 21 Nov 2002, Scott Goldstein wrote: > I'm not sure that I follow. How about these two snippets: > > <% > String value = "foo"; > %> > > > > and > > > > The second one works, while the first doesn't. Yes. Again, this is correct. In fact, the problem is the same: in the firs

Re: Question for Bergsten

2002-11-21 Thread Shawn Bayern
On Thu, 21 Nov 2002, Henri Yandell wrote: > I wonder if Sun will ever get around to dumping the acronym-rule bit > from their coding standard. Or is it already gone? > > [as in, URL is wrong by the Java Coding Standard, but Url is right] No, it's still there, but it's not universally followed.

Re: JSTL Bug - requestScope[var] not working

2002-11-21 Thread Shawn Bayern
gt; The first is returning null and the second is returning the > appropriate attribute value. I looked in the JSTL spec and it looks > like the first should work. > > Is this a bug? No, the behavior is as expected. -- Shawn Bayern "JSTL in Action" http://www.manning.

RE: RV: Manage Results obtained from ResultSets

2002-11-18 Thread Shawn Bayern
pageContext.setAttribute("r", ResultSupport.toResult(rs)); %> -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: How to maintain collections with JSTL?

2002-11-15 Thread Shawn Bayern
On Fri, 15 Nov 2002, Zaretzke, Peter wrote: > public void setList( String value ) { > list.add ( value ); > } > > does not work because it does not meet the parameter expectations ( > List vs. String ) for beans. I know that I can write more setZZZ() > methods to add som

Re: WARs missing from JSTL 1.0.2?

2002-11-14 Thread Shawn Bayern
On Thu, 14 Nov 2002 [EMAIL PROTECTED] wrote: > Am I just being stupid or are the WAR files missing from the binary > distribution of JSTL 1.0.2? Indeed, I think the latest distribution doesn't have the sample and 'doc' WARs. The problem was on my end; I've been meaning to correct it but haven't

Re: RV: Manage Results obtained from ResultSets

2002-11-14 Thread Shawn Bayern
is: Result r = ResultSupport.toResult(resultSet); -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

Re: skip , apply straight to a pre-build DOM instance

2002-11-14 Thread Shawn Bayern
m or from a servlet. But either way, you must refer to it using XPath variables, not the JSTL EL inside the 'select' attribute. Thus, you'd write -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-mail: <mailto:taglibs-use

RE: namespaces in x:parse

2002-11-14 Thread Shawn Bayern
On Thu, 14 Nov 2002 [EMAIL PROTECTED] wrote: > > > ="http://www.w3.org/1999/XSL/Transform"; scope="..."/> > > > > following name might look more familiar to anybody; no explanation needed. > > Names that begin with "xml&qu

Re: DTD for the various standard taglibs?

2002-11-11 Thread Shawn Bayern
On Mon, 11 Nov 2002, Manfred Riem wrote: > Does anyone have DTD modules for the standard taglibs? I need to have > those to do document validation offline ;) DTDs won't help you; JSP tags use namespaces, which are beyond the capabilities of DTDs. Shawn -- To unsubscribe, e-mail:

Re: DonĀ“t exists the tag

2002-11-11 Thread Shawn Bayern
ind the version of that creates a scripting variable, you can use instead. (Don't be fooled by the name "bean"; you can use it to create a scripting variable of any type.) -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-mail:

Re: Alternatives to this hack ?

2002-11-09 Thread Shawn Bayern
ib doesn't support the JSTL EL, and the EL in JSTL 1.0 won't let you access that method unless you provide a wrapper class. In JSP 2.0, you'll be able to associate that method with a function. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -

Re: JSTL snippet

2002-11-08 Thread Shawn Bayern
On Fri, 8 Nov 2002, Henri Yandell wrote: > Apologies if this is in one of the books on JSTL, I've only got > Shawn's and it's not in there afaik. Heh - the snippet is actually almost identical to Listing 9.1 in "JSTL in Action." :-) (It actually uses a slightly different approach, but the funct

JSTL video interview

2002-11-06 Thread Shawn Bayern
Hi all - TheServerSide.com just posted a cute little video interview they conducted with me about JSTL back in March. It probably won't be too informative if you're already using JSTL, and it's a little out of date by now (for it describes the organization of the RI between Apache and Sun as it w

Re: Standard Taglibs placement

2002-11-06 Thread Shawn Bayern
pointed out recently, auto-discovery of TLDs likely won't work if you install libraries into common/lib; you'll most likely need to define the libraries explicitly in a deployment descriptor. -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-

Re: fmt:setLocale problem again

2002-11-06 Thread Shawn Bayern
n URIs are always appropriate, it's not clear what's supposed to happen when you introduce a custom one. Any comments?) -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern On Wed, 6 Nov 2002, Alberto Tomas wrote: > Hy all, > I posted this question 3 weeks ag

Re: and NULL

2002-11-04 Thread Shawn Bayern
On Mon, 4 Nov 2002 [EMAIL PROTECTED] wrote: > Basically, is there a way for me to use and have it > literally write NULL instead of the string 'NULL'? Sure: This is different from the textual -- Shawn Bayern "JSTL in Action" http://www.jstlbook.com

Re: JSTL Result Object and caching

2002-11-04 Thread Shawn Bayern
; -- or other projects' alternatives -- if you want open-ended, time-based caching. -- Shawn Bayern "JSTL in Action" http://www.jstlbook.com -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

Re: EL in String Taglib 1.0

2002-11-01 Thread Shawn Bayern
On Fri, 1 Nov 2002, Henri Yandell wrote: > String Taglib [and all the Jakarta taglibs to my knowledge] are not > ELized yet. The Cache Taglib uses the EL interpreter from the Standard Taglib, but I believe that's the only one so far. -- Shawn Bayern "JSTL in Action" ht

Re: [ANN] Part 3 of my JSTL article at ONJava.com

2002-10-31 Thread Shawn Bayern
n.com site, the third > argument is an object. It shall be a locale string or a locale object? It can be a String or a java.util.Locale; both are intended to work (and teh Config.set() call is intended to be used with multiple configuration settings), which requires the use of Object as th

Re: jstl & jsp: working progress

2002-10-31 Thread Shawn Bayern
se JSTL to access the Result object; it wasn't designed for easy access in Java. What are you expecting to get from scriptlets in this case? -- Shawn Bayern "JSTL in Action" http://www.jstlbook.com -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakar

Re: jrun & jstl

2002-10-30 Thread Shawn Bayern
t="javax.servlet.jsp.jstl.sql.Result" %> ... <% Result pippo = (Result) ...; ... %> I strongly recommend not doing this, though, and using the JSTL tags instead. The issue you noted with line breaks will affect you with scriptlets as much as it will with JSTL tags. --

Re: Still Not Getting switching between EL Expression and JSPscripting

2002-10-30 Thread Shawn Bayern
See, however, chapter 14 and appendix B for examples of ResultSupport. -- Shawn Bayern "JSTL in Action" http://www.jstlbook.com -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

RE: multiple

2002-10-30 Thread Shawn Bayern
the non-XML syntax, an unmatched tag is simply template text. -- Shawn Bayern "JSTL in Action" http://www.jstlbook.com -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

Re: Still Not Getting switching between EL Expression and JSPscripting

2002-10-30 Thread Shawn Bayern
o be synchronized or not, and how you should manage its lifecycle, are questions dependent on your application's overall design. -- Shawn Bayern "JSTL in Action" http://www.jstlbook.com -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

  1   2   3   4   5   6   >