Solved

struts html:option problem

Posted on 2004-09-23
4
285 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

724 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