Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp /servlets

 
Walter Vetrivel
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most web applications require logic for validating form input and determining the next page to display. Given long term maintenance and reuse objectives, what is the BEST design to implement this logic?





a) A JSP that both validates form input and determines the next page.

b) Validate form input in a JSP and determine the next page in a servlet.

c) Validate form input in a servlet and determine the next page in a JSP.

d) A servlet both validates form input and determines the next page.


Single Select - Please select the best answer (one and only one choice must be selected).
 
Danl Thompson
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel like I should give other people a crack at these. But go back to the J2EE Blue Prints book, and you'll see the recommended approach is to have a front component that services all requests and also determines the next page to display. Since these operations are purely computation, and there is no display involved, both should be handled by a servlet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic