aspose file tools
The moose likes JSP and the fly likes create select list from lag library without using struts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "create select list from lag library without using struts" Watch "create select list from lag library without using struts" New topic
Author

create select list from lag library without using struts

Oliver Moore
Ranch Hand

Joined: Mar 04, 2003
Posts: 44
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.


Regards,<p>Ols
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: create select list from lag library without using struts
 
Similar Threads
ArrayList in <HTML:SELECT> tag
Struts and JSP
logic:match , logic:notEqual not working
In List Highlighting previous selected values
Logic iterate