× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Stephen,

I have run into this with the option tag for a default value and ended

up using an HTML option tag. My page looked something like:

<html:select...
  <option value="">&nbsp; &nbsp; ...</option>
  <html:options name="businessRulesBean" property="recentList"/>
</html:select>

I can't recall what was wrong with using the html:option tag in this 
case, but I am certain I tried it and it would not work. It is possible
that 
it does a skip on the body although a quick look at the code says that

shouldn't have been the case.

David Morris

>>> Gibson.Stephen@xxxxxxxxxxxxxx 04/28/03 07:29AM >>>
Greetings,
 
I have issue I would like to see if anyone has run into.  I am using
Struts
1.1b3 and  I am trying to load an array list as an html:select.  I also
want
to default a value based on the user sign -in.
 
When I execute this code, 
 
<bean:define id="claimSysID" name="culb" property="claimSystemID"
type="java.lang.String"/>

<bean:define id="claimName" name="culb" property="name"
type="java.lang.String"/> 

<html:select property="coordinator" size="1">

    <html:option value="<%= claimSysID %>">

        <%= claimName %>

    </html:option>

    <html:options collection="claimsCoordinatorList" 

        property="coordinatorID"

        labelProperty="coordinatorName" />

</html:select>

 
 The user name  <%= claimName %> is displayed correctly but I get the
literal value  <%= claimSysID %>  back as the selected option.  How do
i
display a variable in the html:option  value  attribute?  If I select
a
value from the list (from the html:options portion) everything works
as
expected.  culb is the bean in the session that has the name and ID of
the
logged in user.
 
Thanks,

Stephen Gibson 

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.