Re: [ANN] JavaServer Pages, 3rd Edition (O'Reilly)

2003-12-19 Thread Rick Ross
How 'bout Safari? How long? R - Original Message - From: Hans Bergsten [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Friday, December 19, 2003 3:05 PM Subject: [ANN] JavaServer Pages, 3rd Edition (O'Reilly) I'm proud to announce that the 3rd Edition of my

Re: c:forEach, c:import and variable scope?

2003-12-09 Thread Rick Ross
I don't have my code in front of me, but I am pretty sure that is exactly what I do for my client. I don't even recall having to set request scope, but I'm not positive there. Tomcat 5.x/JSTL 1.1 R - Original Message - From: Karr, David [EMAIL PROTECTED] To: Tag Libraries Users List

Re: Re: c:forEach, c:import and variable scope?

2003-12-09 Thread Rick Ross
We exist to serve. :-) R - Original Message - From: otisg [EMAIL PROTECTED] To: Hans Bergsten [EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 11:45 AM Subject: Re: Re: c:forEach, c:import and variable scope? Wow, thanks for quick replies (problem not 100% solved, but all replies

Re: x:set variable as a parameter to a tag file

2003-11-28 Thread Rick Ross
you should be able to send just about anything. You need to set the type attribute of the @ attribute statment to whatever x:parse creates (this is a fully qualified classname) Finding out the type of object returned by parse is left as an excercise for the reader, since I don't have the spec

Re: x:set variable as a parameter to a tag file

2003-11-28 Thread Rick Ross
Ok. I lied. Using the varDom style will gaurantee you an org.w3c.dom.Document object, but the var style is implementation dependent. Rick Ross wrote: you should be able to send just about anything. You need to set the type attribute of the @ attribute statment to whatever x:parse creates

Re: Usage of c:out with Map backed objects

2003-10-27 Thread Rick Ross
No, I don't think so. You'll probably have to wrap the class with a custom tag. Or, in a 2.0 container, you could create an EL function. R Chaimungkalanot, Mark wrote: Hi there, I have an Object that is returned to a JSP which has a Object get(Object key) key method, much like a Map object.

Re: fmt taglib validation fails with web-app_2_4.xsd

2003-10-04 Thread Rick Ross
TLDs should be in the jar as well. Adam Hardy wrote: Hi Kris, thanks for the info. How are you getting that info (name, comment, impl...) from the jar? When I open the jar with a GUI archiving tool it shows just a contents list. There is a META-INF/MANIFEST.MF file, but it contains only 2

Re: c:import

2003-09-17 Thread Rick Ross
Make sure that you are clear on the differences between c:import jsp:include and @include they are all different and in my case the fact that the imported page has no knowledge of my context hosed me. R Billy Bacon wrote: I've looked through the archives and the suggested alternative for a

Accessing the wrapped context from a tag file.

2003-09-09 Thread Rick Ross
Hi all, I have a simple jsp that I used to include statically to pages when I needed to see what variables were in all of the implicit objects (parameters, session etc). For example: table c:forEach items='${pageScope}' var='page' trth${page.key}/thtd${page.value}/td/tr /c:forEach /table

Re: Accessing the wrapped context from a tag file.

2003-09-09 Thread Rick Ross
Thanks. I guess I'll write the tag... bummer. I suspect that the 'outer' scope should be made available, surely there will be other use cases for it. R Serge Knystautas wrote: Rick Ross wrote: Hi all, I have a simple jsp that I used to include statically to pages when I needed to see

Re: JSTL in Action

2003-09-07 Thread Rick Ross
Any chance of getting that onto Safari? I know I sound like broken record here, but I love it and I think it's a good deal for the writer/publisher as well. R. Shawn Bayern wrote: Hi there (from law school)! :) As I take a break from reading about civil rights in California, I just wanted

Re: According to TLD or attribute directive in tag file, attribute test does not accept any expression

2003-09-06 Thread Rick Ross
, appendix A (see http://java.sun.com/jstl). Please have a look, and send me simple war files that reproduce your problem(s). The migration to JSP 2.0 and/or JSTL 1.1 should definitely be smoother than the one you've experienced ;-) -- Pierre Rick Ross wrote: That is the error I kept getting

According to TLD or attribute directive in tag file, attribute test does not accept any expression

2003-09-05 Thread Rick Ross
That is the error I kept getting with the simplest of JSTL in a page now that I converted over to Tomcat 5.0.9 from 4.1.24 After a wee bit of trial and error, I realized that the _rt libraries are required with JSP 2. Perhaps others will have known this off the bat, but it didn't occur to me

Unable to find value using operator . (null)

2003-08-23 Thread Rick Ross
I have a class called RTime. It has the following get methods (and no SET methods): public String getCrazy() public String getUSTime() public String getISOTime() One of my custom tags places an object of this type into the pageContext. The US and ISO time methods work perfectly, but

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

2003-08-23 Thread Rick Ross
value using operator . (null) On Sat, 23 Aug 2003, Rick Ross wrote: I have a class called RTime. It has the following get methods (and no SET methods): public String getCrazy() public String getUSTime() public String getISOTime() With these methods (and the rest of what

Re: [OT]Re: sql:param null weirdness

2003-08-19 Thread Rick Ross
Message - From: Rick Ross [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 17, 2003 7:11 AM Subject: sql:param null weirdness I wonder if I am not understanding EL properly... I have a form form input type=text name=time / input type=submit name=submit

Fw: [OT]Re: sql:param null weirdness BACK ON TOPIC

2003-08-19 Thread Rick Ross
? Mark -Original Message- From: Rick Ross [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 12:52 PM To: Tag Libraries Users List Subject: Re: [OT]Re: sql:param null weirdness Well, firstly I don't beleive that every application should apply the MVC pattern/practice. But even

Re: [OT]Re: sql:param null weirdness

2003-08-18 Thread Rick Ross
for web applications? Regards, Marco - Original Message - From: Rick Ross [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 17, 2003 7:11 AM Subject: sql:param null weirdness I wonder if I am not understanding EL properly... I have a form form input

sql:param null weirdness

2003-08-17 Thread Rick Ross
I wonder if I am not understanding EL properly... I have a form form input type=text name=time / input type=submit name=submit / /form and then a nice sql update to catch the form sql:update INSERT INTO myTable VALUES ( ? ) sql:param value=${param.time} / /sql:update

Fw: * in XPath predicate

2003-08-14 Thread Rick Ross
Good morning all, I am trying to generate my xpath statement based on parameters, and I find that it works perfectly with the exception that the * in the predicate fails when dynamically populated, although it works fine when hardcoded. So this will work: x:forEach

Re: XML Selects and bean style properties.

2003-08-14 Thread Rick Ross
The spec only specifies how it works with a specific set of contexts. It does not require a generic mechanism, although you are correct that it would make sense for the syntax to be the same. R - Original Message - From: Felipe Leme [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday,

Re: * in XPath predicate

2003-08-14 Thread Rick Ross
one role child element. x:forEach select=$doc//employee[count(role)] -Original Message- From: Rick Ross [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 12:10 PM To: [EMAIL PROTECTED] Subject: Fw: * in XPath predicate Good morning all, I am trying

XML Selects and bean style properties.

2003-08-14 Thread Rick Ross
I have a scoped variable called 'USER' with a variety of the usual bean style properties. Naturally, it's just a convenient place to hold the user properties and in the EL, it's quite easy to get them ${USER.full_name}. However, if I want to predicate an XPath query (in an x: tag select

Re: * in XPath predicate

2003-08-06 Thread Rick Ross
but necessary feature. I'll give it a couple of days before I log something. Just in case. R - Original Message - From: Rick Ross [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 11:25 AM Subject: Re: * in XPath predicate Hmmm.. Well the thing

Re: attributes..

2003-07-29 Thread Rick Ross
Analyst, Treistman Center College of Fine Arts, University of Arizona - Original Message - From: Rick Ross [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 28, 2003 8:31 PM Subject: X: attributes.. I'm trying to use the value of an xml attribute in calculations later

Re: attributes..

2003-07-28 Thread Rick Ross
As a follow up, all of the XPath testers I have used return a simple string for that Xpath statement. - Original Message - From: Rick Ross [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 28, 2003 8:31 PM Subject: X: attributes.. I'm trying to use the value of an xml

Re: x:transform using xsl:include

2003-07-27 Thread Rick Ross
That should work with the file:// protocol as well (for the local filesystem, at least). R - Original Message - From: Felipe Leme [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 27, 2003 9:24 PM Subject: Re: x:transform using xsl:include Hi Aaron, I had exactly the same

MySQL LAST_INSERT_ID( )

2003-07-22 Thread Rick Ross
I have a bad feeling about this, but I haven't been able to access the LAST_INSERT_ID( ) from mySQL. In mySQL you can have one column that is automatically incremented (usually the primary key field). You don't specify a value for this field in your INSERT statement or you specify NULL. Either

Re: MySQL LAST_INSERT_ID( )

2003-07-22 Thread Rick Ross
transaction to achieve what you want. Try to use sql:transaction to make both statements run inside the same transaction. []s Michael - Original Message - From: Rick Ross [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 6:54 PM Subject: MySQL LAST_INSERT_ID

Re: Nested tags syntax

2003-07-20 Thread Rick Ross
The JSTL tags have the ability to read the parameters. You need to sit down with the Spec or a decent book on JSTL. A couple of hours now will save you tons later. This will get the job done: c:set var=password value=${param.password} / R - Original Message - From: Mike Steigerwald

Re: Stored procedure (RFI proposal)

2003-07-14 Thread Rick Ross
I agree with Mr. Smith that dumping a working tool because it doesn't fit the current (albeit valid) programming model. I personally would have replace (steal) the sql: tags if they were abandoned because I am happily banging away on a flat two tiered model. All of my pages that derive from the

JSTL Tag in a directive.

2003-07-05 Thread Rick Ross
I can't seem to get this to work: %@ includes file=c:out value='${includePage}' / % I didn't see anything in the Spec that suggests that it would violate spec, but it wasn't mentioned either (as far as I saw.) Since I need the contents of includePage to be processed as JSP, I think I am SOL

Whitespace Galore!

2003-06-30 Thread Rick Ross
the source of the output. I think that most of it is in the bodies of conditionals... anyone else having problems? Rick Ross Any sufficiently complex technology is indistinguishable from garbage - To unsubscribe, e

Re: Whitespace Galore!

2003-06-30 Thread Rick Ross
the white space emitted by your tags. If you have to be concerned about that, you have other problems. -Original Message- From: Rick Ross [mailto:[EMAIL PROTECTED] Hi all, I've been running into two little oddities that I thought might be worth some discussion. 1. I

Re: Whitespace Galore!

2003-06-30 Thread Rick Ross
PROTECTED] Sent: Monday, June 30, 2003 3:36 PM Subject: Re: Whitespace Galore! Rick Ross wrote: This exact character sequence: [EMAIL PROTECTED] language=java buffer=12kb autoFlush=false %%@ taglib uri=http://java.sun.com/jstl/core; prefix=c %c:if test={true} c:redirect url=http://google.com

Re: Whitespace Galore!

2003-06-30 Thread Rick Ross
Rick Ross wrote: I was missing a $ in the true statment. Now redirect seems to work fine, as long as the buffer doesn't flush. On an unrelated note:-)What editor do you all use for JSP/JSTL code? R - Original Message - From: Hassan Schroeder [EMAIL PROTECTED] To: Tag Libraries