| |

VerySource

 Forgot password?
 Register
Search
View: 740|Reply: 2

Problems encountered by validator validation failure

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-16 15:00:01
| Show all posts |Read mode
I want to use the select drop-down list box in the page, where the content in the list box is obtained from the previous forwarding action querying the database and put into the list, and then passed to the page to construct this drop-down list, because this list is placed in In the request, after using the verification framework, after the verification fails, when returning to the page specified by input, that is, the page before submission, the contents of the list are gone, and an error is reported when the select is constructed. There is also a variable to be passed to the action in this page. In the previous forwarding action, I also put it in the request as an attribute (that is, this variable and select I put in the request in the previous action). Hit, when I came to this page, I used it for construction), but when I returned to this page after the verification failed, because it was a request, I could not get the value in it. There is no other way to change this scope to session. Thank you!
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-6-18 20:00:01
| Show all posts
If the verification with the validator fails, there will be no request at all? Is the landlord using validatorForm? ?
Reply

Use magic Report

0

Threads

3

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-6 13:30:01
| Show all posts
I don't know where you verified it, it's in the formbean? After putting something in the request and making an error, it is more troublesome. You can only think about how to turn it in advance, or you can jump directly to the original page. Either you put it in the session, but remember to clear it, too much is a burden on the server
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