| |

VerySource

 Forgot password?
 Register
Search
View: 674|Reply: 1

How to prevent Struts ActionForm from automatically executing to Action?

[Copy link]

2

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-5 00:40:01
| Show all posts |Read mode
I created an ActionForm: ActionForm-BaseForm (customization, adding logging functions)-OperateActionForm (customization, adding public properties, clear, fill methods)-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.
 
Program flow in the design: browse.do point submission-> modify.do point submission-> report.do
The actual program flow is automatically executed to report.do as long as it is submitted in browse.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

2

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-5 09:15:01
| Show all posts
Top yourself
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