SlideShare ist ein Scribd-Unternehmen logo
1 von 27
Dynamic Struts Forms By Sharad Acharya Cabela’s Inc Aug, 10 2005
Prerequisite ,[object Object],[object Object],[object Object],[object Object]
Goals ,[object Object],[object Object],[object Object],[object Object],[object Object]
Struts ,[object Object],[object Object],[object Object],[object Object],[object Object]
Struts benefits  ,[object Object],[object Object],[object Object],[object Object]
Struts liabilities ,[object Object],[object Object],[object Object]
Struts = MVC ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Action Form ,[object Object],[object Object],[object Object],[object Object],[object Object]
Action Form in action <html:form action=&quot;/ address &quot;> <br>Name <html:text property=“ name &quot;/> … … … … …  <br> <html:submit value=”Submit” />  <html:reset value=”Reset” /> </html:form> public class AddressForm extends ActionForm { String  name ; … … … … . public String getName () {return name;} … … … …  public void seName (String name) {this.name = name;} } <form-beans> <form-bean name=&quot;addressForm&quot; type=&quot;AddressForm&quot; /> … … … …  <form-beans> <action-mappings> <action  path=&quot;/ address  &quot; type=“AddressAction&quot; name=&quot; addressForm &quot;  <forward name=&quot;success&quot; path=&quot;thankyou.jsp&quot;></forward> </action> … … … … </action-mappings> Name
Action Form ,[object Object],[object Object],[object Object],[object Object]
Dyna Action Form ,[object Object],[object Object],[object Object]
Dyna Action Form in action <html:form action=&quot;/ address &quot;> <br>Fist Name <html:text property=“ name &quot;/> … … … … …  <br> <html:submit value=”Submit” />  <html:reset value=”Reset” /> </html:form> <form-beans> <form-bean name=&quot;dynaAdrForm&quot; type=&quot;DynaAddressForm&quot; > <form-property name=&quot; name &quot; type=&quot;java.lang.String&quot; /> … … … …  </form-bean > … … … …  <form-beans> <action-mappings> <action path=&quot;/ address &quot; type=“AddressAction“ name=&quot;dynaAdrForm&quot;  <forward name=&quot;success&quot; path=&quot;thankyou.jsp&quot;></forward> </action> … … … … </action-mappings> public class DynaAddressForm extends DynaActionForm { //overridden methods not shown… } Name
Dyna Action Form ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Dynamic Form ,[object Object],[object Object],[object Object],[object Object]
Dynamic Form ,[object Object],[object Object],[object Object]
A Mini Application
Starting Up … … …  <html:form action=&quot; index &quot;> <P>Click next to enter address</P> <html:submit value=&quot;Next&quot;> </html:submit> </html:form> ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Setting the Map ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],… … …  <html:form action=&quot; index &quot;> <P>Click next to enter address</P> <html:submit value=&quot;Next&quot;> </html:submit> </html:form>
Displaying the Map Contents ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Editing Form Fields ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Populating ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Environments ,[object Object],[object Object],[object Object],[object Object]
Known Use (1/2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Known Use (2/2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
References ,[object Object],[object Object],[object Object],[object Object],[object Object]
Feedback ,[object Object],[object Object],[object Object]
Thank You! Thank you for your participation. Hope to see you in future!

Weitere ähnliche Inhalte

Ähnlich wie Dynamic Struts Forms

Interoperable Web Services with JAX-WS
Interoperable Web Services with JAX-WSInteroperable Web Services with JAX-WS
Interoperable Web Services with JAX-WSCarol McDonald
 
Rugalytics | Ruby Manor Nov 2008
Rugalytics | Ruby Manor Nov 2008Rugalytics | Ruby Manor Nov 2008
Rugalytics | Ruby Manor Nov 2008Rob
 
Introduction to Prototype JS Framework
Introduction to Prototype JS FrameworkIntroduction to Prototype JS Framework
Introduction to Prototype JS FrameworkMohd Imran
 
Introduction to AJAX and DWR
Introduction to AJAX and DWRIntroduction to AJAX and DWR
Introduction to AJAX and DWRSweNz FixEd
 
Strutsjspservlet
Strutsjspservlet Strutsjspservlet
Strutsjspservlet Sagar Nakul
 
Strutsjspservlet
Strutsjspservlet Strutsjspservlet
Strutsjspservlet Sagar Nakul
 
Facebook Development with Zend Framework
Facebook Development with Zend FrameworkFacebook Development with Zend Framework
Facebook Development with Zend FrameworkBrett Harris
 
AJAX Workshop Notes
AJAX Workshop NotesAJAX Workshop Notes
AJAX Workshop NotesPamela Fox
 
Developing A Real World Logistic Application With Oracle Application - UKOUG ...
Developing A Real World Logistic Application With Oracle Application - UKOUG ...Developing A Real World Logistic Application With Oracle Application - UKOUG ...
Developing A Real World Logistic Application With Oracle Application - UKOUG ...Roel Hartman
 
Struts 2 + Spring
Struts 2 + SpringStruts 2 + Spring
Struts 2 + SpringBryan Hsueh
 

Ähnlich wie Dynamic Struts Forms (20)

Interoperable Web Services with JAX-WS
Interoperable Web Services with JAX-WSInteroperable Web Services with JAX-WS
Interoperable Web Services with JAX-WS
 
Struts Overview
Struts OverviewStruts Overview
Struts Overview
 
Rugalytics | Ruby Manor Nov 2008
Rugalytics | Ruby Manor Nov 2008Rugalytics | Ruby Manor Nov 2008
Rugalytics | Ruby Manor Nov 2008
 
Introduction to Prototype JS Framework
Introduction to Prototype JS FrameworkIntroduction to Prototype JS Framework
Introduction to Prototype JS Framework
 
Introduction to AJAX and DWR
Introduction to AJAX and DWRIntroduction to AJAX and DWR
Introduction to AJAX and DWR
 
Struts,Jsp,Servlet
Struts,Jsp,ServletStruts,Jsp,Servlet
Struts,Jsp,Servlet
 
Strutsjspservlet
Strutsjspservlet Strutsjspservlet
Strutsjspservlet
 
Strutsjspservlet
Strutsjspservlet Strutsjspservlet
Strutsjspservlet
 
java ee 6 Petcatalog
java ee 6 Petcatalogjava ee 6 Petcatalog
java ee 6 Petcatalog
 
Facebook Development with Zend Framework
Facebook Development with Zend FrameworkFacebook Development with Zend Framework
Facebook Development with Zend Framework
 
Ajax ppt
Ajax pptAjax ppt
Ajax ppt
 
Ajax Ppt
Ajax PptAjax Ppt
Ajax Ppt
 
AJAX Workshop Notes
AJAX Workshop NotesAJAX Workshop Notes
AJAX Workshop Notes
 
Spring Surf 101
Spring Surf 101Spring Surf 101
Spring Surf 101
 
Merb jQuery
Merb jQueryMerb jQuery
Merb jQuery
 
Developing A Real World Logistic Application With Oracle Application - UKOUG ...
Developing A Real World Logistic Application With Oracle Application - UKOUG ...Developing A Real World Logistic Application With Oracle Application - UKOUG ...
Developing A Real World Logistic Application With Oracle Application - UKOUG ...
 
Struts 2 + Spring
Struts 2 + SpringStruts 2 + Spring
Struts 2 + Spring
 
JavaScript
JavaScriptJavaScript
JavaScript
 
GWT
GWTGWT
GWT
 
Gooogle Web Toolkit
Gooogle Web ToolkitGooogle Web Toolkit
Gooogle Web Toolkit
 

Dynamic Struts Forms

  • 1. Dynamic Struts Forms By Sharad Acharya Cabela’s Inc Aug, 10 2005
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9. Action Form in action <html:form action=&quot;/ address &quot;> <br>Name <html:text property=“ name &quot;/> … … … … … <br> <html:submit value=”Submit” /> <html:reset value=”Reset” /> </html:form> public class AddressForm extends ActionForm { String name ; … … … … . public String getName () {return name;} … … … … public void seName (String name) {this.name = name;} } <form-beans> <form-bean name=&quot;addressForm&quot; type=&quot;AddressForm&quot; /> … … … … <form-beans> <action-mappings> <action path=&quot;/ address &quot; type=“AddressAction&quot; name=&quot; addressForm &quot; <forward name=&quot;success&quot; path=&quot;thankyou.jsp&quot;></forward> </action> … … … … </action-mappings> Name
  • 10.
  • 11.
  • 12. Dyna Action Form in action <html:form action=&quot;/ address &quot;> <br>Fist Name <html:text property=“ name &quot;/> … … … … … <br> <html:submit value=”Submit” /> <html:reset value=”Reset” /> </html:form> <form-beans> <form-bean name=&quot;dynaAdrForm&quot; type=&quot;DynaAddressForm&quot; > <form-property name=&quot; name &quot; type=&quot;java.lang.String&quot; /> … … … … </form-bean > … … … … <form-beans> <action-mappings> <action path=&quot;/ address &quot; type=“AddressAction“ name=&quot;dynaAdrForm&quot; <forward name=&quot;success&quot; path=&quot;thankyou.jsp&quot;></forward> </action> … … … … </action-mappings> public class DynaAddressForm extends DynaActionForm { //overridden methods not shown… } Name
  • 13.
  • 14.
  • 15.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27. Thank You! Thank you for your participation. Hope to see you in future!