Re: Does JSTL XML taglibs ignore XMLNamespace of input document?

2002-10-18 Thread Shawn Bayern
use a more specific syntax, along the lines of x:registerNamespace prefix=... uri=... scope=... / -- 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

RE: request.getContextPath()

2002-10-18 Thread Shawn Bayern
On Fri, 18 Oct 2002, Karr, David wrote: This seems confusing, but I think the specification is reasonably clear on this. I believe you need ${pageContext.request.contextPath} instead. Right. There isn't any implicit 'request' object. It's named 'requestScope' to emphasize that it's used to

Re: utility taglib, basic looping

2002-10-16 Thread Shawn Bayern
The Utility Taglib is old and out of date; it may contain bugs, and it isn't maintained any longer. I strongly recommend looking at a more modern offering like JSTL; our project's Standard Taglib provides a compliant JSTL implementation. -- Shawn Bayern JSTL in Action http://www.jstlbook.com

RE: utility taglib, basic looping

2002-10-16 Thread Shawn Bayern
The specification for JSTL, which acts as authoritative documentation for all of its features, is available through http://java.sun.com/products/jstl There are also several books about JSTL available. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL

RE: Beefing up JSTL EL in JSP 2

2002-10-15 Thread Shawn Bayern
agrees; functions do seem safest for the moment, however. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Beefing up JSTL EL in JSP 2

2002-10-15 Thread Shawn Bayern
The goal, under this model, is for such tag libraries to complement JSTL for a specific application's needs. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Beefing up JSTL EL in JSP 2

2002-10-13 Thread Shawn Bayern
2.0), and the fact that ${} still refers to an entire expression, not a single variable reference. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: ExpressionUtil.evalNotNull doesn't return NAE on null value

2002-10-13 Thread Shawn Bayern
On 13 Oct 2002, David M. Karr wrote: In particular, I see that the NullAttributeException is thrown if the expression string was not null, but the resulting value was null. However, if the expression string was null, it just returns null. Shawn, could you explain the motivation for this?

Release: Standard Taglib 1.0.2

2002-10-13 Thread Shawn Bayern
/jakarta-taglibs/releases/standard/ and read the release notes at http://jakarta.apache.org/taglibs/doc/standard-doc/ReleaseNotes.html Please let me know if you've got any questions. -- Shawn Bayern JSTL reference-implementation lead -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED

Re: Is there a way to call java.lang.String.substring on a c: out?

2002-10-10 Thread Shawn Bayern
On Thu, 10 Oct 2002, Stefan wrote: So is there a way to extract a sub string from the result of a c:out value=${}}/ tag? No, not alone; you'd need to use the String Taglib or handle it with a servlet or other custom Java logic (e.g., a bean or servlet). -- Shawn Bayern JSTL in Action http

Re: Get _${locale} if !empty locale, else ?

2002-10-07 Thread Shawn Bayern
. No, not with the EL alone. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Sorted Select values

2002-10-01 Thread Shawn Bayern
On Tue, 1 Oct 2002, Holly, Michael wrote: Is there not a method of sorting these to the way they were entered? HashMap does not guarantee any order. You can use TreeMap for lexical ordering (or LinkedHashMap in JDK 1.4 for order preservation). -- Shawn Bayern JSTL in Action http

RE: Sorted Select values

2002-10-01 Thread Shawn Bayern
into a HashMap. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: paramaters: one more question.

2002-09-30 Thread Shawn Bayern
On Mon, 30 Sep 2002, Shawn Bayern wrote: x:para name=c-cli value=${param[c_cli]} / Oops - too much typing! There are two errors with the above tag; I really meant to type: x:param name=c-cli value=${param['c_cli']} / -- Shawn Bayern JSTL in Action http://www.jstlbook.com

RE: paramaters: one more question.

2002-09-30 Thread Shawn Bayern
of tab attributes, as described in section 2.1.1. -- Shawn Bayern JSTL reference-implementation lead -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Help with c.out and html code

2002-09-29 Thread Shawn Bayern
from escaping these characters?? any help would be appreciated. Sure - set the 'escapeXml' attribute of c:out to 'false: c:out value=${AdminProdAttrForm.genAttribs.html} escapeXml=false / -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto

Re: Help with c.out and html code

2002-09-29 Thread Shawn Bayern
. There are also several books out on JSTL, including mine (JSTL in Action). -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: JSTL XML x:transform and x:out work, but not together (was:x:transform and x:out fetch no data)

2002-09-26 Thread Shawn Bayern
, for particularly tricky problems, entire pages are useful, but going through four pages takes a while, and it's not the most efficient way to address a focused question. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

Re: parameters

2002-09-26 Thread Shawn Bayern
does not; JSTL does, by use of an x:param subtag of x:transform. (The XTags Taglib does as well, if you are stuck with a JSP 1.1 container.) Hope that helps, -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e

Re: JSTL XML x:transform and x:out fetch no data

2002-09-25 Thread Shawn Bayern
... /html Please let me know if you have any additional questions, and ensure that you're using x:transform correctly: see the spec or the books that describe how it works in detail. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED

Re: x:forEach questions

2002-09-25 Thread Shawn Bayern
On Thu, 26 Sep 2002, Hao Ding wrote: Does x:forEach have a attribute like 'status' of c:forEach? In specification, x:forEach only has two attributes: 'var' and 'select'. No, it doesn't. It arguably should; it's on our list for a future version of JSTL. -- Shawn Bayern JSTL in Action

Re: double EL evaluating

2002-09-24 Thread Shawn Bayern
lets us build up a complex temporary key into 'types'; you can't concatenate strings in the JSTL EL, so the concatenation must occur outside an expression -- in this case, in the attribute value of c:set. Hope that helps, -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe

Re: Question about XSL-taglib

2002-09-24 Thread Shawn Bayern
The XSL Taglib is out of date; it's better to use JSTL's standard support for XML parsing and XSLT transformations. See http://jakarta.apache.org/taglibs and http://java.sun.com/products/jstl for more information. -- Shawn Bayern JSTL in Action http://www.jstlbook.com On Tue, 24 Sep

Re: generating table out of xml

2002-09-23 Thread Shawn Bayern
flurstueckseigentuemer mean? :) -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Is it possible to reference scriptlet variables from a JSTL tag?

2002-09-19 Thread Shawn Bayern
missing something, or do I need to do this all in scriptlet world and forget about JSTL for this problem? Tags, whether JSTL or not, cannot read scripting variables. Instead, you need to make them scoped attributes, as with % pageContext.setAttribute(coll, coll); % -- Shawn Bayern JSTL

Re: error page

2002-09-19 Thread Shawn Bayern
the HttpServletRequest? Yes, if you'd like to avoid creating that scriptlet. In JSP 2.0, you'd be able to expose this as an EL function, but that feature is still in the future. I'd just write a simple taglib that passes on the call; it should involve only a few lines of code. Hope that helps, -- Shawn Bayern

Re: hwo to get coordinates parameter of a map

2002-09-19 Thread Shawn Bayern
on your description, I believe you want the following instead: ${param[map.x]} -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: set Property error

2002-09-17 Thread Shawn Bayern
language. You need to write c:set target=${catalog} property=urlPrefix value=xxx / Hope that helps, -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: flow control and conditional logic

2002-09-13 Thread Shawn Bayern
expression (e.g., $sessionScope:foo and so forth). -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: TagSupport.xxxValue()

2002-09-13 Thread Shawn Bayern
. The methods are just a convenience provided by TagSupport; they have nothing to do with the more generic Tag interface itself. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: JSP compile error

2002-09-12 Thread Shawn Bayern
, but off the top of my head, a few things to look out for include a packageless class as your tagclass or some other irregularity related to that mapping. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail

Re: How to break a loop in JSTL c:foreach

2002-09-11 Thread Shawn Bayern
a loop; thus, while we didn't dislike the idea, we found it to be effectively unimplementable. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: How to break a loop in JSTL c:foreach

2002-09-11 Thread Shawn Bayern
] with the suggestion. Be sure to indicate the situations where this would be useful to you, with as specific examples as possible. Best, -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: XTags and EL

2002-09-09 Thread Shawn Bayern
). Note that JSTL has an XML-manipulation library inspired mostly by XTags, so you might feel right at home migrating to it. Under JSP 2.0, EL expressions will work wherever rtexprvalues currently work, so you'll be able to retrofit the EL to old tags automatically. -- Shawn Bayern JSTL in Action

Re: JSTL questions

2002-09-09 Thread Shawn Bayern
also be able to define expression-language functions in the TLD; this will let you access back-end methods as long as you've declared them accessible. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail

Re: JSTL SQL library

2002-09-08 Thread Shawn Bayern
, or arbitrary text. Note, however, that this logic will base itself on the form of the data, not on its column's type. Hope that helps, -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: set Collection size

2002-09-05 Thread Shawn Bayern
something like this: public Collection getItems(); public int getSize(); -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Dom transformation with JSTL

2002-09-03 Thread Shawn Bayern
a String or Reader, should point to a javax.xml.transform.Source object. Source is just a thin wrapper for the thing it wraps, so it shouldn't be too hard to supply one if you already have a DOM. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto

Re: JSTL session tags and more....

2002-09-03 Thread Shawn Bayern
and expression language for manipulating data in databases and memory. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: extending JSTL

2002-09-02 Thread Shawn Bayern
fail for you? Could I see an entire page? -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Any way to import file as a resource?

2002-09-01 Thread Shawn Bayern
it (including Tomcat). For instance, jndi:/localhost/myWebApp/foo.jsp You're probably right that something spec'd through ServletContext.getResource() might still have a use, though. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED

Re: Is it meaningful that there are no default values?

2002-08-31 Thread Shawn Bayern
The c:out tag has just the sort of 'default' attribute you suggest; you can use it in conjunction with c:set and many other JSTL tags. -- Shawn Bayern JSTL in Action http://www.jstlbook.com On 31 Aug 2002, David M. Karr wrote: In building the Struts-EL tag library, I haven't ported Struts

Re: No indexed access ala Struts?

2002-08-31 Thread Shawn Bayern
. We considered the feature, but it wasn't a priority, and nobody presented a compelling need for it. In JSP 2.0, you could accommodate it with a function; it could also always be added in a future version of JSP. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e

Re: cannot get JSTL examples to work.

2002-08-29 Thread Shawn Bayern
included with the distribution: you should install all the JARs that come with the Standard Taglib. If you're instead getting this error with the standard-examples.war file, it's a little harder to explain. Make sure you have the most recent (1.0.1) binary distribution. -- Shawn Bayern JSTL in Action

Re: Updating Oracle CLOBs with JSTL sql tags

2002-08-29 Thread Shawn Bayern
situation. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Again! Location of JSP page the Taglib is executing in (reallyStuck on this one, PLEASE HELP).

2002-08-28 Thread Shawn Bayern
Interestingly enough, I'm inclined to think the answer is no. Even if there's some creative way of doing it that eludes me, you're still not even guaranteed to *have* a filesystem at runtime. So at best, a solution would be implementation-specific or container-specific. What do you need this

Re: Problems with JSTL

2002-08-25 Thread Shawn Bayern
('webapps' under Tomcat); installing the JSTL JARs themselves involves copying them under your application's WEB-INF/lib directory. Which have you tried to do? -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e

Re: Best way to evaluate several expressions at once?

2002-08-25 Thread Shawn Bayern
No, that's basically the way to do it. You could always write a slightly higher-level function to take advantage of the similarity in structure between your calls, but I don't believe there's any mechanism that will yield greater runtime efficiency. Shawn On 25 Aug 2002, David M. Karr wrote:

Re: How to get a xtags:valueOf.../ value

2002-08-21 Thread Shawn Bayern
? With JSTL: c:set var=aux xtags:valueOf select=XPath expression/ /c:set jsp:useBean id=aux type=String / -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: How to get a xtags:valueOf.../ value

2002-08-21 Thread Shawn Bayern
the result in a string to use it in another xtags expression, like this: (...) String menu = xtags:valueOf select=XPath expression/ Indeed, this is the form of the code that jsp:useBean translates to when the JSP page undergoes translation. -- Shawn Bayern JSTL in Action http

RE: How to get a xtags:valueOf.../ value

2002-08-21 Thread Shawn Bayern
recognize the tags and optimize their implementations. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: How to get a xtags:valueOf.../ value

2002-08-21 Thread Shawn Bayern
Right - if xtags:variable has an 'id' attribute, then you may simply use it to expose a scripting variable. There isn't a need for jsp:useBean if the tag directly exposes a scripting variable. (So that's your answer!) -- Shawn Bayern JSTL in Action http://www.jstlbook.com On Wed, 21 Aug

Re: What sucks about c:import!

2002-08-21 Thread Shawn Bayern
like to see this feature; the address is [EMAIL PROTECTED] -- Shawn Bayern JSTL in Action http://www.jstlbook.com On Wed, 21 Aug 2002, peter lin wrote: I'm assuming you want to get at things like cookies, user-agent and other http header data. you may want to make a request

Re: What sucks about c:import!

2002-08-21 Thread Shawn Bayern
Well, the Jakarta Taglibs IO Taglib is a pretty good offering. I think Mark was just hoping for a standard solution. -- Shawn Bayern JSTL in Action http://www.jstlbook.com On Wed, 21 Aug 2002, Henri Yandell wrote: Isn't this the kind of thing that Jakarta Commons HttpClient specialises

Re: What sucks about c:import!

2002-08-21 Thread Shawn Bayern
: it allows for use of the EL even beyond JSP pages. (And some extra baggage is necessary to support JSP 2.0's notion of 'EL functions', which was added after JSTL 1.0.) -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

Re: What sucks about c:import!

2002-08-21 Thread Shawn Bayern
to support this from within JSP pages, instead of Java-based components? -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: What sucks about c:import!

2002-08-21 Thread Shawn Bayern
On Wed, 21 Aug 2002, Henri Yandell wrote: I'm sure I could look this up myself, but it might be nice to have it in the archives with this thread. Which jar is needed if I want to add EL to my taglib. Without having to include the whole JSTL implementation? This is tricky and in flux. The

Re: What sucks about c:import!

2002-08-21 Thread Shawn Bayern
convenience and encumbrance. -- Shawn Bayern JSTL in Action http://www.jstlbook.com On Wed, 21 Aug 2002, peter lin wrote: I'm not sure where it should reside to be honest. I can see argument for both sides. If I wanted to access data that resides on an IIS machine that has challenge/response turned

Re: Vector

2002-08-18 Thread Shawn Bayern
probably worthwhile for the expert group to look into it further in the future. And one more for the weekend, what would be the best way to get a total sum of N numbers from a xml query (jstl of course)? There is a standard XPath sum function; that may be what you're looking for. -- Shawn

Re: html:text in logic:iterate ?

2002-08-15 Thread Shawn Bayern
projects, not all taglibs in general. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: JSP:INCLUDE problem

2002-08-12 Thread Shawn Bayern
are restricted to use in JSTL tags' attributes. In JSP 2.0, when the EL will be supported by JSP itself, you'll be able to include EL expressions in jsp:include. In the meantime, you'll need either to use c:import as a substitute for jsp:include or use an rtexprvalue with jsp:include. -- Shawn Bayern

RE: JSP:INCLUDE problem

2002-08-12 Thread Shawn Bayern
On Mon, 12 Aug 2002, Ben Ramsey wrote: In the meantime, you'll need either to use c:import as a substitute for jsp:include or use an rtexprvalue with jsp:include. Can c:import include pages dynamically, or must the pages be static. For example, I'm passing this querystring to the

Re: c:import full windows path

2002-08-09 Thread Shawn Bayern
=/somepath/myfile.xml var=xml/ I need something like c:import url=E:/abc/somepath/myfile.xml var=xml/ and the above doesn't work. Yes, you'd use a 'file' URL, as with a browser. For instance: c:import url=file:///e:/abc/somepath/myfile.xml / -- Shawn Bayern JSTL in Action http

RE: JSTL in Action: first few chapters

2002-08-04 Thread Shawn Bayern
web.xml. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: evaluating custom action attribute Error

2002-08-02 Thread Shawn Bayern
that no blocks property was found -- either that no getBlocks() method was found, the getBlocks() method was unsuitable for another reason (e.g., accepting an argument, or having a setBlocks() method that doesn't correspond to it in data type), or a BeanInfo overrides it. -- Shawn Bayern JSTL in Action

Re: is there a better way to do this without JSP Script var

2002-08-02 Thread Shawn Bayern
=${questions.rows} c:set var=qType value=${rs.question_type} / c:choose c:when test=${qType == 1} ... and so forth. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

Re: is there a better way to do this without JSP Script var

2002-08-02 Thread Shawn Bayern
What does 'c:out value=${rs.question_type} /' output? (The outer quotes are there to make spaces more noticeable.) -- Shawn Bayern JSTL in Action http://www.jstlbook.com On Fri, 2 Aug 2002, Dave Anand wrote: Thanks for Responding; Well I did something like this, But the test always

Re: is there a better way to do this without JSP Script var

2002-08-02 Thread Shawn Bayern
to numbers will fail, but String is useful as a mediator.) -- Shawn Bayern JSTL in Action http://www.jstlbook.com On Fri, 2 Aug 2002, Dave Anand wrote: it outputs 1 I think it has to do the fact 'rs.question_type' the type is an object. In the older version of JSTL, I have do some thing like

Re: evaluating custom action attribute Error

2002-08-02 Thread Shawn Bayern
The error you're experiencing is probably the result of an exception that was thrown in the getBlocks() method. The error message does say, An error occurred; this is different from Class XXX does not have property YYY. -- Shawn Bayern JSTL in Action http://www.jstlbook.com On Fri, 2 Aug

Re: is there a better way to do this without JSP Script var

2002-08-02 Thread Shawn Bayern
And c:if test=${rs.QUESTION_TYPE == '2'} ... /c:if indicates the expression is false? -- Shawn Bayern JSTL in Action http://www.jstlbook.com On Fri, 2 Aug 2002, Dave Anand wrote: ok here is the actual code in my jsp - QUESTION_TYPE:[c:out value=${rs.QUESTION_TYPE}/] the output

Re: is there a better way to do this without JSP Script var

2002-08-02 Thread Shawn Bayern
No problem! Glad to hear it works, -- Shawn Bayern JSTL in Action http://www.jstlbook.com On Fri, 2 Aug 2002, Dave Anand wrote: Nevermind, it was my stupid mistake /c: this never ever gave me an error, eveything was blank after that. fixing this, fixed my problem, now

JSTL in Action: first few chapters

2002-08-02 Thread Shawn Bayern
with. The chapters cover the principles of web development, the JSTL expression language, and the JSTL conditional tags. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Setting param values

2002-07-30 Thread Shawn Bayern
mutable values, it's probably best to use regular scoped attributes (which you can seed with values from parameters). -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Setting param values

2002-07-30 Thread Shawn Bayern
the issue doesn't get forgotten, it'd be great if you submit a report at http://bugzilla.apache.org. Thanks, -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: xsl taglibs

2002-07-30 Thread Shawn Bayern
that problem. Note that JSTL does require a JSP 1.2 container, so you might get unusual errors if you try to use it on a JSP 1.1 container. Try a page with the declaration alone (no comments) to ensure that that's really the cause of the problem. -- Shawn Bayern JSTL in Action http://www.jstlbook.com

Re: Standard Taglib 1.0.1 in BEA Weblogic 6.1

2002-07-28 Thread Shawn Bayern
Good - just wanted to make sure it wasn't a recent error in our distribution. Unfortunately, since I don't have access to Weblogic, it's hard for me personally to try to address the problem. I poked around Usenet and the web, and the only thing I could come across was the fact that another user

Standard Taglib 1.0.1

2002-07-27 Thread Shawn Bayern
and 1.0.1; all future releases will include matching source distributions. Please let me know if you've got any questions, -- Shawn Bayern JSTL RI lead JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

Re: Percentage formatting strange

2002-07-25 Thread Shawn Bayern
coincide with Java's percentage formatting (especially since you need a custom '+' before positive numbers), using a custom pattern -- as you've done -- is probably your best bet. -- Shawn Bayern JSTL in Action http://www.jstlbook.com On Thu, 25 Jul 2002 [EMAIL PROTECTED] wrote: Hi all I

Re: Equalivent for request.getRemoteUser() ?

2002-07-24 Thread Shawn Bayern
} JSTL in Action describes this and other potential applications of the EL. Hope that helps! -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Warning about slight non-equivalence between . and []

2002-07-22 Thread Shawn Bayern
equivalence between the . and [] operators. Instead, it says: expr-a.identifier-b is equivalent to a[identifier-b] In your example, user-agent is not an identifier; valid identifiers are defined in seciton A.8 to be Java language identifier[s], which cannot contain -. -- Shawn Bayern JSTL

Re: nested forEach in JSTL, how?

2002-07-18 Thread Shawn Bayern
c:forEach var=test2 items=${test1[my_List]} tr tdc:out value=${test2.my_StringB}//td /tr /c:forEach /c:forEach /table -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from Manning Publications) On Thu, 18 Jul

JSTL in Action: e-book

2002-07-17 Thread Shawn Bayern
/1930110529 ) Also, some sample chapters are online at the first URL above, if you want to take a look. I told Manning to put up two free chapters that contain lots of sample code, and they agreed. Again, sorry for the shameless plug -- just thought it might be useful to y'all. -- Shawn Bayern

Re: Checking for multiple types in ExpressionUtil.evalNotNull()?

2002-07-17 Thread Shawn Bayern
a check following the call to evalNotNull() along the lines of: if (!(collection instanceof Map) . . .) throw new JspTagException(need a Map or a . . . ); Otherwise, it should work just as you expect. -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from Manning

Re: jstl: expression language does not use interface?!!

2002-07-16 Thread Shawn Bayern
, but an interface does not provide this protection. -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from Manning Publications) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: XSLT

2002-07-16 Thread Shawn Bayern
} using c:out to ensure that they really have the values you expect. (Also, as a simplifying step and a way to eliminate potential errors, you can combine c:setc:import//c:set into a single c:import var=... /.) -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from

Re: JSTL: session tracking

2002-07-16 Thread Shawn Bayern
} will tell you whether the session is new, per the Servlet spec, if that's what you're asking. -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from Manning Publications) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto

Re: Using EL implementation of Standard Taglib in JSP 1.1 container

2002-07-16 Thread Shawn Bayern
On Wed, 17 Jul 2002, Kan Ogawa wrote: Is it possible to use EL implementation of Standard Taglib in JSP 1.1 container ??? No. JSTL's features require JSP 1.2, and so the Standard Taglib's implementation depends on 1.2 as well. -- Shawn Bayern JSTL in Action http://www.jstlbook.com

Re: apply.jsp example not working

2002-07-15 Thread Shawn Bayern
Ruud, The XSL Taglib is no longer supported; use the Standard Taglib, which is an implementation of the JSP Standard Tag Library (JSTL) instead. -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from Manning Publications) On Mon, 15 Jul 2002 [EMAIL PROTECTED] wrote

Re: Simple JSTL SQL update fails, but only when parameters come fromNetscape 4.x browser

2002-07-15 Thread Shawn Bayern
or elsewhere. -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from Manning Publications) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Compress the HTML code

2002-07-15 Thread Shawn Bayern
]} / /c:forEach If you're looking for something else, please feel free to clarify. Hope this helps, -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from Manning Publications) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail

Re: SQL Query question

2002-07-15 Thread Shawn Bayern
that type. (E.g., you might be setting an integer in to a SQL TIMESTAMP field.) Without more information, it'll be hard to diagnose the problem further. -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from Manning Publications) -- To unsubscribe, e-mail

Re: C:Import

2002-07-15 Thread Shawn Bayern
=${xml} xslt=${xslt}/ You cannot use rtexprvalues in the EL versions of JSTL tags. Replace the second line with the following: c:import url=${param.xmlReq} var=xml / -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from Manning Publications) -- To unsubscribe, e

RE: JSTL + XSLT

2002-07-12 Thread Shawn Bayern
this: x:transform xslt=${xslt} url=...S... -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from Manning Publications) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: JSTL + XSLT

2002-07-12 Thread Shawn Bayern
that these variables don't match. c:set exposes a variable called 'xsl', but you're using ${xslt} in x:transform. Use ${xsl} instead and you should be fine. -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from Manning Publications) -- To unsubscribe, e-mail: mailto:[EMAIL

Re: newbie: which lib needs additional jars?!!

2002-07-12 Thread Shawn Bayern
of your web application. did s.o. know where i can find the library documentation? This depends on whatever individual library you want to install. For JSTL, you just need to include all the JARs that are distributed in the binary distribution. -- Shawn Bayern JSTL in Action http

RE: newbie: which lib needs additional jars?!!

2002-07-12 Thread Shawn Bayern
of those if you're not interested in XML. It's usually best to keep everything together, though, so you don't have to worry about using any of JSTL's features; you might decide something that you have no interest in now is interesting later.) -- Shawn Bayern JSTL in Action http

RE: XTAGS and DOCTYPE problems

2002-07-10 Thread Shawn Bayern
was this: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from Manning Publications) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Xtags problem...

2002-07-10 Thread Shawn Bayern
you look at JSTL (for which Jakarta's Standard Taglib is an implementation) instead. -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002 from Manning Publications) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

RE: Xtags problem...

2002-07-10 Thread Shawn Bayern
implementation of JSTL, distributed through Jakarta Taglibs. Other vendors (including Sun) have their own implementations available, or will shortly. For instance, I believe the Resin folks are working on a JSTL implementation. -- Shawn Bayern JSTL in Action http://www.jstlbook.com (coming in July 2002

RE: XTAGS and DOCTYPE problems

2002-07-10 Thread Shawn Bayern
stores. Manning, as an enlightened publisher, will soon be making the PDFs for the entire book available online for free. I think this will happen sometime this week or early next week. That should really help get the word out about JSTL, I think. -- Shawn Bayern JSTL in Action http

<    1   2   3   4   5   >