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

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: c:choose /c:test 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

c:if

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: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

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

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

Re: c:if

2002-03-18 Thread Ryan Lubke
Hi, I believe the following would be possible: c:if test=${request.moo != null} body content /c:if 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

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

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

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,

More on c:if

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: c:if test=!something c:if test=!somethingElse then do something Cheers! John -- John Baker, BSc CS.

Re: Scrape

2002-03-18 Thread Bill Moss
Hi Peter, Here's an example (also weather - but different :-0): BR - BR scrp:page url=http://www.wpni.com/ac3/ContentServer?pagename=weatherforceDisplay=truezipcode=10012; time=11 scrp:scrape id=weather77 begin=/MAPDIV ALIGN end=/A/P/P/CENTER anchors=true/ /scrp:page scrp:result

RE: Scrape

2002-03-18 Thread Peter Gales
That worked. The scripts I can't get to work look like: scrp:page url=http://www.fastlist.com/fastlist/ScrapeTest.html; time=1 scrp:scrape id=h1 begin=H1 end=/H1 anchors=true/ /scrp:page scrp:result scrape=h1/ I've tried others like this as well with no results. -Original Message-

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 c:url= and it should be c:url value=... :-), however I'm wondering if I can put an array of objects into a request and use c:if test= to test one. Ie: Blob[] blobs = new Blob[100]; // fill blobs

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: mailto:[EMAIL

Re: More on c:if

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: c:if test=!something c:if test=!somethingElse then do

Re: More on c:if

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 what I was asking.

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 c:url= and it should be c:url value=... :-), however I'm wondering if I can put an array of objects into a request and use c:if test= to test one. Ie: Blob[] blobs

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 that

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: c:set var=blobs value=whatever.someMethodThatReturnsList/ and c:set var=blobs

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: c:out value=${page.dates[1].time}/ 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

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 c:if test=${Moo.Y == someInteger} So, just

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

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 c:if test=${securityBean.check(request, response) } but it doesn't work. How can I pass parameters? All examples use only simple getters. If someone knows the answer

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 c:if test=${securityBean.check(request, response) } but it doesn't work. How can I pass parameters? All examples

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: c:if test=${securityBean.check(request, response) } 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

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: c:if test=${securityBean.check(request, response) } The JSTL expression language does not support method invocations on objects. You'll currently need to use a custom tag library or scriptlet code