2. Saying hello to Struts 2 Flashcards

1
Q

What is declarative architecture?

A

Type of configuration that allows developers to describe their application architecture at a higher level than direct programmatic manipulation.

Involved defining Struts 2 components and linking them together or wiring them together to make workflow paths.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two ways you can configuring your application?

A

XML-Configuration

Annotated Java Files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the anatomy of a URL in regards to mapping to a Struts 2 action namespace?

A

Protocol -> Hostname:Port Number -> Servlet context -> package namespace -> action name.action

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s the syntax for a standard JSP directive?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you “enable” automatic scanning of annotations?

A

In your web.xml you would add an init param called actionPackages and give it the value of the package you want it to scan.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can you mark a class as an Action?

A

Either implement the Action interface, or by using naming convention where class name ends in Action.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly