In the actual exam ..the applicability section is not as confusing as it sounds here !! This is an old post ...but I go with Majji .. the principle is
1. Go to EJB container if you require transaction/persistance ( even if no persistance is required)
2. For browse only (catalogs) - Stick to the web container !! you can have a servlet front or a JSP front ...if you have a servlet front your entire stuff can base out of servlet...(generation of HTML can become kind of tough .. especially if it has some CSS stuff ... remember HTMLKona of Weblogic ???).If you have JSP front you can take the benefit of Taglibs and JSTL and the other regular client features like CSS, Javascript, DHTML etc can be made use of!!. Talking of regular POJO is meant by
usebean in JSP....You can surely have JSPs as your controller ...
It is true that JSP is translated into a servlet ...but when we design we think of what kind of UI fronts we are looking at ..and A and B are the two fronts A= servlet , B= JSP
This concept is kind of old ..since we have lot of front end J2EE
patterns ..but I think my logic works for this question.
So really speaking
I would say only A is the correct answer. How can you have ONLY JSPs and Java classes without servlets?
Is not true from the design perspective ...but if you look from an implemetation perspective you are correct.