| |

VerySource

 Forgot password?
 Register
Search
View: 919|Reply: 4

Ask, webwork a question

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Invalid IP Address

Post time: 2020-2-8 21:00:01
| Show all posts |Read mode
For example, the user operation calls the BB method in the action, and I implement the setServletRequest method in the action. Normally, I first enter the method setServletRequest and then enter the method BB. At this time, I may wish to give up the operation in the setServletRequest, that is, I do n’t After entering the method BB, how to write in setServletRequest? I used to study. net, .net can be ended by response.end (). I do not know how to achieve in webwork, action, please ask experts.
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-4-2 02:30:01
| Show all posts
Your own defined action is just extends ActionSupport implements Action
Then implement its execute () method, and judge the incoming data in this method in order to reach other methods that it satisfies.
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-4-2 12:30:01
| Show all posts
1. Implement execute () method in action
2. Judging whether the other methods are satisfied by the incoming data
3. Returns the specified type
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-12 22:45:01
| Show all posts
No need to pass in ServletRequest
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-24 23:15:01
| Show all posts
If the verification fails, the BB method will not be executed
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