`

Could not find action or result

阅读更多

            使用Struts2做自动类型转换的时候,出现“could not find action or result ”错误!可能原因:Action配置错误,struts.xml文件放错位置,类型转换出错……    例如:在页面输入的时候,输入格式不正确,比如要输入逗号(英文的),但是却输成中文的了,就报错了,改过来就没事了。

            不过这种方式并不好,谁都不能保证每次输入都按规定,所以,解决办法是在struts.xml中的action中,添加<result name="input">/input.jsp</result>,如果输入不正确,则显示在输入页面上,提示用户。

分享到:
评论

相关推荐

    JAVA错误文档[归纳].pdf

    2. **警告:Could not find action or result** 这个错误表示在Struts框架中找不到对应的动作映射。确保你的`struts.xml`文件中已经定义了相应的行为映射,例如`&lt;action name="attent" class=...

    JAVA错误文档.pdf

    1. Struts框架错误处理:文档中提到的“Dispatcher initialization failed”和“Could not find action or result”等信息表明Struts框架在初始化过程中遇到了问题。这通常发生在web.xml配置不当,或者struts.xml...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - FIX: The result rectangle incorrectly calculated in the TFlexText.GetRefreshRect method. - FIX: Added FPaintCache.rcPaint cleanup in the TFlexPanel.WMPaint method. Now it is possible to define is ...

    OMG 业务动机模型 V1.3 英文版

    ’ that is, what result(s) the approach is meant to achieve. Sometimes it is difficult to uncover such motivation, especially in operations that have been going on for some time. All too often it ...

    CSharp英语

    Although "Prisoner" does not have a direct correlation with C# programming, it can be related to concepts such as "constrained execution environments" or "jailbreaking" in software development ...

    微软内部资料-SQL性能优化3

    Key range locks are similar to row locks on index keys (whether clustered or not). The locks are placed on individual keys rather than at the node level. The hash value consists of all the key ...

    曲线拟合工具CurveExpert 1.0

    point not being scaled or translated. Fixed. + A constant starting with a decimal (eg, .25) caused CurveExpert to bomb (when defining a user model). This has been fixed so that these constants ...

    php.ini-development

    directive because it is not set or is mistyped, a default value will be used. ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, ...

    a project model for the FreeBSD Project.7z

    This is synonymous with deliverable, that is defined as “any measurable, tangible, verifiable outcome, result or item that must be produced to complete a project or part of a project. Often used ...

    Java邮件开发Fundamentals of the JavaMail API

    the ability to see how many new mail messages they have, are not supported by POP at all. These capabilities are built into programs like Eudora or Microsoft Outlook, which remember things like the ...

    高频词800词版本 342

    在例句中,"Positive thinking and action result in success.",表示积极的思想和行动会导致成功。 11. practical [præktɪkəl]:形容词,意思是实用的或实际的。在例句中,"The HUNCH program has an impact on...

Global site tag (gtag.js) - Google Analytics