aspose file tools*
The moose likes JSP and the fly likes not able to display the value using HashMap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "not able to display the value using HashMap" Watch "not able to display the value using HashMap" New topic
Author

not able to display the value using HashMap

Avinash Sridhar
Greenhorn

Joined: Apr 11, 2007
Posts: 6
Hello All,
Thanks for the input



There are 2 keys, i can find that out by using out.print statement. But I am unable to display the value corresponding to the keys. Help will be greatly appreciated.

Thanks
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
You need to end the scriptlet that has the while. So you need something llike this to end the while and statement that prints the output.

<%}%>


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60045
    
  65

Or simplify your life by losing the scriplets and using JSTL/EL.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not able to display the value using HashMap
 
Similar Threads
Struts 1 -- Wrong data displaying in my JSP page
Displaying all the months in the year
jsp:forward and jsp:include
page refresh problem
Strurs 2 iterate over a Map