Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 673445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:35:48+00:00 2026-05-14T00:35:48+00:00

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

  • 0

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.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:35:48+00:00Added an answer on May 14, 2026 at 12:35 am

    Ideally you want the JSP/JSTL standard tags to be agnostic of the technology that supplies these objects but you are correct in that atleast while designing the support will be useful.

    However it looks like Intellij IDEA seems to have something similar to what you want http://www.jetbrains.com/idea/features/spring_framework.html (towards the end)!

    You have to add a JSP comment like this:

    <%--@elvariable id="pet" type="com.mycompany.Pet"--%>
    

    IntelliJ will then autocomplete based on that type.

    alt text
    (source: jetbrains.com)

    Is using IntelliJ ruled out for you?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

With Spring MVC, it's easy to express a concept like A user is submitting
I'm building a Spring MVC web application with Tiles/JSP as the view technology. Previously
I use Spring MVC [version: 2.5] and Security[version: 2.0.4]. My problem looks like that:
My Spring MVC app is full of methods that look like this: @RequestMapping(value =
I'm using Spring MVC and jquery autocomplete, my spring controller looks like this @RequestMapping(value
in spring mvc, is it possible to specify an url for a given View
I'm using Spring MVC (3.0) with annotation-driven controllers. I would like to create REST-ful
Spring MVC + Jackson converting Java object to/from Json data. I want to validate
Does Spring MVC support extension-less URLs like asp.net MVC does? I am just getting
With Spring MVC 3, when a user goes to http://localhost/myspringapp/ how do I decide

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.