开发者

Questions every good Struts Developer should be able to answer? [closed]

开发者 https://www.devze.com 2023-03-20 01:51 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this po
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 5 years ago.

Improve this question

In the line of Questions every good Jav开发者_如何学运维a/Java EE Developer should be able to answer?

I would like to ask what are the Questions every good Struts Developer should be able to answer?

Looking forward for some good responses.


1. What is the basic flow of a Struts handled request?

You can find a short description here and plenty of resources on the web.

(If you pretend to know Struts then there is no excuse for not knowing number 1)

Next question is "What is a Servlet?" (and I'm not kidding; if they fail number 1 they are going to fail to this also, trust me).

2. Is ActionForm part of the Model in MVC?

People think the ActionForm is part of the Model. They read the MVC description and think... Hey!... this is the Model's state, lets move this as parameters all over the Model. Now you have a tight coupling between the Model and the Struts framework.

There are plenty of examples in which the ActionForm properties are mapped 1:1 on DTO POJO objects and those used instead, but people think its a waste of code and time and just pass it along to the Model.

(Number 2 can can be excused for a junior and is later cured by experience)

3. Do you put your business logic inside the Action class? Why? Why not?

An Action is an adapter between the contents of an incoming HTTP request and the corresponding business logic that should be executed to process this request... 'nuff said

(Number 3 is also cured by experience)


  1. Difference between filters and Interceptors ?
  2. Action Chaining
  3. classes used as part of struts framework.
  4. Validation Plugin
  5. struts Configuration.
0

精彩评论

暂无评论...
验证码 换一张
取 消