Tag: web technology

Questions Related to web technology

Which of this is used for processing XML documents using DOM,SAX, XLST.

  1. JXMLP

  2. JAXP

  3. JAP

  4. JXP


Correct Option: B

Which tag must enclose all other tags on a Faces JSP page?


Correct Option: B

Which JSF component can be used to create tables?

  1. HtmlPanelGroup

  2. HtmlTable

  3. UITable

  4. HtmlPanelGrid


Correct Option: D

What type of events does the HtmlCommandButton generate?

  1. Command events

  2. Submit events

  3. Action events

  4. Click events


Correct Option: C

AI Explanation

To answer this question, you need to understand the purpose and behavior of the HtmlCommandButton in HTML.

The HtmlCommandButton is an HTML component that represents a clickable button on a web page. When a user clicks on the button, it generates an event.

The correct answer is:

C) Action events - The HtmlCommandButton generates action events when it is clicked. An action event is typically used to trigger a server-side action or perform some other action specified by the developer.

Which JSF expression references an application's context path?

  1. #{contextPath}

  2. #{requestContextPath}

  3. #{facesContext.externalContext.requestContextPath}

  4. ${request.contextPath}


Correct Option: C
Explanation:

To solve this question, the user needs to know about JSF expressions and how they can reference an application's context path.

Option A: #{contextPath} - This option is not correct. There is no JSF implicit object named contextPath. This option seems to be a custom attribute, which is not defined in the JSF specification.

Option B: #{requestContextPath} - This option is not correct. There is no JSF implicit object named requestContextPath. This option seems to be a custom attribute, which is not defined in the JSF specification.

Option C: #{facesContext.externalContext.requestContextPath} - This option is correct. This expression references an application's context path using facesContext.externalContext.requestContextPath. This expression is used to get the application's context path that the current request is mapped to.

Option D: ${request.contextPath} - This option is not correct. This expression is not a JSF expression. It is a JSP expression that is used to get the context path of the current request.

Therefore, the correct answer is:

The Answer is: C. #{facesContext.externalContext.requestContextPath}

How do you integrate JSF components with cascading style sheets (CSS)?

  1. With the JSF configuration file

  2. With the styleClass property

  3. With the cssClass property

  4. With the class property


Correct Option: B

AI Explanation

To integrate JSF components with cascading style sheets (CSS), you can use the styleClass property.

Option A) With the JSF configuration file - This option is incorrect because the JSF configuration file is used for configuring various aspects of the JSF framework, such as managed beans and navigation rules. It is not used specifically for integrating CSS with JSF components.

Option B) With the styleClass property - This option is correct because the styleClass property allows you to specify a CSS class for a JSF component. This class can be defined in an external CSS file or in a style block within the HTML page.

Option C) With the cssClass property - This option is incorrect because there is no cssClass property in JSF. The correct property to use is styleClass.

Option D) With the class property - This option is incorrect because the class property is used in regular HTML tags to specify a CSS class. However, in JSF components, you need to use the styleClass property instead.

The correct answer is B) With the styleClass property. This option is correct because the styleClass property allows you to integrate JSF components with CSS by specifying the CSS class for the component.

Which J2EE component QuoteIt project are using for Rule engine?

  1. Coustom Rule Engine

  2. Drools

  3. OpenRules

  4. JRuleEngine


Correct Option: B

Which J2EE component QuoteIt project are using for illustration?

  1. PDF Box

  2. jPod

  3. iText

  4. PDF Renderer


Correct Option: C

which Method of ActionForm is used for validation ?

  1. validate

  2. validation

  3. both

  4. No such method to validate the Form


Correct Option: A

Are we using Spring IOC in QouteIt?

  1. True

  2. False


Correct Option: B