File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes is anybody know how to acess a hashtable in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "is anybody know how to acess a hashtable in struts" Watch "is anybody know how to acess a hashtable in struts" New topic
Author

is anybody know how to acess a hashtable in struts

chinthaka senaratne
Greenhorn

Joined: Apr 05, 2006
Posts: 1
Hi all,

I have a strut application where I want to access a hashtable from struts form..can anyone give a suggestion on to this..

regards,

Chinthaka
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Here's some code that displays all entries in a Hashtable:

<logic:iterate id="entry" name="myHashTable" >
Key is: <bean:write name="entry" property="key"/><br>
value is: <bean:write name="entry" property="value" /><br>
</logic:iterate>

The same code works for HashMap, or any other implementations of the java.util.Map interface.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is anybody know how to acess a hashtable in struts