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

  • SEARCH
  • Home
  • 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 7853457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:42:05+00:00 2026-06-02T19:42:05+00:00

When I put something in model in spring mvc like this: @RequestMapping(method = RequestMethod.GET)

  • 0

When I put something in model in spring mvc like this:

@RequestMapping(method = RequestMethod.GET)
public String createForm(Model model) {
    model.addAttribute("item", new Item());
    return "item/new";
}

bean “item” is not resolved by IntelliJ in corresponding JSP pages. I mean, it works perfectly fine, but autocompletion doesn’t :/

Is there any way to have autocompletion in such case?

  • 1 1 Answer
  • 0 Views
  • 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-06-02T19:42:06+00:00Added an answer on June 2, 2026 at 7:42 pm

    IntelliJ’s JSP support understands a special kind of comment annotation:

    <%--@elvariable id="foo" type="com.yourcompany.YourClass"--%>
    

    If you place this annotation at the top of your file, idea will provide auto completion for expressions starting with ${foo. based on the properties of class com.yourcompany.YourClass

    IntelliJ will also offer to create this annotation if you hover over the foo part of an expression.

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

Sidebar

Related Questions

I have a model like this: public PurchaseOrder { [Required] [StringLength(15)] public virtual string
I have a model that looks like this: public class Book { public string
The batch file is something like this, I put the python in some directory
With ASP.net MVC I have a Model like so: public class Project { public
I'm trying to put together something to decode a Json string and not having
Today I encountered something strange: I tried to put a utility method into an
I am looking for something like a Queue that would allow me to put
Is it possible to put a macro in a macro in c++? Something like:
Hi guy it's possible put in the application Badge some letter? Something like ON
I'm not sure if this is possible in Spring MVC 3.0, but I'm trying

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.