It is not a string but a string _array_.
an enumeration works with functions 'hasMoreElements()' (true/false) and
'nextElement()', you could use it only one time.
a string array can be used nicer, with a for(int i=0;i<v.length;i++){} loop
for example.

If you need it as Vector you could use a function as follows:

public Vector FieldToVector (String[] Field) {
    Vector Output = new Vector();
    for (int i=0; i< Field.length; i++) {
        Output.add(Field[i]);
    }
    return Output
}

You can now call

Vector v = FieldToVector (request.getParameterValues("pld_scripisin"));


ciao!
Kai Hackemesser

----- Original Message -----
From: maurice coyle <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 10:41 AM
Subject: Re: string to vector conversion?


> it should be:
>
> <%
>
> Enumeration v = request.getParameterValues("pld_scripisin");
> Enumeration v1 = request.getParameterValues("pld_scripname");
>
> %>
>
> i think.
>
> maurice.
>
>
>
>
> hotmail wrote:
> >
> > hi all,
> > i m tryin this, any correct way?
> > <%
> > Vector v=(Vector)request.getParameterValues("pld_scripisin");
> >   Vector v1=(Vector)request.getParameterValues("pld_scripname");
> > %>
> > Error:Invalid cast from java.lang.String[] to java.util.Vector
> > help?
> > thx
> > MJ
> >
> > ----- Original Message -----
> > From: xianke <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 10, 2001 10:18 AM
> > Subject: Re: Interfaces in JSP
> >
> > > dd
> > >
> > >
> >
===========================================================================
> > > 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://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> >
===========================================================================
> > 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://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> --
> I18n group,
> Sun Microsystems Ireland.
> Phone: 8199751, x19751
>
>
===========================================================================
> 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://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to