html:radio in logic:iterate

2004-01-19 Thread Russell Healy
Hello

Is there an example somewhere of how to correctly use html:radio/ inside 
logic:iterate/ in Struts 1.1?

If not, does anyone know how to use it? What are the following attributes used for:

idName
value
property
The tag library docs are very short and hard to understand.

This is my code:

logic:iterate id=answerOption
   name=sectionCForm
   property=generic_2.question.questionType.answerOptions
   type=nz.govt.msd.inet.HR.HRExit.AnswerOption
html:radio idName=answerOption value=id property=???/

/logic:iterate

The AnswerOption bean has getId/setId and getSelected/isSelected

Thanks!

Russell

---
This email message and any attachment(s) is intended only for the 
person(s) or entity(entities) to whom it is addressed. The 
information it contains may be classified as IN CONFIDENCE and may be
legally privileged. If you are not the intended recipient any use,
disclosure or copying of the message or attachment(s) is strictly 
prohibited. If you have received this message in error please 
notify us immediately and destroy it and any attachment(s).
Thank you. The Ministry of Social Development accepts no
responsibility for changes made to this message or to any
attachment(s) after transmission from the Ministry.
---

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


html:radio inside logic:iterate disaster

2002-09-17 Thread Howard Miller

Hi,

Having lots of problems with html:radio inside logic:iterate. Have moved
it along but now have another problem.

Here is my code


html:form action=/survey
logic:iterate id=surv name=usersession property=validsurvey
type=com.marketingms.dynamic.ValidSurvey 
  html:radio name=surv value=%= surv.getSurveyid() %
property=validSurvey /
  bean:write name=surv property=surveydescription /br
/logic:iterate
/html:form


This doesn't compile, error is...

Generated servlet error:
[javac] Compiling 1 source file
/usr/local/jakarta-tomcat-4.1.9/work/Standalone/localhost/DynamicReporting/s
electsurvey_jsp.java:163: cannot resolve symbol
 symbol : method setValue (int) 
location: class org.apache.struts.taglib.html.RadioTag
 _jspx_th_html_radio_0.setValue( surv.getSurveyid() );
^ 1 error 

(the arrow points to the dot to the left of setValue if mail mangles this)

Any thoughts this question was asked before (in the archives) but no
answer to be found. 
Howard Miller

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: html:radio inside logic:iterate disaster

2002-09-17 Thread Howard Miller

mmm well my workaround looks like this... not sure I'm happy!

html:form action=/survey
logic:iterate id=surv name=usersession property=validsurvey
type=com.marketingms.dynamic.ValidSurvey 
  input type=radio name=surveyid value='bean:write name=surv
property=surveyid'
  bean:write name=surv property=surveydescription /br
/logic:iterate
/html:form

-Original Message-
From: Howard Miller [mailto:[EMAIL PROTECTED]]
Sent: 17 September 2002 10:18
To: 'Struts Users Mailing List'
Subject: html:radio inside logic:iterate disaster


Hi,

Having lots of problems with html:radio inside logic:iterate. Have moved
it along but now have another problem.

Here is my code


html:form action=/survey
logic:iterate id=surv name=usersession property=validsurvey
type=com.marketingms.dynamic.ValidSurvey 
  html:radio name=surv value=%= surv.getSurveyid() %
property=validSurvey /
  bean:write name=surv property=surveydescription /br
/logic:iterate
/html:form


This doesn't compile, error is...

Generated servlet error:
[javac] Compiling 1 source file
/usr/local/jakarta-tomcat-4.1.9/work/Standalone/localhost/DynamicReporting/s
electsurvey_jsp.java:163: cannot resolve symbol
 symbol : method setValue (int) 
location: class org.apache.struts.taglib.html.RadioTag
 _jspx_th_html_radio_0.setValue( surv.getSurveyid() );
^ 1 error 

(the arrow points to the dot to the left of setValue if mail mangles this)

Any thoughts this question was asked before (in the archives) but no
answer to be found. 
Howard Miller

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]