Tag: web technology

Questions Related to web technology

Which of the following are the parameters to the execute method

  1. ActionMappings

  2. ActionForm

  3. ServletRequest

  4. ServletResponse

  5. All of the above


Correct Option: A,B

Which struts tag is used to display error messages


Correct Option: A

Which session parameter is used to identify the application locale info in Struts 1.2?

  1. Globals.LOCALE_ID

  2. Commons.LOCALE_ID

  3. Globals.LOCALE_KEY

  4. Constants.LOCALE_KEY


Correct Option: C

In Struts 1.3, each error message is represented as

  1. ActionError

  2. ActionMessage

  3. ErrorMessage

  4. ActionErrors


Correct Option: B

How many action objects of each action type are created in a Struts 1 Application?

  1. One per request

  2. One per module

  3. One per session

  4. One per application


Correct Option: D

Name the struts tag used to declare forwards common to all the actions in an application?


Correct Option: D
  1. The name attribute of action tag, specifies the action name

  2. Only one controller can be defined for a module in struts application

  3. Struts configuration files should be placed only inside WEB-INF folder or its sub folders

  4. The tag can be used to forward user to a specific view in case of an exception.


Correct Option: B,D

Which format usually works best for photos?

  1. gif

  2. jpg

  3. jpeg

  4. png


Correct Option: B