File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Dynamically Created HTML Form Elements and Form Beans Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Dynamically Created HTML Form Elements and Form Beans" Watch "Dynamically Created HTML Form Elements and Form Beans" New topic
Author

Dynamically Created HTML Form Elements and Form Beans

Jason Ferguson
Ranch Hand

Joined: Sep 16, 2007
Posts: 47
First, this is a Struts 1 app... gotta get around to learning v2 one of these days.

Anyways, here's my situation. I have a JSP called "createPackage.jsp". It accepts basic information about a "package", then uses chained selectors to choose the serial numbers of items to add to the package. These items are added to a list, and a hidden form field with their id is generated via javascript.

All of the non-dynamic form fields are defined with the Struts HTML taglib. However, since the form fields are generated on the client side, will they be part of the form bean when the form is submitted? If not, is there a way to make them part of it?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Dynamically Created HTML Form Elements and Form Beans
 
Similar Threads
How to pass runtime variables to Javascript function on onclick event form struts html:button tag ?
Advantage of struts-html tag library ?
how to highlight error field in struts html form?
How to get the field details from one jsp page in struts dispatchaction action class
sending a Collection from JSP to Servlet