File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design structure in Java

 
Vivek Kr Agrawal
Ranch Hand
Posts: 51
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,
I am using Java Technology for fetching data and generating page(servlet) and jsp to display. Now the problem is that I have to create a registration page. but it will be not like a regular registration page. The number of registration pages(minimum 2 and max 10) will depend upon the parameter a user selects. So my question is how to achieve that?
Shall I go for pop windows and store variables in session?
Shall I make 10 jsp pages considering the maximum case scenario and work through that?
I have no problem if the web service gets heavy as it will run in LAN. The solution should be for long term use.
If you require more details I am fine with that.

Thanks,
Vivek Agrawal
 
J. Kevin Robbins
Bartender
Pie
Posts: 1607
15
Chrome Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not a lot of requirements to go on, but I'll take a shot at it.

I would create one base page that includes all the elements that any user will need to complete such as name, email etc. Then for your additional info, I would use JavaScript to insert page fragments into the DOM. As the user completes each section (clicking a "Next" button or whatever), store the information somewhere until you are ready to make a database insert. In the end, you'll have just one page with several fragments that can be inserted, removed or hidden as needed.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic