title: javax.el.PropertyNotFoundException: in the JSP page of a Spring MVC Application
body: <p>I have 2 tables in the database (airports and stopovers). 
  I wrote a SQL join query get a result set that has fields from both the tables. 
  In order to map the result, i created a Custom object 'VbResult'. (There is no table in the DB corresponding to this domain object) </p>
  
  <p>Please find below code for Domain object, Controller and the View: 
  When i invoke the home page i get the exception, though i have the field ressrc in VbResult class. </p>
  
  <p>(or) Is it wrong to use a custom object as VbResult - just for the sake of View , for which no table exists? </p>
  
  <p>I am stuck for a long time.. What is that I am missing here!   Please let me know! </p>
  
  <p>Thanks in advance </p>
  
  <p><strong>javax.el.PropertyNotFoundException: Property 'ressrc' not found on type com.datacaliper.vbuddy.domain.VbResult</strong> </p>
  
  <p>Domain Object: VbResult </p>
  
  <pre><code>public class VbResult implements java.io.Serializable{  
  private static final long serialVersionUID = -3606761414209638631L;  
  private Integer resid;  
  private String resairline;  
  private String resemail;  
  private String ressrc;  
  private String resdes;  
  //private String res_airline;     
  
  public VbResult(){  }  
  
  public VbResult(Integer id, String airline, String email,  
          String source, String destination) {  
      this.resid= id;  
      this.resairline = airline;  
      this.resemail = email;  
      this.ressrc = source;  
      this.resdes = destination;  
  }  
  
  public Integer getId() {  
      return this.resid;  
  }  
  public void setId(Integer id) {  
      this.resid = id;  
  }  
  public String getAirline() {  
      return this.resairline;  
  }  
  public void setAirline(String airline) {  
      this.resairline = airline;  
  }  
  public String getEmail() {  
      return this.resemail;  
  }  
  public void setEmail(String email) {  
      this.resemail = email;  
  }  
  public String getSource() {  
      return this.ressrc;  
  }  
  public void setSource(String source) {  
      this.ressrc = source;  
  }  
  public String getDestination() {  
      return this.resdes;  
  }  
  public void setDestination(String destination) {  
      this.resdes = destination;  
  }  
  }  
  </code></pre>
  
  <p><strong>Controller Code:</strong></p>
  
  <pre><code>@Controller  
  @RequestMapping({"/","/main"})  
  public class MainController {  
  protected static Logger logger = Logger.getLogger("controller");  
  @Resource(name="PostService")  
  private PostService postService;  
  @RequestMapping(value = "/home", method = RequestMethod.GET)  
  public String getStopovers(Model model) {  
  logger.debug("Received request to show all Posts");  
  // Retrieve all posts by delegating the call to PostService  
  List&lt;VbResult&gt; stops = postService.getAll();  
  // Attach persons to the Model  
  model.addAttribute("stops", stops);  
  return "homepage";       
  }   
  }  
  </code></pre>
  
  <p><strong>JSPPage</strong> </p>
  
  <pre><code>&lt;c:forEach items="${stops}" var="stop"&gt;  
  &lt;tr&gt;  
  &lt;td&gt;&lt;c:out value="${stop.ressrc}" /&gt;  
  &lt;/td&gt;  
  &lt;td&gt;&lt;c:out value="${stop.resdes}" /&gt;  
  &lt;/td&gt;  
  &lt;/tr&gt;  
  &lt;/c:forEach&gt;  
  </code></pre>