Vitals:
OS = XP
JDK=1.4.1
Struts = 1.1b3
Container = Resin 2.1.6 and Resin 3.0.0 beta
 
The idName attribute based method is not working properly for me. 
 
But first consider the following snippet from my jsp page.
 
 
<logic:iterate id="roleBean" name="roles"
type="torch.webapp.naturalgas.model.RoleBean">
<html:radio property="role" value="<%= roleBean.getIdStr()%>"/>
            <bean:write name="roleBean" property="description"/>
</logic:iterate>
            
 
This works absolutely perfectly...no problems...the rendered html looks like
this:
<input type="radio" name="role" value="1">
admin
<input type="radio" name="role" value="2">
user
 
Exactly what should happen.
 
 
Now when I change the jsp to read like this:
 
<logic:iterate id="roleBean" name="roles">
<html:radio property="role" value="idStr" idName="roleBean"/>
            <bean:write name="roleBean" property="description"/>
 </logic:iterate>
 
I get a partial set of radio buttons...no other code has changed. The
exception thrown is this:
 
[ServletException in:/WEB-INF/pages/user/add.jsp] No getter method available
for property role for bean under name org.apache.struts.taglib.html.BEAN'
 
Here is the relevant rendered html:
 
<input type="radio" name="role" value="1">
admin
[ServletException in:/WEB-INF/pages/user/add.jsp] No getter method available
for property role for bean under name org.apache.struts.taglib.html.BEAN'
 
It bothers me that it is croaking in mid process...I suspect either a bug in
Struts or some sort of incompatibility with Resin.
Any thoughts???? In the mean time I'll be using the scriptlet.
 
 
 

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

Reply via email to