The tags you are trying to use are called "custom tags", and they can't be used inside scriptlets any more than you could do:
<%
<html>
%>
Whatever appears within a scriptlet must be Java code.
If you can, try to avoid mixing custom tags and scriptlets. Although it's possible to do this, it can be very confusing for new users of JSP and tags.
K.C.
Karen D. Wiens wrote:
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 seemsto
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!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
