Originally posted by A knibbs:
1) How do you reference a form in struts if there is no name for the form ?
It's been many years since I abandoned Struts, but does the Struts form tag not allow you to specify the name attribute? I find that hard to believe.
But if that does turn out to be the case, you can always reference your form via the forms array:
document.forms[0]
This is not the best way to do this, a name is better, as it is fragile and can easily get broken if more forms are added to the page.
2) How do I get my javascript to pull out the values from the java database call ? JavaScript has no means to access the database. You'll either need to submit the page and repaint it with the updated information, or use Ajax to fetch the data from the server. Modern web apps opt for the latter.
[ August 28, 2007: Message edited by: Bear Bibeault ]