Sorry, my bad.  Hans is right you have JSP inside a Scriplet, inside a JSP.
That level of nesting isn't allowed.
    (*Chris*)

----- Original Message -----
From: "Hans Bergsten" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 22, 2001 11:06 AM
Subject: Re: [JSP-INTEREST] StringTokenizer(<sql:getColumn position="6"/>);
?????????


> sufi malak wrote:
> >
> > it looks like you did not understand my code, try to read it first,
because
> > when I replce :
> > StringTokenizer st = new StringTokenizer(<sql:getColumn position="6"/>);
> >
> > StringTokenizer st = new StringTokenizer("This is a string");
> > It works, but when using the string comming from  sql:getColumn
> > position="6"/>); it does not.
> >
> > Any help will be appreciated.
>
> You can not mix Java code and JSP expressions in a statement like you do.
> To get the value of the column as an argument to the StringTokenizer()
> constructor, you need to use the Java code that corresponds to the
> <sql:getColumn> custom tag. Look at the source code for the tag handler
> to figure out how the Java code should look like.
>
> Better yet, write your own custom tag that tokenizes a String, that you
could
> use
> like this:
>
>   <foo:tokenize id="theResult">
>     <sql:getColumn position="6" />
>   </foo:tokenize>
>
> Hans
> --
> Hans Bergsten           [EMAIL PROTECTED]
> Gefion Software         http://www.gefionsoftware.com
> Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to