Vamshi Jampala wrote:
Its better generally if you explain your problem a little more clearly than using emoticons which don't fit the situation.
I neeeed categoryIdentifier value passed in to the action as category
I can't understand what you mean by this. Right now all that I can see is that you are generating multiple select boxes which have 4 elements each and have a different name. Now do you want to update the value of the
div to the selected element in the select box?? There are multiple select boxes so whose value do you want to set to the
div?? I can't see your
s:iterator tag ending, where does it end?? If it ends after the
div tag, then you'll have multiple divs with the same id, so you can't operate on them using javascript. And what about the
s:url tag that you've used. Do you want to update its value to?? The
s:url and
s:param tag will be evaluated on the server side, so changing the value of the select box won't change the value of the
s:param tag. Also you can use the
var attribute to simplify your select tag. Right now it looks like
but you can use the
var attribute of the
s:iterator tag as