wood burning stoves 2.0*
The moose likes Spring and the fly likes Returning List Object but not able to display value using Spring c:foreach tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Returning List Object but not able to display value using Spring c:foreach tag" Watch "Returning List Object but not able to display value using Spring c:foreach tag" New topic
Author

Returning List Object but not able to display value using Spring c:foreach tag

Mike Keane
Greenhorn

Joined: May 05, 2010
Posts: 3
Hi All,

I am returing List to jsp but not able to display values..here is my code:

In Controller i set:


In Jsp I did :


But it displaying values like :${buildingBean.buildingName}.....

Please help me out

Thanks
varun
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Sounds like you're not configured to use EL--check out the JSP FAQ.
Mike Keane
Greenhorn

Joined: May 05, 2010
Posts: 3
Hi David

What EL?..
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

...

The JSP Expression Language (EL). It's what you're using when you use expressions like ${buildingBean.buildingName}.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61420
    
  67

If you don't even know what things are called it may be time to step back for a bit and go through some modern tutorials or grab a book on modern JSP.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mike Keane
Greenhorn

Joined: May 05, 2010
Posts: 3
its not an issue of EL i have used right EL but some other problem
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3164
    
  47

"abcxyz bac", please check your private messages regarding an important administrative matter.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Hongli Li
Ranch Hand

Joined: Oct 29, 2006
Posts: 124
Mike Keane wrote:its not an issue of EL i have used right EL but some other problem

if it's not an issue of EL then why ${buildingBean.buildingName} is not being translated?


Do you know why this cup is useful? Because it is empty.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Returning List Object but not able to display value using Spring c:foreach tag