Announcement Announcement Module
No announcement yet.
JSTL issue ! Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSTL issue !

    Hi Techies,

    I am using spring annotations, the following is controller,



    public class ContactManagementSystem {

    private AppoinmentDAO appoinmentDAO;

    public void setAppoinmentDAO(AppoinmentDAO appoinmentDAO) {
    this.appoinmentDAO = appoinmentDAO;

    public List<CustomerBean> customerDetailList() {
    return appoinmentDAO.getCustomers();

    @RequestMapping(method = RequestMethod.GET)
    public String showContactForm(@ModelAttribute("contact") CustomerBean contact , ModelMap model) {
    System.out.println("Am in Get Method !!");
    model.addAttribute("contact", contact);
    return "temp";

    @RequestMapping(method = RequestMethod.POST)
    public String onSubmit(@ModelAttribute("bean") CustomerBean bean) {
    return "contact";


    and my jsp is :

    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="" prefix="form"%>
    <%@ taglib uri="" prefix="c"%>



    <c:forEach var="temp" items="${customerList}">
    <c:out value="${temp}"></c:out>
    <c:out value="${temp.firstName}"></c:out>



    I am getting the following O/P

    [email protected]
    [email protected]
    // The Value is not displaying
    [email protected]
    // The Value is not displaying

    Actually am setting the Bean Attribute , whiler iterate the Last list name only am getting and the rest of the name is not displaying.

    Any idea and suggestions welcome please,


    Thanks & Regards,

    Thangavel L Nathan.