examples using Standard Taglib (with i18n) for interbalization ?

2002-03-18 Thread RAYMOND Romain
hello, in the source examples given I don't understand the easy way to map a request with a particular ressource bundle which will permit to use ... based on user's language preference. A solution coulb be to use a ruser session parameter but is there an "automatic" method ? If you have an exa

Re: How to pass parameters to method in c:if

2002-03-18 Thread Shawn Bayern
On Mon, 18 Mar 2002, Dave Newton wrote: > On Monday 18 March 2002 02:43 pm, you wrote: > > > > > The JSTL expression language does not support method invocations on > > objects. You'll currently need to use a custom tag library or scriptlet > > code (with the former being recommended over the l

Re: How to pass parameters to method in c:if

2002-03-18 Thread Dave Newton
On Monday 18 March 2002 02:43 pm, you wrote: > > > The JSTL expression language does not support method invocations on > objects. You'll currently need to use a custom tag library or scriptlet > code (with the former being recommended over the latter) if you want to > access arbitrary methods an

Re: How to pass parameters to method in c:if

2002-03-18 Thread Shawn Bayern
On Mon, 18 Mar 2002, Trogrlic Zeljko wrote: > Hello, > > I'm writing a presentation of the latest JSTL, but I have a problem > with one example. > > In JSP, I need something like > > > > but it doesn't work. How can I pass parameters? All examples use only > simple getters. If someone knows

How to pass parameters to method in c:if

2002-03-18 Thread Trogrlic Zeljko
Hello, I'm writing a presentation of the latest JSTL, but I have a problem with one example. In JSP, I need something like but it doesn't work. How can I pass parameters? All examples use only simple getters. If someone knows the answer please reply ASAP because I have a presentation in two d

Re: Struts Vs Taglibs

2002-03-18 Thread Martin Cooper
Struts contains several different tag libraries. Some, like the 'logic' taglib, will most likely be deprecated at some point, in favour of JSTL. Others, such as the 'html' taglib, integrate more tightly with the Struts framework, reducing the amount of work you have to do to hook your JSP pages up

RE: My last annoying question of the day, promise.:-)

2002-03-18 Thread Eric . Lewis
Just don't... ;-) Good Java style dictates that you keep everything as private as possible, certainly class variables and then use methods to get and set them, like getY and setY. Nicely enough, if you implement getY, you can directly use it in So, just define all the getter methods you need,

Re: My last annoying question of the day, promise.:-)

2002-03-18 Thread Shawn Bayern
No, the expression language refers to JavaBean properties, not static members. -- Shawn Bayern Author, "JSP Standard Tag Library" http://www.jstlbook.com (coming this summer from Manning Publications) On Mon, 18 Mar 2002, John Baker wrote: > On Monday 18 Mar 2002 18H:07 pm, you wrote: > > >

Re: My last annoying question of the day, promise.:-)

2002-03-18 Thread John Baker
On Monday 18 Mar 2002 18H:07 pm, you wrote: > Current time in milliseconds: > > > This prints out output like: > > Current time in milliseconds: 1016474790054 > > Hope you can use this as a basis to determine what's wrong with your > page. Best, Yeah, sorry, I was just being dumb. I'm on

Re: My last annoying question of the day, promise.:-)

2002-03-18 Thread Shawn Bayern
On Mon, 18 Mar 2002, John Baker wrote: > Horray. I thought so, ok well I get this: > > The error message was: Unable to find a value for "0" in object of > class "java.lang.String" using operator "[]" > > for: > > > > I've tried it with blobs being an array and a List (Vector). > > So could

Re: My last annoying question of the day, promise.:-)

2002-03-18 Thread John Baker
On Monday 18 Mar 2002 18H:01 pm, you wrote: > The error message was: Unable to find a value for "0" in object of class > "java.lang.String" using operator "[]" Argh... Spot the difference between: and I'll have a better day tomorrow, I hope ;-) -- John Baker, BSc CS. Java Developer, TEA

Re: My last annoying question of the day, promise.:-)

2002-03-18 Thread John Baker
On Monday 18 Mar 2002 17H:55 pm, you wrote: > On Mon, 18 Mar 2002, John Baker wrote: > > I'm busy digesting the jstl spec now (found an error in it, it says you > > can do > > > Blob[] blobs = new Blob[100]; > > // fill blobs > > request.setAttribute("blobs", blobs); > > > > now can I do: > > > >

Re: Struts Vs Taglibs

2002-03-18 Thread Shawn Bayern
On Mon, 18 Mar 2002, Chen, Gin wrote: > Just a curiousity question. What is the advantages of using one over > the other? For example, alot of the tags seem to be doing the same > type of tasks. (ex. Foreach versus Iterate). Why would one pick one > approach over another? -Tim My impression is t

Re: My last annoying question of the day, promise.:-)

2002-03-18 Thread Shawn Bayern
On Mon, 18 Mar 2002, John Baker wrote: > I'm busy digesting the jstl spec now (found an error in it, it says you can > do one. Ie: > > Blob[] blobs = new Blob[100]; > // fill blobs > request.setAttribute("blobs", blobs); > > now can I do: > > http://www.jstlbook.com (coming this summer from

Re: More on

2002-03-18 Thread John Baker
On Monday 18 Mar 2002 17H:51 pm, you wrote: > and familiar boolean operatings (e.g., "&&" for "and", "||" for "or") will > likely be added to the EL before it's done. > > If you're asking whether or not JSTL has a tag that aborts the current > page, the answer is currently "no." Yep, that was wha

Re: More on

2002-03-18 Thread Shawn Bayern
On Mon, 18 Mar 2002, John Baker wrote: > > I have a lot of this going on in my jsps: > > if (something) { >// Some error message > return; > } > > Is there a way of supporting this without using embedded tags, ie: > > > > then do something > > Cheers! I'm not sur

Struts Vs Taglibs

2002-03-18 Thread Chen, Gin
Hi All, Just a curiousity question. What is the advantages of using one over the other? For example, alot of the tags seem to be doing the same type of tasks. (ex. Foreach versus Iterate). Why would one pick one approach over another? -Tim -- To unsubscribe, e-mail:

My last annoying question of the day, promise.:-)

2002-03-18 Thread John Baker
I'm busy digesting the jstl spec now (found an error in it, it says you can do http://www.teamenergy.com Views expressed in this mail are my own. -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Scrape

2002-03-18 Thread Peter Gales
That worked. The scripts I can't get to work look like: http://www.fastlist.com/fastlist/ScrapeTest.html"; time="1"> I've tried others like this as well with no results. -Original Message- From: Bill Moss [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 11:36 AM To: [EMAIL

Re: Scrape

2002-03-18 Thread Bill Moss
Hi Peter, Here's an example (also weather - but different :-0): - http://www.wpni.com/ac3/ContentServer?pagename=weather&forceDisplay=true&zipcode=10012"; time="11"> - Looks like the begin/end don't like quotes/other characters, maybe you can escape them? Origi

More on

2002-03-18 Thread John Baker
I have a lot of this going on in my jsps: if (something) { // Some error message return; } Is there a way of supporting this without using embedded tags, ie: then do something Cheers! John -- John Baker, BSc CS. Java Developer, TEAM/Slb. http://www.teamenerg

argh

2002-03-18 Thread John Baker
What does this mean: Unable to convert string '<%= myActivity %>' to class com.teamenergy.libraries.activity.WebActivity for attribute activity: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager myActivity is an instance of WebActivity, declar

Re: Standard taglib - sql problem

2002-03-18 Thread Shawn Bayern
Interesting. The AbstractMethodError is apparently coming from a call to the ResultSetMetaData object associated with your JDBC driver. The underlying issue may result from either a bug or a version incompatibility in the driver. But this issue raises a question of how JSTL should handle errors

Standard taglib - sql problem

2002-03-18 Thread Brett Morgan
I'm trying to get the following code to work, but I keep getting a java.lang.AbstractMethodError exception. I've tested the connection in the scriptlet and it works. As soon as I add the sql tag the Exception is thrown. I've also included the stack trace. <%@ page import="javax.naming.*,jav

Re:

2002-03-18 Thread Shawn Bayern
On Mon, 18 Mar 2002, John Baker wrote: > Is this possible: > > if (request.getAttribute("moo" != null) { > > } > > Using c:if Yes. It's directly possible with the 'rtexprvalue' library. If you want to use the expression language, say ${request.moo != null} -- Shawn Bayern Author, "JSP S

Re:

2002-03-18 Thread Ryan Lubke
Hi, I believe the following would be possible: body content The EL uses 'implicit' objects to access attributes and parameters from various source objects. pageContext --> access to the PageContext object page--> access to page scoped attributes request --> access to request s

Scrape

2002-03-18 Thread Peter Gales
Has anyone successfully used the scrape tag library successfully other than the weather examples? If so could you post an explination of how to get them to work properly? I installed the jars in the proper path and followed the example only changing the url and none of the scrape appears on my j

RE: Problems by Compling JSP's

2002-03-18 Thread Shellie Northington
If your in an IDE, make sure you have imported ldapjdk.jar. Thats my first guess. Booker -Original Message- From: Andreas Metz [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 12:08 PM To: 'Tag Libraries Users List' (E-Mail) Subject: Problems by Compling JSP's Hi, i'm new in

taglibs-user@jakarta.apache.org

2002-03-18 Thread John Baker
Is this possible: if (request.getAttribute("moo" != null) { } Using c:if Thanks. -- John Baker, BSc CS. Java Developer, TEAM/Slb. http://www.teamenergy.com Views expressed in this mail are my own. -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: End of content reached while more parsing required: tag nesting error?

2002-03-18 Thread John Baker
Oh wait, I've fixed it. I had this: further on down in the page. I didn't realise that would break it ;-) On Monday 18 Mar 2002 10H:31 am, you wrote: > Hello. > > I'm getting: > > End of content reached while more parsing required: tag nesting error? > > after checking my html/jsp befor

End of content reached while more parsing required: tag nesting error?

2002-03-18 Thread John Baker
Hello. I'm getting: End of content reached while more parsing required: tag nesting error? after checking my html/jsp before the include that causes this and not finding any inbalances. I have pages A and B. Both include the c.tld. Infact both say: <%@ taguri="/WEB-INF/tlds/jstl/c.tld" pre