Code assist in (jsp /jstl) view for Spring MVC model objects in Eclipse

Posted by Bjorn Thor Jonsson on Stack Overflow See other posts from Stack Overflow or by Bjorn Thor Jonsson
Published on 2010-03-17T11:40:20Z Indexed on 2010/03/17 11:41 UTC
Read the original article Hit count: 412

Filed under:
|
|
|
|

In Spring MVC when placing an object in the view model like so:

public String getUser( Model model ) {
    //...fetch user...
    model.addAttribute( "user", user );
    return "viewName";
}

and accessing it's values in the JSP / JSTL view like this:

...
<p>
    ${user.name}
</p>
...

I'm wondering if it is possible to have code assist for the user object in the view?

The IDE I'm using is MyEclipse but it would be interesting to know if this is possible in other editors as well.

Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about spring-mvc