Use cookies....it's cleaner....
create the cookie in Javascript, read it using the Cookie methods.
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Vincent Lin
> Sent: Tuesday, March 27, 2001 9:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: assigning javascript value to a java variable in JSP
>
>
> Hi Maizatulakmam,
>
> You must submit this form, and use the command:
>
> <%
> String selectedValue =
> request.getParameter("selectionobject");
> %>
>
> in the JSP you submit which you submit this page to.
> The value you specified in the <option> tag which you
> selected will be assigned to the variable
> selectedValue.
>
> Regards,
> Vincent
>
> --- Maizatulakmam Ali <[EMAIL PROTECTED]> 的郵件內容: > Hi!
> JSP-INTEREST,
> > I would like to know is there anyway to get
> > selectedindex value from
> > selection object by using Javascript and assign it
> > to a java variable
> > in JSP
> >
> > example : <script >
> > function getIndex(){
> > ????? =
> >
> >
> window.document.selectionobject.options[0].selectedIndex;
> > }
> > </script>
> > p/s : ????? can represent Java variable?
> >
> > --
> > Best regards,
> > Maizatulakmam
> > mailto:[EMAIL PROTECTED]
> > 603-89965000 ext 6427
> >
> >
> ==================================================================
> =========
> > 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
>
>
> _________________________________________________________
> Do You Yahoo!?
> 登記免費的 @yahoo.com.tw 電子郵件 @ http://mail.yahoo.com.tw
> Get your free @yahoo.com.tw address at http://mail.yahoo.com.tw
>
> ==================================================================
> =========
> 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