• Post Reply Bookmark Topic Watch Topic
  • New Topic

use of hashtable with struts and jstl  RSS feed

 
shashi pahwa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am using the struts and jstl in my web application and using the logic:iterate for iterating the hashtable,arraylist.
I faced the problem at this point:-
i am getting any tag for retrival of only one value from the hashtable that we are getting through java function.
ex:-
Hashtable hash=new Hashtable();
hash.put("one","first");
hash.put("two","second");
the code i am using in java is
if(hash.contains(new String("one"))
String value=hash.get(new String("one"))
but i am not getting this using struts or jstl
Please help me
Regards
shashi bhushan
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!