First, Struts uses tips (Mainly from "struts in action)
1. Use Array in ActionForm to match repetitive variables. For example, when using MultiBox, the Array can be defined in the Form.
2. Use
EG:
3. Display the cyclic serial number mark:
logic: Iterate>
4. Use
5. Relatively stable drop-down list data sets use scope = "application". (This method has always been used, but it is still not clear that it will be used directly when the system is logged in, and it can be used directly).
6. Use the
7. JavaScript interacts with the FORM value: This is very frequent
3. An error may occur after Submit: No Multipart Request Date Sent
solution:
1. Set the Redirect tree in struts-config.xml to TRUE.
2. If it is a jump with parameters, use the following method:
ActionForward Forward = mapping.forward ("surpass"); stringbuffer bf = new stringbuffer (forward.getpath ());
bf.append ("? id = 1"); // parameter
Return New ActionForward (bf.tostring (), true);