You can use the s:set tag for this.
For example this will call getA() from your action and put the value into "avalue", don't use name instead of var
And then you can reference it like so on the JSP:
Print value defined in set tag :  
Which will print out the value.