Hi all,
perhaps someone might enlighten me as to how I can do the following? In ATG
JHTML, it's dead-easy, since it has built-in support for Hasthtables,
Vectors, and Arrays. In JSP, it appears to be a lot harder.
Essentially, I want a page the lists the description of a series of objects
and enables the user to edit them. On the web tier I have this 'Form
Handler' object called ObjectSearchFormHandler that's very little more than
a JavaBean. Note the ability of JHTML to be able to access (and SET) indexed
java properties.
The 'bean=' attribute of the input tag says 'read the value from this
javabean, and set the value back when the form handler is resubmitted'.
Bloody brilliant I reckon. I'm now trying to find a bloody brilliant answer
to this in JSP. It appears I have to manually parse the submitted data
myself? Since there's nothing that says how jsp:setProperty properties="*"
can access/set indexed properties. Though I hope I'm wrong...?
<droplet name="ForEach">
<param name="array" value="bean:ObjectSearchFormHandler.foundObjects">
<input type="text"
bean="ObjectSearchFormHandler.foundObjects[param:index].description">
</droplet>
Thanks in advance o JSP gurus!
===========================================================================
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