Solved

struts html:option problem

Posted on 2004-09-23
4
277 Views
Last Modified: 2010-03-31
Hai,

I have:

<html:select property="projects" multiple="" style="width:70%;">
      <logic:iterate name="projekteAndAufgabe" id="projekt">
      <logic:iterate name="projekt" property="aufgabeViews" id="aufgabe">
           <html:option value="test">
                        <bean:write name="projekt" property="projektNummer" />
                       <bean:write name="projekt" property="bezeichnung" /> --
                     <bean:write name="aufgabe" property="nummer" />
                    <bean:write name="aufgabe" property="kurzBeschreibung" />
           </html:option>
      </logic:iterate>
       <logic:iterate>
</html:select>

but i have the option value as "test", i want it to be replaced it with *bean content* which is present inside the option tag.

PS: I cannot use collections here.

Not sure if it is simple, but i go with maximum points since it is urgent. Any ideas ?
0
Comment
Question by:ldbkutty
  • 3
4 Comments
 
LVL 37

Expert Comment

by:zzynx
ID: 12132149
0
 
LVL 37

Accepted Solution

by:
zzynx earned 500 total points
ID: 12132236
0
 
LVL 32

Author Comment

by:ldbkutty
ID: 12132330
>> Does this help?
YES !!! :-)

For future reference, i will post the solution here:

<html:select property="projects" multiple="" style="width:70%;" styleClass="zeiterfassung_data">
                                                                  <logic:iterate name="projekteAndAufgabe" id="projekt">
                                                                        <logic:iterate name="projekt" property="aufgabeViews" id="aufgabe">
                                                                              <html:option value="${projekt.projektNummer} -- ${aufgabe.nummer}">
                                                                              <bean:write name="projekt" property="projektNummer" />
                                                                              <bean:write name="projekt" property="bezeichnung" /> --
                                                                              <bean:write name="aufgabe" property="nummer" />
                                                                              <bean:write name="aufgabe" property="kurzBeschreibung" />
                                                                              </html:option>
                                                                        </logic:iterate>
                                                                  </logic:iterate>
                                                                  
                                                            </html:select>
0
 
LVL 37

Expert Comment

by:zzynx
ID: 12132344
>>>> Does this help?
>>YES !!! :-)

:°)))

Thanks for accepting
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Increment alphanumeric sequence 6 80
triangle challenge 4 77
wordappend challenge 8 85
Error with Java/Cache JDBC Classpath 2 19
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now