Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic Form Building using JSP  RSS feed

 
suresh myageri
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I need to achieve dyanmic form building functionality in JSP.
i.e i would like to provide a functionality for end user where the user will be able to build his/her own form.Adding some text box,drop down's and radio button.

I have any idea of <div> tag and we can make it visible and invisible depending upon some conditions.but i am worried about the database related issues like the table design to achieve the dynamic functionality.

I have an idea of the xml where we have name /value functionality.I am planning to generate xml file from the front end attributes and save the file to Database.Whenever user query for the form ,we can read the xml file and generate the data to the form.

Is my approach feasible.

Please suggest me some solutions.

thanks in advance

Suresh

[ October 28, 2007: Message edited by: suresh myageri ]

[ October 28, 2007: Message edited by: suresh myageri ]
[ October 29, 2007: Message edited by: suresh myageri ]
 
Emanuel Kadziela
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use javascript widgets to allow the user to pick elements to add/remove to/from the form. the user could save the form, which would save the object model to the database (some sort of a record of what user saved what form with what elements contained), so that the user could then retrieve/modify/delete the form in some interface and view/use it as an actual form (and/or let others do so) in some other interface.
 
suresh myageri
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Emanuel,

Thanks a lot for your valuable suggestion.

Regards,
Suresh
[ November 01, 2007: Message edited by: suresh myageri ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!