Hi
Thanks for the hint...I will concatenate the whole array into a string and
then build the array in the function
Thanks again
Bye
Srinivas
Hi,
well I will give a hint, the rest iss up to you to decide,
in <%= ... %> , the expresion has to return back a string, or a object which
can be converted into a string. else it will give an error.
well if xyz[] can be converted into a single string
else
try concatinating the array into a single string
Amit
> -----Original Message-----
> From: Attili Srinivas [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, December 28, 1999 9:08 AM
> To: [EMAIL PROTECTED]
> Subject: ERROR with JAVASCRIPT AND JSP (can i do this???)
>
> Here is the code
> in the jsp file
> <%String xyz[ ]={"one","two","three"};%>
> <SCRIPT LANGUAGE= "JAVASCRIPT">
> function one()
> {
> two(<%=xyz%>)
> }
> function two(object)
> {
> .......
> ......
> }
> </SCRIPT>
>
> I get a javascript error as follows
> missing ] after argument list.
>
> two([Ljava.lang.String;@1bc27e74)
>
> Can anyone help me with this
> Thanks
> Srinivas
>
>
==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html