Last modified by Ken McWilliams on 2012/03/10 01:50

From version Icon 8.1 Icon
edited by Ken McWilliams
on 2012/03/10 02:40
Change comment: There is no comment for this version
To version Icon 9.1
edited by Ken McWilliams
on 2012/03/10 01:50
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -52,7 +52,7 @@
52 52  
53 53  To access this action: http:~/~/localhost:8080/Example/enter-name
54 54  
55 -=== Example 2 - Process form and display results ===
55 +=== **Example 2 - Process form and display results** ===
56 56  
57 57  We need to create an action to process the name from the above example. We know that we must put this action in a package which contains the name "action", "struts" or "struts2".
58 58  
... ... @@ -65,7 +65,7 @@
65 65  package com.example.action;
66 66  \\import com.opensymphony.xwork2.ActionSupport;
67 67  \\public class ProcessForm extends ActionSupport{
68 - private String name; ~/~/If this was public we could ommit the getters/setters
68 + private String name; ~/~/If this was public we could omit the getters/setters
69 69  \\ @Override
70 70   public String execute(){
71 71   ~/~/processing goes here