life cycle of struts?
Answer Posted / manohar reddy. vummadi
From Jsp page the controller looks into <form>tag with that
it enters into the web.xml, in web.xml it checks the <url-
pattern> tag, and it maps with <servlet-name> tag in
<servlet-mapping> tag, again it checks with <servlet-name>
which is there in <servlet> tag, it looks for corresponding
<servlet-class>.The Controller goes in strus-config.xml
from the it controller checks with the (req name) both in
<action> and <form-bean> if it is matching it will look
into the FormBean class.In FormBean class we have to write
setters and getters for the form input fields which are
there in Jsp page.Then the req is forwadard to Action
class. In Action class it will do some business logic based
on the requirement.
| Is This Answer Correct ? | 19 Yes | 8 No |
Post New Answer View All Answers
Why is it called struts?
What is pojo in struts2?
How long do struts last?
What is the difference between requestaware and servletrequestaware interface?
Why do we need mapdispatchtoprops?
Difference between html tags and struts specific html tags
What is the purpose of constant tag in struts.xml?
What is the purpose of @before?
What are the major differences between html tags and strut specific html tags?
What do you mean by tiles in struts?
What is the purpose of execute() method?
What are the some useful annotations introduced in struts2?
How client side validation is enabled on a jsp form?
How do you find the struts version being used in a project?
Which servlet does the struts framework use?