title: How i can assign a object from another object in JSP?
body: <p>I am using Spring MVC .</p>
  
  <p>And I have a method in controller which before returning a jsp puts a object in <code>ModelMap</code>.</p>
  
  <pre><code>modemap.put("Members",members);
  </code></pre>
  
  <p>Students is a POJO having a  List and List.</p>
  
  <p>Now in my jsp there is a place where I need to store the Student[0] in the variable in jsp.</p>
  
  <p>I dont want to iterate over a list of students at that point. Otherwise I would have used for each loop in  Java.</p>
  
  <p>When I do </p>
  
  <pre><code>&lt;c:set var="stu1" value="$(memebrs.student[0]}"&gt;&lt;/c:set&gt;
  </code></pre>
  
  <p>But this gives me Page not found.</p>
  
  <p>How I can do this?
  Thanks in advance.</p>