• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

create select list from lag library without using struts

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic