Hi,
This is a follow up. Can I fill up a java array inside a JSP with
javascript ?
Can I use javascript code like "document.myForm.myRadio[0].checked"
to fill up a java array
using scriptlets ? I want to use these values to set them in a program. This
is to avoid beans as I haven't figure out how to do that.
I want to use the following example.
<jsp:useBean id="stat"
class="com.manning.jsp.StatBean">
<jsp:setProperty name="stat"
property="numbersList"
value="100,250,150,50,450" />
</jsp:useBean>
<HTML>
<BODY>
The average of <jsp:getProperty name="stat"
property="numbersList" /> is
equal to <jsp:getProperty name="stat"
property="average" />
</BODY>
</HTML
I have several groups of radio buttons with dynamically generated names as
they are associated with dynamically retrieved table rows. So I can't have
"getter/setter" beforehand.
bye,
Mohan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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