my dog learned polymorphism*
The moose likes JSF and the fly likes please help me to solve these Questions of jsf and struts. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "please help me to solve these Questions of jsf and struts." Watch "please help me to solve these Questions of jsf and struts." New topic
Author

please help me to solve these Questions of jsf and struts.

Amar Dash
Greenhorn

Joined: Sep 28, 2012
Posts: 1
1.Which of the following tag alters the flow of the rendering process by testing the values on the ValueStack?



a.Data Tags

b.Control-flow Tags

c.UI Tags

d.Miscellaneous Tags





2.Which of the following tag helps you to loop over a collection of objects such as Collection, Map, Enumeration, array and so on?



a.action Tag

b.bean Tag

c.iterator Tag

d.None of the above.


3.Which of the following are the features of Struts 2?


1. JavaBeans usage instead of Action form
2. Annotation and XML configuration options
3. POJO based actions for easy testing
4. Usage of plug-ins to extend and modify
1, 2, 3

2, 3, 4

1, 2, 4

1, 2, 3, 4



4.Which of the following statements are correct about Struts 2?



a.Struts 2 uses a Filter to act as a Controller.

b.Struts 2 provide several tag libraries such as HTML, Bean, and Logic.

c.In Struts 2 Action properties are used for capturing input and thus eliminating the need for creating another class for obtaining input.
d.All of the above.



5.Which of the following is a business object and has no user interface? In MVC design pattern in Struts 2 framework it’s implemented by the action component.



a.Controller

b.Model

b.View

c.None of the above.


6.Which of the following can be performed using interceptors by the developer?


1. Provide pre-processing logic before invoking the action
2. Interact with the action and set the request parameter on the action
3. Provide post-processing logic after invoking the action
4. Modify the result

1, 2, 3

2, 3, 4

1, 2, 4

1, 2, 3, 4



7.Interceptors can be used for which of the following tasks?


1. Checking security and bottleneck
2. Tracing the log
3. Validating user input
4. Uploading file
1, 2, 3

2, 3, 4

1, 2, 4

1, 2, 3, 4



8.The ValueStack is made up of which of the following objects?


1. Temporary Objects
2. Model Object
3. Action Object
4. Permanent Object
1, 2, 3

2, 3, 4

1, 2, 4

1, 2, 3, 4



9.Which of the following statements are correct?



a.Apache Struts is a Java based framework that separates the application logic from the presentation layer.

b.Action is based on pull-MVC framework which means that the data to be displayed is pulled from the action class which is a POJO class acting as a model in the Web application.
c.OGNL is a powerful expression language that allows you to refer and manipulate the data present on the ValueStack.

d.Declarative architecture enables you to integrate the different components present in the Web application either using XML files or Annotations.



10.Which of the following are the examples of helpers?


1. Action Interface
2. ActionSupport Class
3. ActionImplement Interface
1, 2

2, 3

1, 3

1, 2, 3



11.The Struts 2 filter performs which of the following tasks?


1. Installation of the Action class
2. Execution of the method specified in the configuration file
3. Reading of the control string
1, 2

2, 3

1, 3

1, 2, 3



12.Which of the following value for the debug parameter displays an OGNL console to test OGNL expressions against the value stack?



a.xml

b.console

c.command

d.All of the above.



13.Which of the following are correct statements?



a.The execute () method of the action class defines business logic implementations.
b.ActionSupport class adds useful utilities to the class that extends it.

c.Set of Interceptors are grouped into a stack known as Interceptor Stack.

d.All of the above.



14.Which of the following annotation helps to set the path of the action URL? It is placed before the action class and it applies to all actions defined in the class, even if the fully qualified URLs are not supplied.



a.@Namespace

b.@Result

c.@Results

d.@ParentPackage



15.Which of the following statements are correct related to OGNL and Annotations?



a.OGNL is an expression and binding language that is used for getting and setting the properties of the Java objects.

b.Annotations acts as an alternative to HTML and Java properties configuration file.

c.Action Annotations are available when the framework scans the classpath for action classes.

d.Lifecycle callback annotations are invoked at any time during the processing of an action.


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: please help me to solve these Questions of jsf and struts.
 
Similar Threads
What are the features of Struts 2 which prompts someone to opt it as a framework?
Struts Training
Binding values into views
Struts 2 Design and Programming table of contents
Struts-2.0