This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Welcome to the ranch ! Please UseCodeTags the next time you post some code. Also, EaseUp. Saying that your request is 'urgent' is not going to help you here.
Hi
Thanks for the reply, but i am getting the object value as shown below,i need the values present inside the object.
Help me Thanks again
santosh mgs
Greenhorn
Joined: Aug 03, 2010
Posts: 7
posted
0
Christophe Verré wrote:Welcome to the ranch ! Please UseCodeTags the next time you post some code. Also, EaseUp. Saying that your request is 'urgent' is not going to help you here.
As for your problem, use the c:forEach tag.
Thanks for your suggestions,I am new ito the forum.
Please post your current code (in a new message). If you use the "var" attribute (set it to something like "details", not "myList", which implies each object is a list) and output myList.firstName it should work. Chances are you're either not retrieving the attribute you think you are, or you're not using the var attribute correctly.
santosh mgs
Greenhorn
Joined: Aug 03, 2010
Posts: 7
posted
0
Hi here is my updated code,i made changes but it is not working.
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button. The link I provide explains how to use them.
Like I said: you're trying to access the list itself, not each item in the list:See how you're using the word "list" there? The list is the list. Each *item* in the list is "details", because that's what you defined it to be in the c:forEach tag.
santosh mgs
Greenhorn
Joined: Aug 03, 2010
Posts: 7
posted
0
I have changed the code, But it is not working
Michael Houlo
Ranch Hand
Joined: Jun 07, 2010
Posts: 58
posted
0
santosh mgs wrote:I have changed the code, But it is not working
David Newton wrote:Please post your current code (in a new message). If you use the "var" attribute (set it to something like "details", not "myList", which implies each object is a list) and output myList.firstName it should work. Chances are you're either not retrieving the attribute you think you are, or you're not using the var attribute correctly.
See the difference? It's property access, not calling a method. (Update the variable names to whatever you're using now.)
Really, the code tags are easy; "[code]". Just like that. Except for the end tag, which has a slash.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: How to convert the for Loop to the equalent JSTL code in JSP