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 9182421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:33:24+00:00 2026-06-17T18:33:24+00:00

Hi I am following Passing parameters from JSP to Controller in Spring MVC obviously

  • 0

Hi I am following Passing parameters from JSP to Controller in Spring MVC obviously I am missing something because I am getting

javax.el.PropertyNotFoundException: Property ‘Title’ not found on type com.outbottle.hellospring.entities.Movie

Any Idea as to what I am missing?

my Controller:

package com.outbottle.hellospring.controllers;

import com.outbottle.hellospring.entities.Movie;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.SessionAttributes;



@Controller
@SessionAttributes("Movie")

public class FormPractice{

//display the form
@RequestMapping(value="/form", method= RequestMethod.GET)
public String form(ModelMap map) {

    map.addAttribute("Movie", new Movie());
    //return new ModelAndView("form", "movie", new Movie());  
    return "form";

}


// Process the form

@RequestMapping(value="/showMovies", method = RequestMethod.POST)
public String processMovieRegistration(@ModelAttribute("Movie") Movie moviedata,
                                       BindingResult result,                                           
                                       HttpServletRequest request,
                                       Map<String, Object> map){


    //System.out.print(moviedata.Title);
    map.put("moviedata", moviedata);
    //map.addAttribute("movie", moviedata);

    map.put("date", request.getParameter("date"));

    return "showMovies";
}



   public Movie formBackingObject() {
     return new Movie();
   }

}

My Object

package com.outbottle.hellospring.entities;

import java.util.Date;




public class Movie {

    private String Title;
    private Date  ReleaseDate;



    /**
     * @return the ReleaseDate
     */
    public Date getReleaseDate() {
        return ReleaseDate;
    }

    /**
     * @param ReleaseDate the ReleaseDate to set
     */
    public void setReleaseDate(Date ReleaseDate) {
        this.ReleaseDate = ReleaseDate;
    }

    /**
     * @return the Title
     */
    public String getTitle() {
        return Title;
    }

    /**
     * @param Title the Title to set
     */
    public void setTitle(String Title) {
        this.Title = Title;
    }


}

The form

<form:form method="post" action="showMovies" modelAttribute="Movie" commandName="Movie">

    <table>
        <tr>
            <td>Title</td>
            <td><form:input path="Title" /></td>
        </tr>
        <tr>
            <td>Date</td>
            <!--Notice, this is normal html tag, will not be bound to an object -->
            <td><input name="date" type="text"/></td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="send"/>
            </td>
        </tr>
    </table>

</form:form>

The view:

<body>
    <h3>Here are the list</h3>

     <c:choose> 
        <c:when test="${not empty moviedata.Title}">
            <b>${moviedata.Title}</b>
        </c:when>
        <c:otherwise>
            <b>No Movie yet.</b>
        </c:otherwise>
    </c:choose>
<br />
<br />
    <c:choose> 
        <c:when test="${not empty date}">
            <b>${date}</b>
        </c:when>
        <c:otherwise>
            <b>still nothing.</b>
        </c:otherwise>
    </c:choose>
</body>
  • 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-17T18:33:26+00:00Added an answer on June 17, 2026 at 6:33 pm

    Have no idea why but removing the capital “T” in Title worked..

    <body>
    <h3>Here are the list</h3>
    
     <c:choose> 
        <c:when test="${not empty moviedata.title}">
            <b>${moviedata.title}</b>
        </c:when>
        <c:otherwise>
            <b>No Movie yet.</b>
        </c:otherwise>
    </c:choose>
    

    if anyone can explain why this works it would help me understand SPRING 3.0 faster.. but for now I am just glad I can move on..

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

Sidebar

Related Questions

I've recently run into interesting problem passing parameters to my controller action from my
I have inherited a project that uses the following pattern for passing parameters from
Following on from a comment I made on this: passing std::vector to constructor and
I'm passing parameters to a .NET ClickOnce-deployed application via the URL from a Flex
I'm passing 2 hardcoded parameters to an ASP.Net MVC2 Controller Action with this code:
ColdFusion code calls an ASP.NET web service passing the following parameters: Web service operation
I have read about passing parameters from jsf page to managedbean through actionListener. Is
I want to call web api controller from view by passing different parammeters. Here
I'm passing the following parameter as an url fragment to flex. (#groupID=2385) This works
jCarousel documentation states the following: By passing the callback function itemLoadCallback as configuration option,

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.