access hash object element's property with struts-tags

i have a HashMap h of stats objects S.S is like so

public class S{
  long x;

  public S(long x_){
    x = x_;

  long getX(){
    return x;

i'm trying to print x with struts-tags in jsp like so. it prints the size of h and the object type, but does not print the valie of x. any idea how to get x to print?
<s:property value="h.size"/><br/>
<s:property value="h[0]"/><br/>
<s:property value="h[0].x"/><br/>

Who is Participating?
Try making "x" public in S.

Is it a hashMap.. or a set/list ?
fivesigmaeventAuthor Commented:
arggh. thank you for catching that...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.