| |

VerySource

 Forgot password?
 Register
Search
View: 653|Reply: 0

Once the ActionForm attribute in struts is assigned automatically, how to solve it?

[Copy link]

2

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-4 16:30:01
| Show all posts |Read mode
I set up an ActionForm with a lot of properties, inherited from: ActionForm-BaseForm (Custom) -OperateActionForm (Custom) -ModifyForm.
Read the database object paper in the ModifyForm.reset method, and then assign each property of the paper to each corresponding property on the ModifyForm.

In the ModifyForm.Validate method, the validation property is not empty, then the validation passes. The problem now is that after I assign a value, ModifyForm will automatically run to ModifyAction.execute and submit automatically.

So originally should be browse.do-modify.do-report.do, now it becomes, as long as you submit in browse.do, it will automatically execute to report.do. I don't know how to solve it?

Since the original code is quite long, it is inconvenient to post it, please help experts.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list