?
Solved

Dynamic struts form generation

Posted on 2010-04-06
2
Medium Priority
?
476 Views
Last Modified: 2013-11-24
I have a table in database, which stores struts tags, so that i can query and generate a standard form dynamically, but when i run the application and load the form, only the labels are showing and the struts text fields are not visible.

the html source code in the browser show my struts tags as is, not compiled. only the normal html fields are visible in the form

What can be a good solution for my dynamic struts form generation?

attaching some image and html file for your reference.
-- SAMPLE table with html-struts code
insert into PRODUCT_FIELDS(HTML_CODE_LABEL, 	HTML_CODE_FIELD) 
values ('<label>Sale Price</label>', '<html:text styleId="menu_txtfield" property="salePrice" value="" />');

Open in new window

html.txt
temp.JPG
0
Comment
Question by:pixarsol
2 Comments
 
LVL 2

Accepted Solution

by:
enggagrawal earned 100 total points
ID: 30013360
fields will be generated after reading struts-config.xml file
pl check struts-action.xml file
check dynaactionform or actionform setter and getters
u cannot dynamically generate fields. struts have static no. of fields.
u can use javascript to show or hide
0
 

Author Closing Comment

by:pixarsol
ID: 31711681
No other way to do it in struts i guess
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question