> From: [email protected] > Date: Wed, 4 Jun 2014 10:50:14 +0530 > Subject: How to Use JavaScript in Struts2 > To: [email protected] > > Hi, > I'm developing an an application to conduct Online Examinations. Lots of > table displays are used in every module. for example Questions, Exam, > Results, etc, > I have a form which saves a question to db. > > My Scenario is Following I Have three types of Questions > 1. Single choice > 2. Mutiple Choice > 3. Subjective > > while Inserting a Question I can Choose the number of options for that > particular question. > depends on the number of options the input boxes of options should be > generated. MG>you already have TestCases for each scenario > > After inserting options there should be a Radio Button Group which chooses > the type of Answer. > If it is Single Choice, > A select control should be populated with the number of options given. Here > we choose the correct answer for that particular question. > Also there is a radio button group to choose how the options should be > displayed to the candidate. MG>No JS go with \core\src\main\java\org\apache\struts2\views\jsp\ui\RadioTag.java MG>With JS go with \plugins\dojo\init\src\core\src\test\java\org\apache\struts2\views\jsp\ui\RadioTest.java > > If it is Multiple Choice Question , > A checkbox group should be generated with the above number of options. > at this time the radio button group which decides the show options as > should be disabled. MG>No JS go with plugins\javatemplates\src\test\java\org\apache\struts2\views\java\simple\SelectTest.java MG>With JS go with \plugins\dojo\init\src\core\src\test\java\org\apache\struts2\views\jsp\ui\SelectTest.java > > If it is subjective question the correct answer control should be textarea > this should be generated. MG>No JS go with plugins\javatemplates\src\test\java\org\apache\struts2\views\java\simple\TextAreaTest.java MG>With JS go with \plugins\dojo\init\src\core\src\test\java\org\apache\struts2\views\jsp\ui\TextAreaTest.java > > How this can be implemented with struts2, How to use Struts2 Tags for this > purpose

