This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes Java interactive questionnaire module Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java interactive questionnaire module" Watch "Java interactive questionnaire module" New topic
Author

Java interactive questionnaire module

Murali Narayanaswamy
Greenhorn

Joined: May 29, 2007
Posts: 24
Hi All

I need to develop a questionnaire module in an existing application. The requirement is when an user clicks on the questionnaire link in the application, the module should present question to the user and based on the answer from the user another set of related question should be presented to the user.

For example The question asked is "Are you married" Yes/No. If the answer is Yes, then the question to be asked is "How many kids?". If the answer for the first question is No, then the question How many kids? should not be asked.

I would greatly appreciate if any one gives me some tips to develop the module.

I plan to start the module with a parser which parses the answer from the user and then decides to pick appropriate question from the questionnaire table.

Thanks in advance
Murali
Amit A. Patil
Ranch Hand

Joined: May 04, 2006
Posts: 38
http://socrates-qe.sourceforge.net/
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
Based on my experience with creating several questionaire engines, I would say you should first concentrate on the expression of the questions in a script. The form of the script will dictate the logic of presentation and recording. I found it useful to make a diagram of all possible user's "flow" paths.


Personally I prefer XML for ease in editing and flexibility in expressing questions.

Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java interactive questionnaire module
 
Similar Threads
More than one web-application under the same root directory
Java interactive questionnaire module
More than one web-application under the same root directory
Java interactive questionnaire module
Interactive questionnaire project