Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Display data from List into JSP  RSS feed

 
Rajeev Ja
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I have the code as follows,
request.setattribute("name",name1)where name1 is list
name1 list contains many objects like regno,startdate
here regno is acceseed as ${item.regno} i get the value
but how to display startdate object which contains many dates and display into Jsp

Thanks and Regards
Rajeev J
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tell us about your startdate object.

Is it a list of dates?
If so, you can iterate over it with c:forEach.

If you have a list of heterogeneous object that don't implement a common interface, it will be difficult to display all the data in them without a lot of hand coding.
 
Rajeev Ja
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya thanks i used foreach but its giving the below error message

javax.servlet.ServletException: An error occurred while evaluating custom action attribute "items" with value "${task.mEndDateOfInduvidualResource}": Unable to find a value for "mEndDateOfInduvidualResource" in object of class "com.objectorb.pmt.view.TaskForm" using operator "." (null)
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Again, you'd have to tell us more about the items in your list and/or show us some of your code if you want help here.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!