문제

I'm using Stripes and I am validating the values of a drop down box to ensure the user selects an option. On initial load all data is present, but once the validation kicks in the form loses the data that was set up in the action bean on load. This includes the original list I am validating against.

I'm simply using in the jsp, and annotating the field in the action bean as @Validate(required=true).

Am I missing something simple?

Cheers

도움이 되었습니까?

해결책

Fixed it.

I should use @Before methods to pre-populate domain objects, as per the Stripes best practice.

manual

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top