Hi all,
I have a html:select box which is populated by an ArrayList stored in the request. The first option in the select box is text saying 'Select Option...', I have coded this as follows:
This works perfectly, but our customer has now decided that if only one option is available, it should automatically be selected and the 'Select Option...' text should not appear in the dropdown.
I thought this would be a fairly simple thing to implement but am having difficulties. I tried using a <logic:notEqual> tag as shown below:
But of course this doesn't work, I get a NoSuchMethodException: Unknow property size.
I've tried several other ideas but all to no avail. I can't imagine this is a difficult thing to do but have to admit defeat.
Somebody has suggested
struts expression language, which I have never used. Can anybody help?
Thanks in advance,
Feargal