hello..it works properly now.
Ive changed html:text syntax to
<td><html:text property="<%="bitrateTxt["+index+"]"%>" size="25"/></td>
and declared bitrateTxt in my actionform as
private String[] bitrateTxt = {"","","","",""};
public String[] getBitrateTxt() {
return this.bitrateTxt;
}
public void setBitrateTxt(String[] bitrateTxt) {
this.bitrateTxt = bitrateTxt;
}
Hiroyuki Suzuki wrote:
>
> here is the declaration of bitrateTxt in my actionform
>
> private String bitrateTxt;
> public String getBitrateTxt() {
> return this.bitrateTxt;
> }
> public void setBitrateTxt(String bitrateTxt) {
> this.bitrateTxt = bitrateTxt;
> }
> private String[] bitratebox = {};
> private String[] items1 = {"500k","1M","2M","5M","6M"};
> public String[] getBitratebox() {
> return this.bitratebox;
> }
> public void setBitratebox(String[] bitratebox) {
> this.bitratebox = bitratebox;
> }
> public String[] getItems1(){
> return this.items1;
> }
>
>
> Hiroyuki Suzuki wrote:
>>
>> hi but I also declares bitrateText in my actionform..
>> Thank you for your reply..
>>
>> nuwan chandrasoma-2 wrote:
>>>
>>> Hi,
>>>
>>> You dont have a getter method for bitrateTxt property in the bean your
>>> trying to access (item1).
>>>
>>> Thanks,
>>>
>>> Nuwan
>>>
>>> Hiroyuki Suzuki wrote:
>>>> hello guys..Im Hiroyuki and im new here..
>>>> Hope you could help me with some of my inquiries.
>>>>
>>>> I have this JSP
>>>> <logic:iterate name="metaEntryConfirmForm" indexId="index" id="item1"
>>>> property="items1">
>>>> <tr>
>>>> <td><html:multibox property="bitratebox"><bean:write
>>>> name="item1"/></html:multibox><bean:write name="item1"/></td>
>>>> <td><html:text name="item1" property="bitrateTxt" indexed="true"
>>>> size="25"/></td>
>>>> <td><html:multibox property="haishinselect"
>>>> value="<%="goohigashi"+index%>"/></td>
>>>> <td><html:multibox property="haishinselect"
>>>> value="<%="goonishi"+index%>"/></td>
>>>> <td><html:multibox property="haishinselect"
>>>> value="<%="gooBB"+index%>"/></td>
>>>> </tr>
>>>> </logic:iterate>
>>>>
>>>> my action form contains:
>>>> private String[] bitratebox = {};
>>>> private String[] items1 = {"500k","1M","2M","5M","6M"};
>>>> public String[] getBitratebox() {
>>>> return this.bitratebox;
>>>> }
>>>> public void setBitratebox(String[] bitratebox) {
>>>> this.bitratebox = bitratebox;
>>>> }
>>>> public String[] getItems1(){
>>>> return this.items1;
>>>> }
>>>>
>>>> When i try to run it, it produces the ff error
>>>> javax.servlet.ServletException: Bean items1 のプロパティ bitrateTxt
>>>> に対するゲッターメソッドがありません
>>>> which means no getter method for Bean item1 property bitrate.
>>>>
>>>> What is wrong with my code?
>>>> please help me
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/html%3Atext-inside-logic%3Aiterate-tf4199265.html#a11957193
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]