create select list from lag library without using struts
posted 13 years ago
I have a tag library called FunctionTag that I want to use to populate a select list. Normally I would use <html:select>, but the form I want the list to appear on has no entry in the formbean coresponding to the value of the select list so it throws an error (this is by design). In this situation before I have used code similar to the below: <select name=supercat> <logic:iterate name="categoryList" id="category" scope="request" type="com.ops.entity.Category"> <option value="<bean:write name="category" property="superCat"/>"><bean:write name="category" property="superCat"/></option> </logic:iterate> </select> However I import the tag library and attempt to iterate in a similar way, Tomcat can't find the bean requested in any scope. Any help would be aprieciated.