{"id":251,"date":"2009-07-25T20:37:09","date_gmt":"2009-07-25T12:37:09","guid":{"rendered":"http:\/\/amjet.dyndns.biz\/blog\/IT\/?p=251"},"modified":"2013-03-01T19:49:55","modified_gmt":"2013-03-01T11:49:55","slug":"ognl-methodfailedexception-method-setqty-failed-for-object-com-amjet-sales-model-order","status":"publish","type":"post","link":"https:\/\/blog.amjet.biz\/IT\/?p=251","title":{"rendered":"ognl.MethodFailedException: Method &#8220;setQty&#8221; failed for object com.amjet.sales.model.Order"},"content":{"rendered":"<p>\u6700\u8fd1\u5beb\u4e00\u500b struts2 action \u50b3\u56de json \u8cc7\u6599\uff0c\u6e2c\u8a66\u6642\u767c\u751f\u4e0a\u9762\u7684\u932f\u8aa4\u3002\u539f\u56e0\u662f\u9801\u9762\u7684 jquery \u5143\u4ef6\u900f\u904e post method \u9001\u51fa &#8220;order.qty&#8221; \u7684\u53c3\u6578\uff0cstruts2 \u7684 interceptor \u5728\u6536\u5230\u53c3\u6578\u5f8c\u60f3\u8981\u8a2d\u5b9a action \u5167 order \u7269\u4ef6\u7684 qty property\uff0c\u4e8b\u5be6\u4e0a\u6211\u4e0d\u9700\u8981 struts2 \u4f5c parse \u53c3\u6578\u53ca\u8a2d\u5b9a\u7269\u4ef6\u7684\u52d5\u4f5c\uff0c\u53c3\u6578\u6211\u60f3\u5728 action \u5167\u7528 request.getParameter() \u81ea\u5df1\u63a5\u53d6\u8655\u7406\u3002\u4ee5\u4e0b\u7684 action \u8a2d\u5b9a\u7bc4\u4f8b\u53ef\u4ee5\u8b93 interceptor \u5ffd\u7565\u958b\u982d\u70ba order \u7684\u53c3\u6578\uff0c\u7531\u65bc struts2 \u9810\u8a2d\u4e5f\u6703\u5ffd\u7565\u958b\u982d\u70ba dojo,struts \u7684\u53c3\u6578\uff0c\u6211\u5011\u4e5f\u4e00\u4f75\u4fdd\u7559\uff1a<\/p>\n<p>&lt;action name=&#8221;updateSell&#8221; method=&#8221;jsonUpdate&#8221;<br \/>\nclass=&#8221;com.amjet.sales.web.action.SellAction&#8221;&gt;<br \/>\n<strong>&lt;interceptor-ref name=&#8221;defaultStack&#8221;&gt;<br \/>\n&lt;param name=&#8221;params.excludeParams&#8221;&gt;^order\\..*,dojo\\..*,^struts\\..*&lt;\/param&gt;<br \/>\n&lt;\/interceptor-ref&gt;<\/strong><br \/>\n&lt;result type=&#8221;json&#8221;&gt;<br \/>\n&lt;param name=&#8221;target&#8221;&gt;jquery&lt;\/param&gt;<br \/>\n&lt;\/result&gt;<br \/>\n&lt;\/action&gt;<\/p>\n<p><strong>[ratings]<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5beb\u4e00\u500b struts2 action \u50b3\u56de json \u8cc7\u6599\uff0c\u6e2c\u8a66\u6642\u767c\u751f\u4e0a\u9762\u7684\u932f\u8aa4\u3002\u539f\u56e0\u662f\u9801\u9762\u7684 jquery \u5143\u4ef6\u900f\u904e post method \u9001\u51fa &#8220;order.qty&#8221; \u7684\u53c3\u6578\uff0cstruts2 \u7684 interceptor \u5728\u6536\u5230\u53c3\u6578\u5f8c\u60f3\u8981\u8a2d\u5b9a action \u5167 order \u7269\u4ef6\u7684 qty property\uff0c\u4e8b\u5be6\u4e0a\u6211\u4e0d\u9700\u8981 struts2 \u4f5c parse \u53c3\u6578\u53ca\u8a2d\u5b9a\u7269\u4ef6\u7684\u52d5\u4f5c\uff0c\u53c3\u6578\u6211\u60f3\u5728 action \u5167\u7528 request.getParameter() \u81ea\u5df1\u63a5\u53d6\u8655\u7406\u3002\u4ee5\u4e0b\u7684 action \u8a2d\u5b9a\u7bc4\u4f8b\u53ef\u4ee5\u8b93 interceptor \u5ffd\u7565\u958b\u982d\u70ba order \u7684\u53c3\u6578\uff0c\u7531\u65bc struts2 \u9810\u8a2d\u4e5f\u6703\u5ffd\u7565\u958b\u982d\u70ba dojo,struts \u7684\u53c3\u6578\uff0c\u6211\u5011\u4e5f\u4e00\u4f75\u4fdd\u7559\uff1a &lt;action name=&#8221;updateSell&#8221; method=&#8221;jsonUpdate&#8221; class=&#8221;com.amjet.sales.web.action.SellAction&#8221;&gt; &lt;interceptor-ref name=&#8221;defaultStack&#8221;&gt; &lt;param name=&#8221;params.excludeParams&#8221;&gt;^order\\..*,dojo\\..*,^struts\\..*&lt;\/param&gt; &lt;\/interceptor-ref&gt; &lt;result type=&#8221;json&#8221;&gt; &lt;param name=&#8221;target&#8221;&gt;jquery&lt;\/param&gt; &lt;\/result&gt; &lt;\/action&gt; [&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":[133,33],"class_list":["post-251","post","type-post","status-publish","format-standard","hentry","category-java","tag-java","tag-struts2"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u6700\u8fd1\u5beb\u4e00\u500b struts2 action \u50b3\u56de json \u8cc7\u6599\uff0c\u6e2c\u8a66\u6642\u767c\u751f\u4e0a\u9762\u7684\u932f\u8aa4\u3002\u539f\u56e0\u662f\u9801\u9762\u7684 jquery \u5143\u4ef6\u900f\u904e post method \u9001\u51fa &quot;order.qty&quot; \u7684\u53c3\u6578\uff0cstruts2 \u7684 interceptor \u5728\u6536\u5230\u53c3\u6578\u5f8c\u60f3\u8981\u8a2d\u5b9a action \u5167 order \u7269\u4ef6\u7684 qty property\uff0c\u4e8b\u5be6\u4e0a\u6211\u4e0d\u9700\u8981 struts2 \u4f5c parse \u53c3\u6578\u53ca\u8a2d\u5b9a\u7269\u4ef6\u7684\u52d5\u4f5c\uff0c\u53c3\u6578\u6211\u60f3\u5728 action \u5167\u7528 request.getParameter() \u81ea\u5df1\u63a5\u53d6\u8655\u7406\u3002\u4ee5\u4e0b\u7684 action \u8a2d\u5b9a\u7bc4\u4f8b\u53ef\u4ee5\u8b93 interceptor \u5ffd\u7565\u958b\u982d\u70ba order \u7684\u53c3\u6578\uff0c\u7531\u65bc struts2 \u9810\u8a2d\u4e5f\u6703\u5ffd\u7565\u958b\u982d\u70ba dojo,struts \u7684\u53c3\u6578\uff0c\u6211\u5011\u4e5f\u4e00\u4f75\u4fdd\u7559\uff1a ^order\\..*,dojo\\..*,^struts\\..* jquery\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"vincent\"\/>\n\t<meta name=\"keywords\" content=\"java,struts2\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/blog.amjet.biz\/IT\/?p=251\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"AmJet IT Blog | for IT professionals\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"ognl.MethodFailedException: Method \u201csetQty\u201d failed for object com.amjet.sales.model.Order | AmJet IT Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"\u6700\u8fd1\u5beb\u4e00\u500b struts2 action \u50b3\u56de json \u8cc7\u6599\uff0c\u6e2c\u8a66\u6642\u767c\u751f\u4e0a\u9762\u7684\u932f\u8aa4\u3002\u539f\u56e0\u662f\u9801\u9762\u7684 jquery \u5143\u4ef6\u900f\u904e post method \u9001\u51fa &quot;order.qty&quot; \u7684\u53c3\u6578\uff0cstruts2 \u7684 interceptor \u5728\u6536\u5230\u53c3\u6578\u5f8c\u60f3\u8981\u8a2d\u5b9a action \u5167 order \u7269\u4ef6\u7684 qty property\uff0c\u4e8b\u5be6\u4e0a\u6211\u4e0d\u9700\u8981 struts2 \u4f5c parse \u53c3\u6578\u53ca\u8a2d\u5b9a\u7269\u4ef6\u7684\u52d5\u4f5c\uff0c\u53c3\u6578\u6211\u60f3\u5728 action \u5167\u7528 request.getParameter() \u81ea\u5df1\u63a5\u53d6\u8655\u7406\u3002\u4ee5\u4e0b\u7684 action \u8a2d\u5b9a\u7bc4\u4f8b\u53ef\u4ee5\u8b93 interceptor \u5ffd\u7565\u958b\u982d\u70ba order \u7684\u53c3\u6578\uff0c\u7531\u65bc struts2 \u9810\u8a2d\u4e5f\u6703\u5ffd\u7565\u958b\u982d\u70ba dojo,struts \u7684\u53c3\u6578\uff0c\u6211\u5011\u4e5f\u4e00\u4f75\u4fdd\u7559\uff1a ^order\\..*,dojo\\..*,^struts\\..* jquery\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/blog.amjet.biz\/IT\/?p=251\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2009-07-25T12:37:09+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2013-03-01T11:49:55+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"ognl.MethodFailedException: Method \u201csetQty\u201d failed for object com.amjet.sales.model.Order | AmJet IT Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u6700\u8fd1\u5beb\u4e00\u500b struts2 action \u50b3\u56de json \u8cc7\u6599\uff0c\u6e2c\u8a66\u6642\u767c\u751f\u4e0a\u9762\u7684\u932f\u8aa4\u3002\u539f\u56e0\u662f\u9801\u9762\u7684 jquery \u5143\u4ef6\u900f\u904e post method \u9001\u51fa &quot;order.qty&quot; \u7684\u53c3\u6578\uff0cstruts2 \u7684 interceptor \u5728\u6536\u5230\u53c3\u6578\u5f8c\u60f3\u8981\u8a2d\u5b9a action \u5167 order \u7269\u4ef6\u7684 qty property\uff0c\u4e8b\u5be6\u4e0a\u6211\u4e0d\u9700\u8981 struts2 \u4f5c parse \u53c3\u6578\u53ca\u8a2d\u5b9a\u7269\u4ef6\u7684\u52d5\u4f5c\uff0c\u53c3\u6578\u6211\u60f3\u5728 action \u5167\u7528 request.getParameter() \u81ea\u5df1\u63a5\u53d6\u8655\u7406\u3002\u4ee5\u4e0b\u7684 action \u8a2d\u5b9a\u7bc4\u4f8b\u53ef\u4ee5\u8b93 interceptor \u5ffd\u7565\u958b\u982d\u70ba order \u7684\u53c3\u6578\uff0c\u7531\u65bc struts2 \u9810\u8a2d\u4e5f\u6703\u5ffd\u7565\u958b\u982d\u70ba dojo,struts \u7684\u53c3\u6578\uff0c\u6211\u5011\u4e5f\u4e00\u4f75\u4fdd\u7559\uff1a ^order\\..*,dojo\\..*,^struts\\..* jquery\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=251#article\",\"name\":\"ognl.MethodFailedException: Method \\u201csetQty\\u201d failed for object com.amjet.sales.model.Order | AmJet IT Blog\",\"headline\":\"ognl.MethodFailedException: Method &#8220;setQty&#8221; failed for object com.amjet.sales.model.Order\",\"author\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#organization\"},\"datePublished\":\"2009-07-25T20:37:09+08:00\",\"dateModified\":\"2013-03-01T19:49:55+08:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=251#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=251#webpage\"},\"articleSection\":\"Java, Java, Struts2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=251#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=5#listItem\",\"name\":\"Developer\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=5#listItem\",\"position\":2,\"name\":\"Developer\",\"item\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=5\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=8#listItem\",\"name\":\"Java\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=8#listItem\",\"position\":3,\"name\":\"Java\",\"item\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=8\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=251#listItem\",\"name\":\"ognl.MethodFailedException: Method &#8220;setQty&#8221; failed for object com.amjet.sales.model.Order\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=5#listItem\",\"name\":\"Developer\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=251#listItem\",\"position\":4,\"name\":\"ognl.MethodFailedException: Method &#8220;setQty&#8221; failed for object com.amjet.sales.model.Order\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=8#listItem\",\"name\":\"Java\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#organization\",\"name\":\"AmJet Digital\",\"description\":\"for IT professionals\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2\",\"name\":\"vincent\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=251#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8c6bcd6e8e7e1c9bce74184354da4a5c294d71657c7abc161841c4799d1b1a46?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"vincent\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=251#webpage\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=251\",\"name\":\"ognl.MethodFailedException: Method \\u201csetQty\\u201d failed for object com.amjet.sales.model.Order | AmJet IT Blog\",\"description\":\"\\u6700\\u8fd1\\u5beb\\u4e00\\u500b struts2 action \\u50b3\\u56de json \\u8cc7\\u6599\\uff0c\\u6e2c\\u8a66\\u6642\\u767c\\u751f\\u4e0a\\u9762\\u7684\\u932f\\u8aa4\\u3002\\u539f\\u56e0\\u662f\\u9801\\u9762\\u7684 jquery \\u5143\\u4ef6\\u900f\\u904e post method \\u9001\\u51fa \\\"order.qty\\\" \\u7684\\u53c3\\u6578\\uff0cstruts2 \\u7684 interceptor \\u5728\\u6536\\u5230\\u53c3\\u6578\\u5f8c\\u60f3\\u8981\\u8a2d\\u5b9a action \\u5167 order \\u7269\\u4ef6\\u7684 qty property\\uff0c\\u4e8b\\u5be6\\u4e0a\\u6211\\u4e0d\\u9700\\u8981 struts2 \\u4f5c parse \\u53c3\\u6578\\u53ca\\u8a2d\\u5b9a\\u7269\\u4ef6\\u7684\\u52d5\\u4f5c\\uff0c\\u53c3\\u6578\\u6211\\u60f3\\u5728 action \\u5167\\u7528 request.getParameter() \\u81ea\\u5df1\\u63a5\\u53d6\\u8655\\u7406\\u3002\\u4ee5\\u4e0b\\u7684 action \\u8a2d\\u5b9a\\u7bc4\\u4f8b\\u53ef\\u4ee5\\u8b93 interceptor \\u5ffd\\u7565\\u958b\\u982d\\u70ba order \\u7684\\u53c3\\u6578\\uff0c\\u7531\\u65bc struts2 \\u9810\\u8a2d\\u4e5f\\u6703\\u5ffd\\u7565\\u958b\\u982d\\u70ba dojo,struts \\u7684\\u53c3\\u6578\\uff0c\\u6211\\u5011\\u4e5f\\u4e00\\u4f75\\u4fdd\\u7559\\uff1a ^order\\\\..*,dojo\\\\..*,^struts\\\\..* jquery\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=251#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\"},\"datePublished\":\"2009-07-25T20:37:09+08:00\",\"dateModified\":\"2013-03-01T19:49:55+08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#website\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/\",\"name\":\"AmJet IT Blog\",\"description\":\"for IT professionals\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"ognl.MethodFailedException: Method \u201csetQty\u201d failed for object com.amjet.sales.model.Order | AmJet IT Blog","description":"\u6700\u8fd1\u5beb\u4e00\u500b struts2 action \u50b3\u56de json \u8cc7\u6599\uff0c\u6e2c\u8a66\u6642\u767c\u751f\u4e0a\u9762\u7684\u932f\u8aa4\u3002\u539f\u56e0\u662f\u9801\u9762\u7684 jquery \u5143\u4ef6\u900f\u904e post method \u9001\u51fa \"order.qty\" \u7684\u53c3\u6578\uff0cstruts2 \u7684 interceptor \u5728\u6536\u5230\u53c3\u6578\u5f8c\u60f3\u8981\u8a2d\u5b9a action \u5167 order \u7269\u4ef6\u7684 qty property\uff0c\u4e8b\u5be6\u4e0a\u6211\u4e0d\u9700\u8981 struts2 \u4f5c parse \u53c3\u6578\u53ca\u8a2d\u5b9a\u7269\u4ef6\u7684\u52d5\u4f5c\uff0c\u53c3\u6578\u6211\u60f3\u5728 action \u5167\u7528 request.getParameter() \u81ea\u5df1\u63a5\u53d6\u8655\u7406\u3002\u4ee5\u4e0b\u7684 action \u8a2d\u5b9a\u7bc4\u4f8b\u53ef\u4ee5\u8b93 interceptor \u5ffd\u7565\u958b\u982d\u70ba order \u7684\u53c3\u6578\uff0c\u7531\u65bc struts2 \u9810\u8a2d\u4e5f\u6703\u5ffd\u7565\u958b\u982d\u70ba dojo,struts \u7684\u53c3\u6578\uff0c\u6211\u5011\u4e5f\u4e00\u4f75\u4fdd\u7559\uff1a ^order\\..*,dojo\\..*,^struts\\..* jquery","canonical_url":"https:\/\/blog.amjet.biz\/IT\/?p=251","robots":"max-image-preview:large","keywords":"java,struts2","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.amjet.biz\/IT\/?p=251#article","name":"ognl.MethodFailedException: Method \u201csetQty\u201d failed for object com.amjet.sales.model.Order | AmJet IT Blog","headline":"ognl.MethodFailedException: Method &#8220;setQty&#8221; failed for object com.amjet.sales.model.Order","author":{"@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author"},"publisher":{"@id":"https:\/\/blog.amjet.biz\/IT\/#organization"},"datePublished":"2009-07-25T20:37:09+08:00","dateModified":"2013-03-01T19:49:55+08:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/blog.amjet.biz\/IT\/?p=251#webpage"},"isPartOf":{"@id":"https:\/\/blog.amjet.biz\/IT\/?p=251#webpage"},"articleSection":"Java, Java, Struts2"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.amjet.biz\/IT\/?p=251#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT#listItem","position":1,"name":"Home","item":"https:\/\/blog.amjet.biz\/IT","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=5#listItem","name":"Developer"}},{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=5#listItem","position":2,"name":"Developer","item":"https:\/\/blog.amjet.biz\/IT\/?cat=5","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=8#listItem","name":"Java"},"previousItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=8#listItem","position":3,"name":"Java","item":"https:\/\/blog.amjet.biz\/IT\/?cat=8","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?p=251#listItem","name":"ognl.MethodFailedException: Method &#8220;setQty&#8221; failed for object com.amjet.sales.model.Order"},"previousItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=5#listItem","name":"Developer"}},{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?p=251#listItem","position":4,"name":"ognl.MethodFailedException: Method &#8220;setQty&#8221; failed for object com.amjet.sales.model.Order","previousItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=8#listItem","name":"Java"}}]},{"@type":"Organization","@id":"https:\/\/blog.amjet.biz\/IT\/#organization","name":"AmJet Digital","description":"for IT professionals","url":"https:\/\/blog.amjet.biz\/IT\/"},{"@type":"Person","@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author","url":"https:\/\/blog.amjet.biz\/IT\/?author=2","name":"vincent","image":{"@type":"ImageObject","@id":"https:\/\/blog.amjet.biz\/IT\/?p=251#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/8c6bcd6e8e7e1c9bce74184354da4a5c294d71657c7abc161841c4799d1b1a46?s=96&d=mm&r=g","width":96,"height":96,"caption":"vincent"}},{"@type":"WebPage","@id":"https:\/\/blog.amjet.biz\/IT\/?p=251#webpage","url":"https:\/\/blog.amjet.biz\/IT\/?p=251","name":"ognl.MethodFailedException: Method \u201csetQty\u201d failed for object com.amjet.sales.model.Order | AmJet IT Blog","description":"\u6700\u8fd1\u5beb\u4e00\u500b struts2 action \u50b3\u56de json \u8cc7\u6599\uff0c\u6e2c\u8a66\u6642\u767c\u751f\u4e0a\u9762\u7684\u932f\u8aa4\u3002\u539f\u56e0\u662f\u9801\u9762\u7684 jquery \u5143\u4ef6\u900f\u904e post method \u9001\u51fa \"order.qty\" \u7684\u53c3\u6578\uff0cstruts2 \u7684 interceptor \u5728\u6536\u5230\u53c3\u6578\u5f8c\u60f3\u8981\u8a2d\u5b9a action \u5167 order \u7269\u4ef6\u7684 qty property\uff0c\u4e8b\u5be6\u4e0a\u6211\u4e0d\u9700\u8981 struts2 \u4f5c parse \u53c3\u6578\u53ca\u8a2d\u5b9a\u7269\u4ef6\u7684\u52d5\u4f5c\uff0c\u53c3\u6578\u6211\u60f3\u5728 action \u5167\u7528 request.getParameter() \u81ea\u5df1\u63a5\u53d6\u8655\u7406\u3002\u4ee5\u4e0b\u7684 action \u8a2d\u5b9a\u7bc4\u4f8b\u53ef\u4ee5\u8b93 interceptor \u5ffd\u7565\u958b\u982d\u70ba order \u7684\u53c3\u6578\uff0c\u7531\u65bc struts2 \u9810\u8a2d\u4e5f\u6703\u5ffd\u7565\u958b\u982d\u70ba dojo,struts \u7684\u53c3\u6578\uff0c\u6211\u5011\u4e5f\u4e00\u4f75\u4fdd\u7559\uff1a ^order\\..*,dojo\\..*,^struts\\..* jquery","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/blog.amjet.biz\/IT\/#website"},"breadcrumb":{"@id":"https:\/\/blog.amjet.biz\/IT\/?p=251#breadcrumblist"},"author":{"@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author"},"creator":{"@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author"},"datePublished":"2009-07-25T20:37:09+08:00","dateModified":"2013-03-01T19:49:55+08:00"},{"@type":"WebSite","@id":"https:\/\/blog.amjet.biz\/IT\/#website","url":"https:\/\/blog.amjet.biz\/IT\/","name":"AmJet IT Blog","description":"for IT professionals","inLanguage":"en-US","publisher":{"@id":"https:\/\/blog.amjet.biz\/IT\/#organization"}}]},"og:locale":"en_US","og:site_name":"AmJet IT Blog | for IT professionals","og:type":"article","og:title":"ognl.MethodFailedException: Method \u201csetQty\u201d failed for object com.amjet.sales.model.Order | AmJet IT Blog","og:description":"\u6700\u8fd1\u5beb\u4e00\u500b struts2 action \u50b3\u56de json \u8cc7\u6599\uff0c\u6e2c\u8a66\u6642\u767c\u751f\u4e0a\u9762\u7684\u932f\u8aa4\u3002\u539f\u56e0\u662f\u9801\u9762\u7684 jquery \u5143\u4ef6\u900f\u904e post method \u9001\u51fa &quot;order.qty&quot; \u7684\u53c3\u6578\uff0cstruts2 \u7684 interceptor \u5728\u6536\u5230\u53c3\u6578\u5f8c\u60f3\u8981\u8a2d\u5b9a action \u5167 order \u7269\u4ef6\u7684 qty property\uff0c\u4e8b\u5be6\u4e0a\u6211\u4e0d\u9700\u8981 struts2 \u4f5c parse \u53c3\u6578\u53ca\u8a2d\u5b9a\u7269\u4ef6\u7684\u52d5\u4f5c\uff0c\u53c3\u6578\u6211\u60f3\u5728 action \u5167\u7528 request.getParameter() \u81ea\u5df1\u63a5\u53d6\u8655\u7406\u3002\u4ee5\u4e0b\u7684 action \u8a2d\u5b9a\u7bc4\u4f8b\u53ef\u4ee5\u8b93 interceptor \u5ffd\u7565\u958b\u982d\u70ba order \u7684\u53c3\u6578\uff0c\u7531\u65bc struts2 \u9810\u8a2d\u4e5f\u6703\u5ffd\u7565\u958b\u982d\u70ba dojo,struts \u7684\u53c3\u6578\uff0c\u6211\u5011\u4e5f\u4e00\u4f75\u4fdd\u7559\uff1a ^order\\..*,dojo\\..*,^struts\\..* jquery","og:url":"https:\/\/blog.amjet.biz\/IT\/?p=251","article:published_time":"2009-07-25T12:37:09+00:00","article:modified_time":"2013-03-01T11:49:55+00:00","twitter:card":"summary","twitter:title":"ognl.MethodFailedException: Method \u201csetQty\u201d failed for object com.amjet.sales.model.Order | AmJet IT Blog","twitter:description":"\u6700\u8fd1\u5beb\u4e00\u500b struts2 action \u50b3\u56de json \u8cc7\u6599\uff0c\u6e2c\u8a66\u6642\u767c\u751f\u4e0a\u9762\u7684\u932f\u8aa4\u3002\u539f\u56e0\u662f\u9801\u9762\u7684 jquery \u5143\u4ef6\u900f\u904e post method \u9001\u51fa &quot;order.qty&quot; \u7684\u53c3\u6578\uff0cstruts2 \u7684 interceptor \u5728\u6536\u5230\u53c3\u6578\u5f8c\u60f3\u8981\u8a2d\u5b9a action \u5167 order \u7269\u4ef6\u7684 qty property\uff0c\u4e8b\u5be6\u4e0a\u6211\u4e0d\u9700\u8981 struts2 \u4f5c parse \u53c3\u6578\u53ca\u8a2d\u5b9a\u7269\u4ef6\u7684\u52d5\u4f5c\uff0c\u53c3\u6578\u6211\u60f3\u5728 action \u5167\u7528 request.getParameter() \u81ea\u5df1\u63a5\u53d6\u8655\u7406\u3002\u4ee5\u4e0b\u7684 action \u8a2d\u5b9a\u7bc4\u4f8b\u53ef\u4ee5\u8b93 interceptor \u5ffd\u7565\u958b\u982d\u70ba order \u7684\u53c3\u6578\uff0c\u7531\u65bc struts2 \u9810\u8a2d\u4e5f\u6703\u5ffd\u7565\u958b\u982d\u70ba dojo,struts \u7684\u53c3\u6578\uff0c\u6211\u5011\u4e5f\u4e00\u4f75\u4fdd\u7559\uff1a ^order\\..*,dojo\\..*,^struts\\..* jquery"},"aioseo_meta_data":{"post_id":"251","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-24 02:26:56","updated":"2025-06-05 09:07:56","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.amjet.biz\/IT\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.amjet.biz\/IT\/?cat=5\" title=\"Developer\">Developer<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.amjet.biz\/IT\/?cat=8\" title=\"Java\">Java<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tognl.MethodFailedException: Method \u201csetQty\u201d failed for object com.amjet.sales.model.Order\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/blog.amjet.biz\/IT"},{"label":"Developer","link":"https:\/\/blog.amjet.biz\/IT\/?cat=5"},{"label":"Java","link":"https:\/\/blog.amjet.biz\/IT\/?cat=8"},{"label":"ognl.MethodFailedException: Method &#8220;setQty&#8221; failed for object com.amjet.sales.model.Order","link":"https:\/\/blog.amjet.biz\/IT\/?p=251"}],"_links":{"self":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/251","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=251"}],"version-history":[{"count":5,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/251\/revisions"}],"predecessor-version":[{"id":687,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/251\/revisions\/687"}],"wp:attachment":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}