john lee wrote:
Could any expert tell me why?
<bean:write name='myselection' property='agent'/> has the value of "illinois" .
but, the following code do not set value="illinois', still literal string of "<bean:write name='myselection' property='agent'/>", or this is the limition of Struts 1.x?
<html:select property="agent">
<logic:iterate id="myselection" name="mylist" scope="session"
type="AgentForm">
<html:option value="<bean:write name='myselection'
property='agent'/>">
<bean:write name='myselection' property='agent'/>
</html:option>
</logic:iterate>
</html:select>
no matter i use single quote or double quote around, still not solve the problem, pls give me ur hands,
tks in advance
john
---------------------------------
Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.
<html:option value="<bean:write... is not valid JSP syntax. Custom
action tags cannot be nested like that. You can use JSTL:
<html:option value="${mylist.agent}"/>
or, if you don't have JSTL available to you, fall back to an RT expression:
<bean:define id='agent' name='mylist' property='agent'/>
<html:option value="<%=agent%>"/>
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]