문제

Hallo,

I am using a extended SimpleFormController and I override the formBackingObject-method. In my jsp form I would like to access the object from formBackingObject, but I can't find any way to touch it. ModelAndView lets you give the object (model) a name, that it can be accessed by in the jsp (with EL or taglibs). This concept is missing here.

Is formBackingObject the wrong method to override or am I just to stupid to access the object in jsps?

Thanks

도움이 되었습니까?

해결책

The solution was quite easy:

I'm doing it the right way, annotation would be a different valid approach.

The solution was to give the bean a commandName property in the app-servlet.xml.

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