Re: Problem with default value

2009-03-05 Thread Dave Newton
Yves Dessertine wrote: Yeah, thanks a lot Benjamin! I did *basically* what you told (building a Collection of LabelValueBean, but I did this in an action -- same result: it works :)). But I still don't understand why selecting default values hadn't worked when building a list of option with ind

Re: Problem with default value

2009-03-05 Thread Yves Dessertine
Yeah, thanks a lot Benjamin! I did *basically* what you told (building a Collection of LabelValueBean, but I did this in an action -- same result: it works :)). But I still don't understand why selecting default values hadn't worked when building a list of option with individual tags in jsp page

Re: Problem with default value

2009-03-04 Thread benjamin haimerl
hi i would use html:optionsCollection if you want to use the "selected=selected" feature form.jsp: <%@ page language="java" pageEncoding="UTF-8"%> <%...@page import="java.util.ArrayList"%> <%...@page import="java.util.Collection"%> <%...@page import="java.util.Vector"%> <%...@page import="org.apa

Problem with default value

2009-03-04 Thread Yves Dessertine
Hello, I'm having a problem with from the struts taglib. The default option is only selected in the first example (but all 3 lists are created well in jsp page). I googled a lot, but could't find similar problem. My JSP page contains 3 selects: ==