• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question about JSP and Servlets

 
Greenhorn
Posts: 8
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't understand this question. Are there someone help me to understand this question? I need some content about servlet and JSP for OCEWCD.



Where will JSP and Servlets be used?

A) To handle HTTP requests

B) To increase application performance

C) When we need to implement high scale applications

D) to filter HTTP request

E) can act as Front controller, HTTP Action Handler

F) when dynamic HTML contents needs to be generated

G) complex transactions handing


The right answer are A -D -E - F
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please QuoteYourSources
 
Renato Carauta
Greenhorn
Posts: 8
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry the source of this question is this mock exam OCEWCD (Java EE 6 Web Component) Training Lab
 
Creator of Enthuware JWS+ V6
Posts: 3411
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Renato,

What is it that you don't understand about this question?

Regards,
Frits
 
Renato Carauta
Greenhorn
Posts: 8
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In this question I answer letter A-B-C-F and I don't understand letter B-C-D-E I don't understand why the JSP and Servlet don't increase application performance, why JSP and Servlet don't implement high scale application and why JSP and Servlet to filter HTTP Request and Can act Front Controller, HTTP Action Handler. The question for me is very confuse I need to understand this letters.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Posts: 3411
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

B) To increase application performance


Servlets are not made to increase application performance, this is what the specs say about them:

A servlet is a Java technology-based Web component, managed by a container, that generates dynamic content. Like other Java technology-based components, servlets are platform-independent Java classes that are compiled to platform-neutral byte code that can be loaded dynamically into and run by a Java technology-enabled Web server. Containers, sometimes called servlet engines, are Web server extensions that provide servlet functionality. Servlets interact with Web clients via a request/response paradigm implemented by the servlet container.



C) When we need to implement high scale applications


I don't think Servlets will make your application more scalable, that is more depending on the Application Server characteristics (clustering, load-balancing capabilities and so on). You can use Servlets in a high scale application, but Servlets won't be the reason that you have a high scale application.

D) to filter HTTP request


You can use a javax.servlet.Filter in front of your application to filter the requests accessing you web-app

E) can act as Front controller, HTTP Action Handler


This is one of the patterns you will have to learn for the exam, so just read HFSJ about the JEE patterns

Regards,
Frits
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic