This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp using springs

 
srikrishna Nadagouda
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%
List<Customer> CustomerList=(List<Customer>)request.getAttribute("CustomerData");
for(Customer customer : CustomerList) {
String name=customer.getName();
String address=customer.getAddress();
String item=customer.getItem();
%>
<tr><td><%=name%></td><td><%=address%></td><td><%=item%></td></tr>
<%
}
%>
</table><br>
<a href="customer.jsp">Insert Another Record</a>
</body>
</html>
getting error in List<Customer> CustomerList=(List<Customer>)request.getAttribute("CustomerData"); please help
 
srikrishna Nadagouda
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wat to do in jprofiler???
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ouch, putting code in with the markup is not a good idea.

Also on another point it is the Spring Framework, or Spring. There is no plural.

Anyway, What is the error you get? Is there an attribute in the request called CustomerData?

We need more information.

Thanks

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic