ActionForm variable named
ActionForm variable named
When learning struts know ActionForm variable has been the first to lowercase letters. Although it is known that, but I still customary capital there has been no problems.
Done recently in a practice projects, ActionForm variables is still the first capital letters. Jsp pages and the two share a ActionForm. In the first ActionForm filled to the time of data did not have any problems, the results and look forward to the same results. Then enter the second jsp pages, once again filled ActionForm time, no abnormal dished out, but did not expect the results.
In the inspection of the output from the ActionForm Action in the form data, the results for all null. No requests for assistance in the various circumstances, the ActionForm to lowercase all the variables, to amend the relevant content, no problem.
This problem, if there are good coding habits, then this problem will never arise. However, I think this may really struts can be considered as a flaw (one below).
Ps: in the use of <html: hidden> ActionForm submitted to the long-time data will be dished out anomalies, this time to <input type = "hidden"> can be.
Posted on 2007-07-02 16:07 itkui Reading (63) Comments (0) edit their collections quoted Category: Struts






