It was a simple example that was in the taglib distribution.
Here it is ::
!doctype html public -//w3c//dtd html 4.0 transitional//en
html
%@ taglib uri=http://jakarta.apache.org/taglibs/scrape-1.0; prefix=
scrp %
head
titleExample JSP using scrape taglib/title
/head
body
Hi,
I have been trying to use the scrape taglib for my application.
BUt nothing comes in the output page.
What may be the reason for this??
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On 12/22/05, Shiby Maria John [EMAIL PROTECTED] wrote:
Hi,
I have been trying to use the scrape taglib for my application.
BUt nothing comes in the output page.
What may be the reason for this??
snip/
We will probably need some more details. If you can post the simplest
example
Hello all,
I understand this but the problem is that I need to use the output
within a scriplet. Is that possible?
c:set var=teststringscrp:result scrape=pj4//c:set
c:out value=${teststring} /
Will output the string but I can't use it within a scriplet
If I call the variable teststring
Try:
c:set var=teststringscrp:result scrape=pj4//c:set
jsp:useBean id=teststring type=java.lang.String/
%= teststring %
Quoting Karen D. Wiens [EMAIL PROTECTED]:
Hello all,
I understand this but the problem is that I need to use the output
within a scriplet. Is that possible?
c:set var
That works perfectly!! Thank you so much!!
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 12:40 PM
To: Tag Libraries Users List
Subject: RE: Pass scrape taglib to a method (revisited)
Try:
c:set var=teststringscrp:result scrape=pj4
I am not able to use the scrape tag for pages using SSL connection, any
ideas? Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
it into 'teststring'
String teststring = pageContext.getAttribute( scrp:result
scrape=pj3/ );
With:
% // snag text and stick it into 'teststring'
c:set var=teststringscrp:result scrape=pj3//c:set;
%
And got the following error message:
(Thanks again for any help you can give)
Karen
*** Syntax
other HTML tag.
hth,
Timo
-Original Message-
From: Karen D. Wiens [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 7:10 PM
To: 'Tag Libraries Users List'
Subject: RE: Pass scrape taglib to a method (string)
Thank you for responding. I've tried this and I'm still getting a
syntax
Can anyone help me with this? I'm getting a syntax error and I'm lost
on where to go from here.
Thanks.
-Original Message-
From: Karen D. Wiens [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 7:10 PM
To: 'Tag Libraries Users List'
Subject: RE: Pass scrape taglib to a method
Karen D. Wiens wrote:
How can I pass the value of the scrape taglib to a method? It seems to
me that it should be something like:
% // snag text and stick it into 'teststring'
String teststring = pageContext.getAttribute( scrp:result
scrape=pj3/ );
%
One approach:
c:set var
Thank you for responding. I've tried this and I'm still getting a
syntax error.
I replaced:
% // snag text and stick it into 'teststring'
String teststring = pageContext.getAttribute( scrp:result
scrape=pj3/ );
With:
% // snag text and stick it into 'teststring'
c:set var
Karen D. Wiens wrote:
Thank you for responding. I've tried this and I'm still getting a
syntax error.
% // snag text and stick it into 'teststring'
c:set var=teststringscrp:result scrape=pj3//c:set;
%
Yep, that'll create one :-) -- don't enclose these tags:
c:set var=teststringscrp:result
Hello,
How can I pass the value of the scrape taglib to a method? It seems to
me that it should be something like:
% // snag text and stick it into 'teststring'
String teststring = pageContext.getAttribute( scrp:result
scrape=pj3/ );
%
But it doesn't like the syntax. I'm new
Many Thanks :)
- Original Message -
From: Glenn Nielsen [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 6:47 PM
Subject: Re: Scrape tag
Fixed now.
Infidel wrote:
Yea, I know...but if you go into any of the download locations
Many Thanks :)
- Original Message -
From: Glenn Nielsen [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 6:47 PM
Subject: Re: Scrape tag
Fixed now.
Infidel wrote:
Yea, I know...but if you go into any of the download locations
Hi All
Does anyone know where I can get my hands on the scrape tag??
I've looked on all the jakarta mirror sites and none of them have it.
Any help would be aqppreciated.
Andy
Scrape is listed on the main taglibs page on The Jakarta Project:
http://jakarta.apache.org/taglibs/index.html
-Original Message-
From: Infidel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 19, 2003 8:23 AM
To: [EMAIL PROTECTED]
Subject: Scrape tag
Hi All
Does anyone know
Yea, I know...but if you go into any of the download locations the folders
are empty
- Original Message -
From: Renick, Garrel [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 5:46 PM
Subject: RE: Scrape tag
Scrape is listed on the main
Fixed now.
Infidel wrote:
Yea, I know...but if you go into any of the download locations the folders
are empty
- Original Message -
From: Renick, Garrel [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 5:46 PM
Subject: RE: Scrape tag
The Scrape tag seems to need reloading at least 3 times (regardless of the
time attribute's value or status) to do a fresh scrape. I tried modifying
the tag to have a default minimum time of one minute vs. the 10 minute it
arrives with.
Regardless of the time attribute's value, the taglib
Now I have another problem, if I change something in the JSP but dont
restart the server,
I will get errors like:
javax.servlet.ServletException: scrape id qt2 is already in use
How can you do it so that the server doesnt have to restart?
-Tim
-Original Message-
From: Chen, Gin [mailto
Hi,
I'm having a problem with scrapes and proxies.
I'm using Tomcat 4.0.1 with the newest Scrape and ORO taglib.
My code is (ofcourse sensitive info changed):
%@ taglib uri=http://jakarta.apache.org/taglibs/scrape-1.0; prefix=scrp
%
html
head
titleUntitled
Here's the .jsp. It works for the example URL, but not on any other URL.
---
%@ taglib uri=http://jakarta.apache.org/taglibs/scrape-1.0; prefix=scrp
%
doobie doo
scrp:page url=http://www.yahoo.com; time=11
scrp:scrape id=weather1 begin=PRE end=/PRE anchors
=true/
/scrp:page
For some reason, I don't seem to be able to scrape a site other than the
example. Any ideas? I just get nothing in that area, and bytes are
returned on the System.out output. I'm using WebLogic 6.1.
Thanks,
Steve
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands
Still not having any luck with the scrape taglib. Only responses I have gotten
are from 2 others with the same issue.
Follow up questions -
1. Is there a place we can look for errors?
The taglib logs all of it's errors using the servletContext.log() method, in tomcat
this logs
At one point, I modified the Scrape taglib to use the standard URLConnection object.
I botched it the first time, but I think I had it working OK the second time. I found
one real problem -- there was a mistake in the use of the regular expression library
to find the text between the tags
The developer for the scrape taglib asked me to forward his
response to the list.
Regards
Garrel Renick
-Original Message-
From: Rich Catlett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 3:10 PM
To: [EMAIL PROTECTED]
Subject: scrape taglib
Still not having any luck
Still not having any luck with the scrape taglib. Only responses I have gotten
are from 2 others with the same issue.
Follow up questions -
1. Is there a place we can look for errors?
2. Is there a timeout that is causing it to come back blank? If so can it
be set?
3
Got the scrape taglib all set up with the latest scrape build, latest
jakarta-oro. But the examples don't return scrapes for me just the text
explaining what scrape I would be seeing if it were there. I also don't get any
type of error message.
Was getting the one that required the latest
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
scrape=weather77/
BR
-
BR
Looks like the begin/end don't like quotes/other characters, maybe you can
escape them?
Original Message Follows
From: Peter Gales [EMAIL PROTECTED]
Reply-To: Tag Libraries Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Scrape
Date: Mon, 18
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
I keep getting this error in my test scrape page:
java.lang.NoClassDefFoundError:
org/apache/oro/text/regex/MalformedPatternException
The page that I cut an paste the example from
(http://jakarta.apache.org/taglibs/doc/scrape-doc/) also
mentioned that scrape taglibs requires an up-to-date
I spoke to soon.
Using the example provided at
http://jakarta.apache.org/taglibs/doc/scrape-doc/, if the
scrp:result scrape=qt/ tag is used, I get the
CompileException error:
.../scrape.jsp(21,0) Attribute scrape invalid according to the
specified TLD
If the scrp:result scrape=qt/ tag
Hi,
I have the same problem. In my servlet.log I have the following error:
2001-06-14 09:43:49 - path=/scrape-examples
:java.net.UnknownHostException: weather.noaa.gov
This error probably comes from the fact that we don't have a DNS server
(i.e. ping weather.noaa.gov fails)
When I change
Hi,
I just downloaded and configured the scrape tag lib. I,
- extracted scrape-20010523.tar and put the scrape/ in the webapps/
directory.
- made sure the 2 jar files (scrape.jar jakarta-oro-2.0.jar) are in
webapps/scrape/WEB-INFO/lib/
- made sure the descriptor file (scrape.tld
Hi,
I'm trying to use the scrape tags with Resin but run into the following
problem when running the sample scrape.jsp:
/scrape.jsp:71: Exception javax.servlet.jsp.JspException must be caught, or
it must be declared in the throws clause of this method.
tag0.setTime(11);
This is generated
38 matches
Mail list logo