title: javax.el.PropertyNotFoundException: Property 'HelpGroupItems' not found on type com.aais.helpguides.HelpGuide
body: <p>When running my code on Tomcat, I receive the following error: </p>
  
  <blockquote>
    <p>javax.el.PropertyNotFoundException: Property 'HelpGroupItems' not found on type com.aais.helpguides.HelpGuide.</p>
  </blockquote>
  
  <p>I have checked the <code>HelpGuide.java</code> file to make sure I have the <code>HelpGroupItems</code> getter/setter methods defined correctly.  I have checked both <code>jsp</code> files as well for any misspelling of the name. When <code>showForm=true</code>, the <code>/updateForm</code> will show up, but it is only when <code>showForm</code> is false or I hit the submit button from the updateForm do I run into this error.   Any help would be appreciated.</p>
  
  <p><strong>HelpGuideController.java</strong></p>
  
  <pre><code>package com.aais.helpguides;
  
  import com.aais.helpguides.HelpGuide;
  import org.springframework.stereotype.Controller;
  import org.springframework.ui.Model; 
  import org.springframework.web.servlet.ModelAndView;
  import org.springframework.validation.BindingResult;
  import org.springframework.web.bind.annotation.RequestMapping; 
  import org.springframework.web.bind.annotation.RequestMethod; 
  import org.springframework.web.bind.annotation.ModelAttribute;
  import org.springframework.web.bind.annotation.RequestParam;
  
  import java.util.ArrayList;
  import java.util.HashMap;
  import java.sql.DriverManager;
  import java.sql.Statement;
  import java.sql.ResultSet;
  import java.sql.Connection;
  import java.sql.SQLException;
  
  
  @Controller
  @RequestMapping("/")
  public class HelpGuideController 
  {
      private ArrayList&lt;String&gt; helpGroupNames;
      private ArrayList&lt;String&gt; helpGroupDescriptions;
      private HashMap&lt;String,ArrayList&lt;String&gt;&gt; model;
  
  
      @RequestMapping("/helpgroup")
      public ModelAndView getUpdateForm(@ModelAttribute("helpguide") HelpGuide helpguide, BindingResult result, @RequestParam("showForm") boolean showForm)
      {
          ArrayList&lt;String&gt; helpGroupNames = new ArrayList&lt;String&gt;();
          helpGroupNames.add("Help Contents");
          helpGroupNames.add("Affiliate Guide");
          ArrayList&lt;String&gt; helpGroupDescriptions = new ArrayList&lt;String&gt;();
          helpGroupDescriptions.add("Items related to Help Contents");
          helpGroupDescriptions.add("Items related to Affiliate Guide");
          HashMap&lt;String, ArrayList&lt;String&gt;&gt; model = new HashMap&lt;String, ArrayList&lt;String&gt;&gt;();
          model.put("helpGroupNames", helpGroupNames);
          model.put("helpGroupDescriptions", helpGroupDescriptions); 
          helpguide.setDescription("Items related to Help Contents");
          helpguide.setHelpGroupItems("Help Contents");
          if(showForm!=false)
          {
              return new ModelAndView("helpguides/updateForm", "model", model);
          }
          else 
          {
              /*final String dbUserName = "AAISdirectHelpUser";
              final String dbPassword = "Wr6Vaswa";
              final String dbURL = "jdbc:sqlserver://127.0.0.1;database=AAISdirectHelp";
  
              try
              {
                  Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
                  Connection conn = DriverManager.getConnection(dbURL, dbUserName, dbPassword);
  
                  Statement stmnt = conn.createStatement();
                  Statement stmnt2 = conn.createStatement();
                  String querySQL ="SELECT Name, Description FROM config.HelpGroup";
                  ResultSet results = stmnt.executeQuery(querySQL);
                  while(results.next())
                  {
                      System.out.println(results.getString("Name"));
                  }
              }
              catch(SQLException e1)
              {
                  e1.printStackTrace();
              }
              catch(ClassNotFoundException e2)
              {
                  e2.printStackTrace();
              }
              catch(Exception e3)
              {
                  e3.printStackTrace();
              } */
              return new ModelAndView("helpguides/showHelpGroups", "model", model);
          }
  
      }
  
      @RequestMapping("/showDetails")
      public ModelAndView showDetails(@ModelAttribute("helpguide") HelpGuide helpguide, BindingResult result)
      {
          System.out.println("HelpGroupNames: " + helpguide.getHelpGroupItems());
  
          System.out.println("HelpGroupDescription: " + helpguide.getDescription());
  
          return new ModelAndView("helpguides/showHelpGroups", "helpguide", helpguide);
      }
  
  
      public ArrayList&lt;String&gt; getHelpGroupName()
      {
          return helpGroupNames;
      }
  
      public void setHelpGroupName(ArrayList&lt;String&gt; helpGroupNames)
      {
          this.helpGroupNames = helpGroupNames;
      }
      public ArrayList&lt;String&gt; getHelpGroupDescription()
      {
          return helpGroupDescriptions;
      }
      public void setHelpGroupDescription(ArrayList&lt;String&gt; helpGroupDescriptions)
      {
          this.helpGroupDescriptions = helpGroupDescriptions;
      }
      public HashMap&lt;String, ArrayList&lt;String&gt;&gt; getModel()
      {
          return model;
      }
      public void setModel(HashMap&lt;String,ArrayList&lt;String&gt;&gt; model)
      {
          this.model = model;
      }
  
      /*@RequestMapping(value="/helpgroup" , method = RequestMethod.GET)
      public String updateHelpGroupForm(Model model)
      {
          model.addAttribute("message", "Welcome to the AAISdirect Support Page");
          model.addAttribute(new HelpGuide());
          return "helpguides/HelpGroup";
      }*/
      /*@RequestMapping(value="/helpcenter" , method=RequestMethod.POST)
      public String update(@Valid HelpGuide helpguide, BindingResult result) 
      {
          if (result.hasErrors()) 
          {
              return "helpguides/updateForm";
          }
          this.helpguides.put(helpguide.getName(), helpguide);
          return "redirect:/helpcenter/" + helpguide.getName();
      }*/
  
      @RequestMapping(value="/helpgroup/helpcontents", method = RequestMethod.GET)
      public String getHelpContents(Model model)
      {
          model.addAttribute("message", "Welcome to the Help Contents Support Page");
          return "helpguides/showHelpContents";
  
      }
  
      @RequestMapping(value="/helpgroup/affiliateguide" , method = RequestMethod.GET)
      public String showAffiliateGuideHelp(Model model)
      {
          model.addAttribute("message", "Welcome to the Affiliate Guide Support Page");
          return "helpguides/showHelpContents";
      }
  }
  </code></pre>
  
  <p><strong>StackTrace</strong></p>
  
  <pre><code>org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/views/helpguides/showHelpGroups.jsp at line 21
  
  18:             &lt;td&gt;Description: &lt;/td&gt;
  19:         &lt;/tr&gt;
  20:         &lt;tr&gt;
  21:             &lt;td&gt;${helpguide.HelpGroupItems}&lt;/td&gt;
  22:             &lt;td&gt;&lt;a href="helpgroup/affiliateguide"&gt;${helpguide.description}&lt;/a&gt;&lt;/td&gt;    
  23:         &lt;/tr&gt;
  24:         &lt;tr&gt;
  
  org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
              org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
              org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:264)
              org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1208)
              org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992)
              org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939)
              org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
              org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915)
              org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
              org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
          root cause
  
      javax.el.PropertyNotFoundException: Property 'HelpGroupItems' not found on type com.aais.helpguides.HelpGuide
          javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:229)
          javax.el.BeanELResolver$BeanProperties.access$400(BeanELResolver.java:206)
          javax.el.BeanELResolver.property(BeanELResolver.java:317)
          javax.el.BeanELResolver.getValue(BeanELResolver.java:85)
          org.apache.jasper.el.JasperELResolver.getValue(JasperELResolver.java:104)
          org.apache.el.parser.AstValue.getValue(AstValue.java:182)
          org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184)
  
      org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:967)
          org.apache.jsp.WEB_002dINF.views.helpguides.showHelpGroups_jsp._jspService(showHelpGroups_jsp.java:88)
          org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
          org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
          org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
          org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
          org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
  </code></pre>
  
  <p><strong>HepGuide.java</strong></p>
  
  <pre><code>package com.aais.helpguides;
  
  public class HelpGuide
  {
      private String helpGroupItems;
      private String helpSectionItems;
      private String affiliateGuideItems;
      private String description;
      private long helpGroupID;
  
  public long getHelpGroupId()
  {
      return helpGroupID;
  }
  public void setHelpGroupId(long helpGroupID)
  {
      this.helpGroupID = helpGroupID;
  }
  public String getHelpGroupItems()
  {
      return helpGroupItems;
  }
  public void setHelpGroupItems(String helpGroupItems)
  {
      this.helpGroupItems = helpGroupItems;
  }
  public String getHelpContentItems()
  {
      return helpSectionItems;
  }
  public void setHelpContentItems(String helpSectionItems)
  {
      this.helpSectionItems = helpSectionItems;
  }
  public String getAffiliateGuideItems()
  {
      return affiliateGuideItems;
  }
  public void setAffiliateGuideItems(String affiliateGuideItems)
  {
      this.affiliateGuideItems = affiliateGuideItems;
  }
  public String getDescription()
  {
      return description;
  }
  public void setDescription(String description)
  {
      this.description = description;
  }
  }
  </code></pre>
  
  <p><strong>showHelpGroup.jsp</strong></p>
  
  <pre><code>&lt;%@ page contentType="text/html;charset=UTF-8"%&gt;
  &lt;%@ page pageEncoding="UTF-8"%&gt;
  &lt;%@ page session="false" %&gt;
  &lt;%@ page import="java.io.*,java.util.*,java.sql.*" %&gt;
  &lt;%@ page import="javax.servlet.http.*,javax.servlet.*" %&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %&gt;
  &lt;%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %&gt;
  
  &lt;html&gt;
  &lt;head&gt;&lt;title&gt;AAISdirect Help Center&lt;/title&gt;&lt;/head&gt;
  &lt;body&gt;
  
  &lt;h2&gt; ${message} &lt;/h2&gt;
      &lt;table style="width:500px"&gt;
      &lt;tr&gt;
              &lt;td&gt;Name: &lt;/td&gt;
              &lt;td&gt;Description: &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;${helpguide.helpGroupItems}&lt;/td&gt;
              &lt;td&gt;&lt;a href="helpgroup/affiliateguide"&gt;${helpguide.description}&lt;/a&gt;&lt;/td&gt;    
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;!-- &lt;td&gt;${model.helpGroupNames}&lt;/td&gt; --&gt;
              &lt;!-- &lt;td&gt;${model.helpGroupDescriptions}&lt;/td&gt; --&gt;
          &lt;/tr&gt;       
      &lt;/table&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>updateForm.jsp</strong></p>
  
  <pre><code>&lt;%@ page contentType="text/html;charset=UTF-8"%&gt;
  &lt;%@ page pageEncoding="UTF-8"%&gt;
  &lt;%@ page session="false" %&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %&gt;
  &lt;%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %&gt;
  
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
      &lt;title&gt;Update Help Group&lt;/title&gt;
      &lt;link rel="stylesheet" href="&lt;c:url value="/resources/blueprint/screen.css" /&gt;" type="text/css" media="screen, projection"&gt;
      &lt;link rel="stylesheet" href="&lt;c:url value="/resources/blueprint/print.css" /&gt;" type="text/css" media="print"&gt;
  
      &lt;form:form method="post" action="showDetails"  modelAttribute="helpguide"&gt;
          &lt;table style="width:500px"&gt;
              &lt;tr&gt;
                  &lt;td&gt;Help Groups&lt;/td&gt;
                  &lt;td&gt;&lt;form:input path="helpGroupItems"/&gt;
                  &lt;td&gt;&lt;form:input path="description"/&gt;
                  &lt;%-- &lt;td&gt;&lt;form:select path="name" items="${model.helpGroupNames}"/&gt; --%&gt;
                  &lt;td&gt;&lt;form:select path="description" items="${model.helpGroupDescriptions}"/&gt;
                  &lt;td&gt;&lt;input type="submit" value="Submit"/&gt;&lt;/td&gt;  
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/form:form&gt;        
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>