{"id":41,"date":"2008-03-13T00:15:55","date_gmt":"2008-03-12T16:15:55","guid":{"rendered":"http:\/\/amjet.dyndns.biz\/blog\/IT\/?p=41"},"modified":"2013-03-01T19:50:31","modified_gmt":"2013-03-01T11:50:31","slug":"error-orgapachestruts2portletdispatcherjsr168dispatcher-could-not-find-action","status":"publish","type":"post","link":"https:\/\/blog.amjet.biz\/IT\/?p=41","title":{"rendered":"ERROR [org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher] Could not find action"},"content":{"rendered":"<p>\u4f9d\u64da\u8a0a\u606f\u4f86\u770b\uff0c\u6700\u5927\u7684\u53ef\u80fd\u662f struts.xml \u6c92\u6709\u5b9a\u7fa9\u5230 action\uff0c\u4f46\u662f\u6211 struts.xml \u4e00\u500b\u5b57\u4e00\u500b\u5b57\u7684\u6aa2\u67e5\u7684\u5341\u5e7e\u6b21\uff0c\u6015 class \u6253\u932f\u9084\u7279\u5225\u5f9e source \u6a94 copy \/ paste \u4e0a\u53bb\u9084\u662f\u932f\uff0c\u6700\u5f8c\u627e\u5230\u7684\u539f\u56e0\u662f form tag \u548c action setter \u8cc7\u6599\u578b\u614b\u7684\u7684\u554f\u984c\u3002<\/p>\n<p>\u932f\u8aa4\u793a\u7bc4\u4e00\u3001<\/p>\n<p>&lt;s:textarea name=&#8221;person.description&#8221;\/&gt;<\/p>\n<p>person \u662f hibernate tool \u7522\u751f\u7684\u7269\u4ef6\uff0cdescription \u662f SQL 2000 ntext \u6b04\u4f4d\uff0cjava \u8cc7\u6599\u578b\u614b\u662f java.sql.Clob\uff0c\u6c92\u6709\u8f49\u63db\u578b\u614b\u76f4\u63a5\u585e\u5165\u7269\u4ef6\u5c31\u6703 Could not find action \u3002<\/p>\n<p>\u932f\u8aa4\u793a\u7bc4\u4e8c\u3001<\/p>\n<p>&lt;s:head theme=&#8221;ajax&#8221;\/&gt;<\/p>\n<p>&lt;s:datetimepicker name=&#8221;person.birthday&#8221;\/&gt;<\/p>\n<p>birthday \u662f SQL 2000 datetime \u6b04\u4f4d\uff0cjava \u8cc7\u6599\u578b\u614b\u662f java.util.Date\uff0c\u540c\u6a23\u7684\u76f4\u63a5\u585e\u9032\u7269\u4ef6\u7684\u7d50\u679c\u548c\u4e0a\u500b\u4f8b\u5b50\u4e00\u6a23\uff0cstruts datetimepicker tag \u6587\u4ef6\u6709\u63d0\u5230\u8981\u5148\u7528 SimpleDateFormat \u8655\u7406 submit \u7684\u8cc7\u6599\u3002<\/p>\n<p><strong>2008.11.11 \u88dc\u5145<\/strong><\/p>\n<p>\u4e0d\u8ad6\u662f portlet \u6216 struts web application \u958b\u767c\u90fd\u6709\u6a5f\u6703\u9047\u5230 Could not find action \u6216 There is no Action mapped for action \u7684\u554f\u984c\uff0c\u76ee\u524d\u6574\u7406 troubleshooting \u7684 checklist \u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>struts \u7684 include \u6a94\u6848\u662f\u5426\u90fd\u6709\u6b63\u78ba include \u5230\uff0c\u662f\u5426\u6a94\u540d\u6253\u932f\u4e86<\/li>\n<li>action \u662f\u5426\u6709 compile error \u6216\u8cc7\u6599\u578b\u614b\u8f49\u63db\u554f\u984c<\/li>\n<li>\u7576 struts \u7684 package \u6709\u5b9a\u7fa9 namespace \u6642\u8acb\u4f7f\u7528\u7d55\u5c0d\u8def\u5f91\uff0c\u5c11\u7528\u76f8\u5c0d\u8def\u5f91\uff0c\u6703\u6e1b\u5c11\u5f88\u591a\u7684\u56f0\u64fe<\/li>\n<\/ul>\n<p><strong>[ratings]<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f9d\u64da\u8a0a\u606f\u4f86\u770b\uff0c\u6700\u5927\u7684\u53ef\u80fd\u662f struts.xml \u6c92\u6709\u5b9a\u7fa9\u5230 action\uff0c\u4f46\u662f\u6211 struts.xml \u4e00\u500b\u5b57\u4e00\u500b\u5b57\u7684\u6aa2\u67e5\u7684\u5341\u5e7e\u6b21\uff0c\u6015 class \u6253\u932f\u9084\u7279\u5225\u5f9e source \u6a94 copy \/ paste \u4e0a\u53bb\u9084\u662f\u932f\uff0c\u6700\u5f8c\u627e\u5230\u7684\u539f\u56e0\u662f form tag \u548c action setter \u8cc7\u6599\u578b\u614b\u7684\u7684\u554f\u984c\u3002 \u932f\u8aa4\u793a\u7bc4\u4e00\u3001 &lt;s:textarea name=&#8221;person.description&#8221;\/&gt; person \u662f hibernate tool \u7522\u751f\u7684\u7269\u4ef6\uff0cdescription \u662f SQL 2000 ntext \u6b04\u4f4d\uff0cjava \u8cc7\u6599\u578b\u614b\u662f java.sql.Clob\uff0c\u6c92\u6709\u8f49\u63db\u578b\u614b\u76f4\u63a5\u585e\u5165\u7269\u4ef6\u5c31\u6703 Could not find action \u3002 \u932f\u8aa4\u793a\u7bc4\u4e8c\u3001 &lt;s:head theme=&#8221;ajax&#8221;\/&gt; &lt;s:datetimepicker name=&#8221;person.birthday&#8221;\/&gt; birthday \u662f SQL 2000 datetime \u6b04\u4f4d\uff0cjava \u8cc7\u6599\u578b\u614b\u662f java.util.Date\uff0c\u540c\u6a23\u7684\u76f4\u63a5\u585e\u9032\u7269\u4ef6\u7684\u7d50\u679c\u548c\u4e0a\u500b\u4f8b\u5b50\u4e00\u6a23\uff0cstruts datetimepicker tag [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[33],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-java","tag-struts2"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41"}],"version-history":[{"count":6,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":730,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions\/730"}],"wp:attachment":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}