views:

46

answers:

1

In spring mvc, I noticed the models are passed as a name/value pair into the ModelAndView.

is it possible to create a strongly typed model and pass it to the view?

this way the caller in the view can't access a string index that doesn't exist.

+1  A: 

JSTL isn't type-safe - it's a scripting language. Furthermore, you'll need a sophisticated validation tool to check the correctness of the jsp.

So I don't think you are able to do this.

Bozho