permaculture playing cards*
The moose likes JSP and the fly likes Design structure in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Design structure in Java" Watch "Design structure in Java" New topic
Author

Design structure in Java

Vivek Kr Agrawal
Ranch Hand

Joined: Sep 08, 2012
Posts: 51

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


Vivek Agrawal
J. Kevin Robbins
Bartender

Joined: Dec 16, 2010
Posts: 876
    
  13

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.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Design structure in Java
 
Similar Threads
EJB Transaction Handling Question
Facing problem when I am mixing struts and AJAX
problem with registration page
problem regarding registration page in struts.
Page reloading problem