• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

J2ee design pattern - practical implementation question

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have following design requirement
Page 1 - Save Category (it has name, description, status)
Page 2 - List Product (List All the Products with some search condition)
Page 3 - List Category (List All the Categories with some search condition)


From Page 1 , on hitting next, should go to Page 2, after saving Category
From Page 1, on hitting back, should go to Page 3, after saving category

I am using following pattern
Page1.jsp --> ApplicationControllerServlet - CommandFactory - SaveCategoryCommand - CategoryDAO.

I am not sure what pattern to user for Listing the Category and Product.
What I can think of currently is
I can add two more commands like ListCategoryCommand & ListProductCommand. But how will I link the various Command.

Any Suggesstion will be most welcome.
 
You’ll find me in my office. I’ll probably be drinking. And reading this tiny ad.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic