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="teststring"><scrp: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 in a scriplet, like <%= teststring %> I get: No entity named "teststring" was found in this environment I tried changing the scope but that didn't help. I need to pass this string to a method that someone else wrote.... I'm just getting started with these taglibs and appreciate any help that anyone can give. Thank you, Karen -----Original Message----- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 5:00 PM To: Tag Libraries Users List Subject: Re: Pass scrape taglib to a method (string) 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="teststring"><scrp:result scrape="pj3"/></c:set> HTH! -- Hassan Schroeder ----------------------------- [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 7/24/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.516 / Virus Database: 313 - Release Date: 9/1/2003 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]