File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 17250
    
    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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsp using springs