English 中文(简体)
行动的时间是什么时候?
原标题:When is the ActionForm instantiated?
  • 时间:2012-05-24 12:19:31
  •  标签:
  • struts

我用Struts 1.x来申请

我要知道 ActionForm 何时即刻生效 。

最佳回答

ActionServlet 实际上将请求处理任务委托给其 s RequestProcessor

当请求到达时, 无论是 < code> doGet 或动作服务器的 < code>doPost 方法, 都会被引用。 任何这些方法都将称为动作 servlet s process 方法, 该方法会反过来调用请求处理器s process 方法。 而在所有情况下, 大致如下:

  1. Find the ActionMapping for current request.
  2. Get (may be also create) the ActionForm instance.
  3. Populate the form.
  4. Validate the form.
  5. Get (create) the Action instance.
  6. Execute the action.
  7. And finally either forward or redirect.

如果您想要(或需要)详细了解源代码,您可以随时查看源代码。以下是 Strut 1.3.10 源代码的链接(如果不是您的版本,您也可以找到其他版本的源代码的来源)-

问题回答

暂无回答




相关问题
Struts 1.2.9 Action Chaining

I m having trouble calling a method in one Struts action from a method in another Struts Action (I ve been told that this is possible). I m working with two Struts DynaValidatorForms - one is used to ...

Java Struts Report

I am writing an excel report using an action,controller, servlet struts framework. The report is very congested and has already around 10 separate queries. I need to add about 10 more queries due to a ...

Struts Tiles 1 - nested tiles issue

I am using Struts tiles 1 succesfully, however I have come across a problem when trying to nest tiles. I currently have a layout like so: I wish to have another template like this, for use in quite ...

array as hidden variable

can array be used as hidden variable on jsp.....like I have a form i.e a simple java class,I want it to be as hidden variable can I do it.. Thanks in advance

GZIP JSON AJAX response text is empty

I am facing a problem, while encoding the response that I send back for an AJAX request, using GZIP. Can anyone give me some pointers on this please? There is an AJAX request from the JSP, An action ...

How to prevent JPA from rolling back transaction?

Methods invoked: 1. Struts Action 2. Service class method (annotated by @Transactional) 3. Xfire webservice call Everything including struts (DelegatingActionProxy) and transactions is configured ...