aspose file tools*
The moose likes Spring and the fly likes jsp using springs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "jsp using springs" Watch "jsp using springs" New topic
Author

jsp using springs

srikrishna Nadagouda
Greenhorn

Joined: Jan 23, 2013
Posts: 2
<%
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

Joined: Jan 23, 2013
Posts: 2
wat to do in jprofiler???
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp using springs
 
Similar Threads
DisplayTag problem to export Excel not working
EL to display bean attribute evaluates to null
Display Array data in JSP
can't find css, images and js static files
xml form validation UI error message not shown?