You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Hiroyuki Suzuki <je...@atenista.net> on 2007/08/01 12:19:31 UTC
html:text inside logic:iterate
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
--
View this message in context: http://www.nabble.com/html%3Atext-inside-logic%3Aiterate-tf4199265.html#a11943047
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: html:text inside logic:iterate
Posted by Hiroyuki Suzuki <je...@atenista.net>.
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: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>>
>>
>>
>
>
--
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: html:text inside logic:iterate
Posted by Hiroyuki Suzuki <je...@atenista.net>.
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: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/html%3Atext-inside-logic%3Aiterate-tf4199265.html#a11956936
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: html:text inside logic:iterate
Posted by Hiroyuki Suzuki <je...@atenista.net>.
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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/html%3Atext-inside-logic%3Aiterate-tf4199265.html#a11946326
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: html:text inside logic:iterate
Posted by Nuwan Chandrasoma <my...@gmail.com>.
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org