Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Displaying matrix type of questions in struts?

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI All
i have to display a questions in matrix format.
A question will have different parameters and each parameter will have some options. Then user will give choice for each parameter.
My approach is: i have taken a question, parameter and option object.
i have created option object and added it to options list after all options for a parameter, added it to parameter bean, then parameter bean will added to parameter list. like this i have collected all parameters for a question, at last i added the parameter list to question object and then question object to question list.
In jsp page, this is my code:


the problem is to take the choice of the user, i need to give same name for a row, and that should automatically populated with the form, What should i do?
can any body help me in this?
 
Mallik Avula
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all a small progress from my side.
i did some how and i am able to display the questions, but i need to give a unique name for a row. How can i? help please..
this is my jsp
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand what you're asking here. It looks to me like your paramId hidden field qualifies as a unique identifier for each row.
 
Quick! Before anybody notices! Cover it up with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic