Can anyone help me with this? I'm getting a syntax error and I'm lost on where to go from here. Thanks.
Karen.
I guess you didn't get the mail from Hassan Schroeder.
<c:set...> is a custom tag and must not be included inside scriptlet tags (<% %>). You use it just like any 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 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="teststring"><scrp:result scrape="pj3"/></c:set>;
%>
And got the following error message: (Thanks again for any help you can give) Karen *** Syntax: Unexpected symbol ignored
88. ^-^
*** Syntax: "AssignmentOperator AssignmentExpression" inserted to complete Assignment
88. ^-^
*** Syntax: ";" inserted to complete ExpressionStatement
88. <>
*** Syntax: misplaced construct(s)
88. <>
*** Syntax: ; expected instead of this token
88. <--->
*** Syntax: Unexpected symbols ignored
-----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!
-- F&F Computer Anwendungen Tel: +49 89 51727-352 und Unternehmensberatung GmbH Fax: +49 89 51727-111 Westendstr. 195 Mail: [EMAIL PROTECTED] D-80686 Muenchen http://www.ff-muenchen.de
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
