title: How to display Spring model using Jsp JSTL?
body: <p>Actually in my spring application have User.jsp and using this Jsp i'm display details.</p>
  
  <p>In my UserProfileForm bean i'm writing</p>
  
  <pre><code>private List&lt;ProfessionalForm&gt; professionalDetails = new ArrayList&lt;ProfessionalForm&gt;();
  </code></pre>
  
  <p>And ProfessionalForm has another form for details.</p>
  
  <p>In my controller class i'm writing..</p>
  
  <pre><code> @RequestMapping(value = "user", method = RequestMethod.GET)
      public String user(Model model) throws Exception {
          UserProfileForm form = (UserProfileForm)FormType.USER_PROFILE.getNewInstance();
  
          model.addAttribute("USER_PROFILE", form);
          return "profile/user";
      }
  </code></pre>
  
  <p>And my user.jsp page code..</p>
  
  <pre><code>&lt;form:form action="" modelAttribute="USER_PROFILE"&gt;
     &lt;div class="answer"&gt;
      &lt;c:forEach items="${USER_PROFILE.professionalDetails}" var="professionalForm"&gt;
          &lt;jsp:include page="user/professional.jsp"&gt;
             &lt;jsp:param value="${professionalForm}" name="PROFESSIONAL" /&gt;
          &lt;/jsp:include&gt;
      &lt;/c:forEach&gt;
     &lt;/div&gt;
  &lt;/form:form&gt;
  </code></pre>
  
  <p>And this my professional.jsp..</p>
  
  <pre><code>&lt;form:form action="profile/proffessional" modelAttribute="PROFESSIONAL"&gt;
  &lt;p&gt;
    &lt;label class="control_label"&gt;Postion:&lt;/label&gt;
      &lt;div class="controls"&gt;
          &lt;form:input class="text_midem" path="positionName" /&gt;
      &lt;/div&gt;
  &lt;/p&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>But i got follwoing Exception for my Server console..</p>
  
  <pre><code>    SEVERE: Servlet.service() for servlet [spring] in context with path [/EClass] threw exception [An exception occurred processing JSP page /WEB-INF/pages/profile/user.jsp at line 40
  
  37:                         &lt;div class="answer"&gt;
  38:                             &lt;c:forEach items="${USER_PROFILE.professionalDetails}"
  39:                                 var="professionalForm"&gt;
  40:                                 &lt;jsp:include page="user/professional.jsp"&gt;
  41:                                     &lt;jsp:param value="${professionalForm}" name="PROFESSIONAL" /&gt;
  42:                                 &lt;/jsp:include&gt;
  43:                             &lt;/c:forEach&gt;
  
  
  Stacktrace:] with root cause
  java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'PROFESSIONAL' available as request attribute
      at org.springframework.web.servlet.support.BindStatus.&lt;init&gt;(BindStatus.java:141)
  </code></pre>
  
  <p>Why this message coming is their any Loop Required for in User.jsp page or Professional.jsp..</p>
  
  <p>Please help me..</p>
  
  <p>EDIT:</p>
  
  <p>Instead of <code>&lt;jsp:include&gt;</code> we are using ...</p>
  
  <pre><code>&lt;%@include file="user/professional.jsp"%&gt;
  </code></pre>
  
  <p>Hear also error coming...</p>
  
  <pre><code>    SEVERE: Servlet.service() for servlet [spring] in context with path [/EClass] threw exception [An exception occurred processing JSP page /WEB-INF/pages/profile/user/professional.jsp at line 16
  
  13:                                 &lt;p&gt;
  14:                                     &lt;label class="control_label"&gt;Postion:&lt;/label&gt;
  15:                                 &lt;div class="controls"&gt;
  16:                                   &lt;form:input class="text_midem" path="positionName" /&gt;
  17:                                 &lt;/div&gt;
  18:                                 &lt;/p&gt;
  19:                                 &lt;p&gt;
  
  
  Stacktrace:] with root cause
  java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'PROFESSIONAL' available as request attribute
  </code></pre>