Page 1 of 1

About Question enthuware.jwpv6.2.623 :

Posted: Tue Jan 10, 2012 5:20 pm
by Ciprian Mihalache
I need some help in understanding this question.
From the explanation I understood that the best choice is Custom Tags for View and POJOs for Model, so this makes answers 3 and 5 to be true. But we had to choose 3 answers, and it is explained why Filter should not be used for View, Servlet as Front Controller and JSP with scripting as a view. However, the option "JSP Scripting - View" is marked as correct and I don't understand why.
Thank you.

Re: About Question enthuware.jwpv6.2.623 :

Posted: Wed Jan 11, 2012 7:26 am
by admin
Hi,
JSP forms the substrate of all the view components. All the HTML and customs tags are actually embedded in the JSP page. So JSP scripting is unavoidable.

HTH,
Paul.

Re: About Question enthuware.jwpv6.2.623 :

Posted: Fri Jul 13, 2012 9:29 pm
by sireesha
The question asks to select one option for each layer, But the answer shows 2 picks for view and one for model. It should be servlet for controller and pojo for model and JSP Scripting/ custom tag for view

Re: About Question enthuware.jwpv6.2.623 :

Posted: Sun Jul 15, 2012 8:01 pm
by admin
Hi,
Although question doesn't explicitly ask for one option for each layer but I think you are right. It is not very clear that there could be two choices for same layer.
Option 1 is Front Controller and not Controller. Since servlets are not usually suited for front controllers, it is not a correct option.

HTH,
Paul.

Re: About Question enthuware.jwpv6.2.623 :

Posted: Fri May 03, 2013 2:38 am
by sebastien
Hi,
Since servlets are not usually suited for front controllers, it is not a correct option.
What can we use for front controller if servlet are not suited for that purpose ?

Sébastien

Re: About Question enthuware.jwpv6.2.623 :

Posted: Fri May 03, 2013 6:39 am
by admin
A filter would be more suitable in this case.
-Paul.

Re: About Question enthuware.jwpv6.2.623 :

Posted: Sat Jun 29, 2013 10:41 am
by jmkenny
Well... What about using a Servlet as Front Controller? Why is the filter more suitable?

Even here: http://www.oracle.com/technetwork/java/ ... 35648.html, it seems to have been implemented with a Servlet...

Such questions are really annoying... Is there any offical resource that states that Filter is more suitable for Front Controller?

Re: About Question enthuware.jwpv6.2.623 :

Posted: Sat Jun 29, 2013 1:05 pm
by admin
I agree that it is difficult to find 100% accurate source because these things can really be done in multiple ways. It can be done using a jsp file as well.

Unfortunately, exam does have a questions that have ambiguous answers and our guess is as good as yours.

Our goal with these types of questions is not to annoy you but to bring this problem to your attention so that you are not surprised in the exam. It is easy for us to get rid of this (and other similar) question but then it would be detrimental for your preparation.

HTH,
Paul.

Re: About Question enthuware.jwpv6.2.623 :

Posted: Sun Dec 21, 2014 12:55 am
by gfrascadore
admin wrote:Hi,
JSP forms the substrate of all the view components. All the HTML and customs tags are actually embedded in the JSP page. So JSP scripting is unavoidable.

HTH,
Paul.
Ok, but reading the text I understand that it referes to Scripting components like scriptlets, expression, declaration and so on, you are sayng therefore that behind the scenes custom tags and so on become jsp Scripting?

Re: About Question enthuware.jwpv6.2.623 :

Posted: Sun Dec 21, 2014 8:32 pm
by admin
No, they are not "converted" into scripting. They are embedded in a JSP page. The whole page is converted into a Java class.
What the explanation is trying to say is that a view is built using a JSP page and in that page you embed HTML and/or custom tags. But constructs such a loops, temporary variables, or even EL are the glue that bind everything together in a JSP page. So JSP scripting is essentially meant for building the "view" component of the application.

HTH,
Paul.