{"id":66332,"date":"2021-07-18T11:25:00","date_gmt":"2021-07-18T15:25:00","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/java-struts-lesson-5-processing-requests-with-action-objects-java-short-notes\/"},"modified":"2022-05-10T20:08:40","modified_gmt":"2022-05-11T00:08:40","slug":"java-struts-lesson-5-processing-requests-with-action-objects-java-short-notes","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=66332","title":{"rendered":"Java: Struts: Lesson 5: Processing Requests with Action Objects #Java Short Notes"},"content":{"rendered":"<p><a href='http:\/\/www.justetc.net\/knowledge\/multimedia_training\/displayArticle.php?table=TrainingVideos&amp;articleID=13'>Corresponding Video Tutorial<\/a><br \/><a href='codes\/java_struts\/struts-actions-2.rar'>Code Example for this article<\/a><\/p>\n<ul>\n<li> What happens? When a form is submitted?   <\/li>\n<li> Flow:\n<ol>\n<li> Refer to a x.do from form action       <\/li>\n<li> Check struts-config.xml for action named &#8216;x&#8217;       <\/li>\n<li> Check the corresponding  type (class) of the action, execute the execute method of that action type (really a class where execute is the class method)       <\/li>\n<li> The method will usually return a string using mapping.findForward(&#8220;string&#8221;),   <\/li>\n<li> Then the string will be matched in struts-config.xml file in the global forwards section or as part of the actions. <\/li>\n<li> In forwards a string is mapped to a destination web-page\/action<\/li>\n<\/ol>\n<\/li>\n<li> Steps to write a simple application [one programmer]:\n<ol>\n<li>Create the first web-page with the form [html\/jsp]<\/li>\n<li>Create an action for the action string of this form in struts-config.xml file [mention the type\/class, and corresponding forwards and specify the destination] <\/li>\n<li> The destination of a forward can be another action, forwards can be part of the action or can be placed in the global forwards section, <\/li>\n<li> Write the class and the corresponding execute method<\/li>\n<li>In the execute method you may require to collect the user supplied values\/inputs, process the data and return a string using mapping.findForward based() on your logic\/requirements. <\/li>\n<li>Create the destination pages.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p> From: http:\/\/sitestree.com\/?p=4972<br \/> Categories:Java Short Notes<br \/>Tags:<br \/> Post Data:2013-03-27 11:44:23<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Corresponding Video TutorialCode Example for this article What happens? When a form is submitted? Flow: Refer to a x.do from form action Check struts-config.xml for action named &#8216;x&#8217; Check the corresponding type (class) of the action, execute the execute method of that action type (really a class where execute is the class method) The method &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=66332\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917,1955],"tags":[],"class_list":["post-66332","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","category-struts","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":66437,"url":"http:\/\/bangla.sitestree.com\/?p=66437","url_meta":{"origin":66332,"position":0},"title":"Lesson 6: Handling Request Parameters with Form Beans #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 19, 2021","format":false,"excerpt":"Training Video for this article Code used for this article In jsp pages, you can create forms with html form tag or html:form tagForm Beans concept You can use request.getParameter() to retrieve data from a form from the backend\/server side. Or you can create a bean based on the form\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65910,"url":"http:\/\/bangla.sitestree.com\/?p=65910","url_meta":{"origin":66332,"position":1},"title":"MVC : Struts : Java : Industry Web Application #Java Short Notes","author":"Sayed","date":"July 17, 2021","format":false,"excerpt":"Industries use frameworks for application development quite often. For example: Java concepts like JSP, Servlet, Swing, Bean, JDBC can be used directly to create web-applications but when such applications become big, it becomes difficult to maintain and develop them further. Hence, frameworks like struts are used to develop large web-based\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":68927,"url":"http:\/\/bangla.sitestree.com\/?p=68927","url_meta":{"origin":66332,"position":2},"title":"SAP-CRM-WEBSHOP: How to call custom Function Modules #63","author":"Author-Check- Article-or-Video","date":"August 8, 2021","format":false,"excerpt":"[It's a little tricky - I really should re-write this.] Pre-requisite: knowledge in J2EE, Struts, SAP CRM Webshop, HTML What this article will provide? Just a very upper level description on how to call your own function modules, or SAP built-in function modules that are not called by the standard\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":66427,"url":"http:\/\/bangla.sitestree.com\/?p=66427","url_meta":{"origin":66332,"position":3},"title":"JSF: Lesson &#8211; 3: Controlling Page Navigation in JSF #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 19, 2021","format":false,"excerpt":"Sample application for this article Video Tutorial for this article Pre-requisite: JSF Lesson 1 & 2 Navigation: Two Types: Static: The destination page is fixed Dynamic: The destination page varies with the conditions Static Static: You provide a fixed value for the \"action\" attribute for a JSF event control\/action element\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":69129,"url":"http:\/\/bangla.sitestree.com\/?p=69129","url_meta":{"origin":66332,"position":4},"title":"Struts: Radio Button : Form Bean:JSP #47","author":"Sayed","date":"August 12, 2021","format":false,"excerpt":"Once, I was having some issues with Struts: Radio Button : Form Bean:JSP. The following information helped me. You usually specify the name of the form\/form-bean when you declare a form bean in your struts-config.xml file like: You can use a variable to point to this form using:extract specific properties:print\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":74781,"url":"http:\/\/bangla.sitestree.com\/?p=74781","url_meta":{"origin":66332,"position":5},"title":"Playlist: Anything Java","author":"Sayed","date":"May 31, 2022","format":false,"excerpt":"Playlist: Anything Java: https:\/\/www.youtube.com\/playlist... #SaLearningSchoolShopForSoulSitesTree, #SaLearningSchool, #ShopForSoul, #SitesTree Starting Java training basic file operations in java basic java language concepts bengali javascript debugging data conversion in jsf applications debugging javascript code Docker and Vagrant Optional Java and\/or PHP Platform ejb application with bea weblogic eclipse experiment eclipse ant how to\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/66332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=66332"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/66332\/revisions"}],"predecessor-version":[{"id":74577,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/66332\/revisions\/74577"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66332"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}