`

Initialize action of type: 问题

 
阅读更多

2006-1-23 10:57:02 org.apache.struts.chain.ComposableRequestProcessor init
信息: Initializing composable request processor for module prefix ''
2006-1-23 10:57:02 org.apache.struts.chain.commands.servlet.CreateAction getAction
信息: Initialize action of type:  test.HelloAction

 

初学者 可能会碰到这个问题,很纠结的问题,解决方法是:


Action有2种execute方法,参数类型不同。

 

1、public ActionForward execute(ActionMapping mapping, ActionForm form,
   HttpServletRequest request, HttpServletResponse response)

 

 

2、public ActionForward execute(ActionMapping arg0, ActionForm arg1,
   ServletRequest arg2, ServletResponse arg3) throws Exception

 

action 里面要选择第一种方法

 

分享到:
评论

相关推荐

    C# 消息通知中心,零耦合

    var notification = new MyCustomNotification { Type = nameof(MyCustomNotification), Data = "Task completed." }; _notificationCenter.Publish(notification); } } ``` 在`NotificationCenterExample`项目...

    linux中断处理之IRQ中断

    // 如果handler == no_irq_type: 说明中断控制器不支持该IRQ线 if (desc->handler == &no_irq_type) return -ENOSYS; // 处理随机数生成相关的中断 if (new->flags & SA_SAMPLE_RANDOM) { rand_initialize_...

    Effective C#

    - **Purpose:** Ensuring that the default state of a value type is valid can prevent errors. - **Example:** Define a `PersonId` struct that uses 0 as the default value. **Item 20: Prefer Immutable ...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    type items in compliance with the Delphi type: SetEnumType(TypeInfo('TMyDelphiEnumType')); - ADD: Added the functions PathLength and PathLengthPos in the module FlexPath. Also added the parameter ...

    CheckMem.pas

    Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run; end. C)、正常的编译、运行应用程序 D)、退出应用程序后,将在应用程序目录下生成报告(如果有漏洞的话,如果没有则不生成...

    多文件上传

    <form enctype="multipart/form-data" method="post" action="doUpload.jsp"> 上传文件: <td><input type="file" name="nfile" /> <input type="button" value="添加" onclick="addFile()"> ...

    (完整word版)C++术语表.doc

    4. abstract data type(ADT)(抽象数据类型):抽象数据类型是一种高级抽象概念,描述了数据的逻辑结构和操作,而不关心具体实现细节。 5. abstraction(抽象):抽象是指对具体事物的一个概括,强调其核心特征,...

    jquery五角星评分效果代码

    ', { type: 'hidden', name: self.opt.scoreName }).appendTo(self); if (self.opt.score && self.opt.score > 0) { self.score.val(self.opt.score); methods.roundStar.call(self, self.opt.score); } if ...

    php.ini-development

    You can redirect all of the output of your scripts to a function. For ; example, if you set output_handler to "mb_output_handler", character ; encoding will be transparently converted to the ...

    Delphi7.1 Update

    TFMTBCDField initializes to size 8 instead of size 4, allowing the system to initialize precision to 7 and size to 8 (Quality Central 5938). * Using a TDBLookupComboBox to display a list of data given...

    网页制作完全手册

    As with any type of programming, writing bug-free, efficient scripts that meet your expectations takes a bit of work. The following sections provide some tips and hints to make that work take less ...

    b2evo-captcha-1.3.1

    //Initialize the captcha object with our configuration options $captcha =& new b2evo_captcha($CAPTCHA_CONFIG); if (isset($_POST['image'])) { switch($captcha->validate_submit($_POST['image'],$_...

    JavaBean实现多文件上传

    String contentType = "Content-Type: text/plain"; // 解析文件头信息 String fileName = fileHeader.substring(fileHeader.indexOf("filename=\"") + 10, fileHeader.indexOf("\"", fileHeader.indexOf("filename...

    应用Dephi 开发佳能照相机API

    ********************* Initialize / Terminate Function ************************ ****************************************************************************** } { ------------------------------------...

    ap6212a0_a33_sc3817r_服务器验证通过_bt已经通了_wifi需要修改配置_需要再次验证_20170626_1549.7z

    -- List of regexpressions describing the interface (if any) that represent tetherable Wifi interfaces. If the device doesn't want to support tethering over Wifi this should be empty. An example ...

    BURNINTEST--硬件检测工具

    Here is a summary of all changes that have been made in each version of BurnInTest. Release 5.3 build 1035 revision 4 WIN32 release 10 November 2008 - Lenovo China specific build. Lenovo system ...

    web 上传直接可用code

    ### Web上传直接可用Code知识点解析 #### 一、概述 本文档提供了一段用于Web页面上传和下载附件的示例代码。此代码适用于简单的图片上传...需要注意的是,在实际项目开发中还需要考虑更多的安全性和性能优化问题。

    ap6212a0_a33_sc3817r_神舟验证版本_借用nvram_ap6210这个配置文件_20170626_1834没有外层目录.7z

    -- List of regexpressions describing the interface (if any) that represent tetherable Wifi interfaces. If the device doesn't want to support tethering over Wifi this should be empty. An example ...

Global site tag (gtag.js) - Google Analytics