This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamically Created HTML Form Elements and Form Beans

 
Jason Ferguson
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic