• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:text inside logic:iterate

 
Hiroyuki Suzuki
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello there again..
this is a continuation on my post earlier about hmtl:multibox

this is my JSP

ActionForm for text

the text "bitrateText" will produce 5 rows..
My problem is when I enter values on Row1 text,
when I click submit, the value I entered is also visible on Row2-5 text.

Maybe, because Im only using one name for html:text which is "bitrateText"
How can I make this different for each text so that only text that has value on it will be submitted?

Please help me guys..
Arigatou..
 
Ranjit Gopinathan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can achieve this using indexed property.

Try this link Indexed Property Example
 
Hiroyuki Suzuki
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranjit...
Thanks for the info..

Ive made some revision on my JSP



for my html:text, i used item1 for its name...

for my Actionform


i also define bitrateTxt in my actionform

but, when i try to execute it,
an error occurs
avax.servlet.ServletException: Bean items1 のプロパティ bitrateTxt に対するゲッターメソッドがありません
which means no getter method for Bean item1 property bitrate.

What is wrong with my code?
please help me
 
Hiroyuki Suzuki
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys..
I have already solved this problem


for html:text

↓ changed into this


in my actionform
i declared bitrateTxt as


it works properly now
 
Varun Selva
Ranch Hand
Posts: 48
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hiroyuki Suzuki wrote:hello guys..
I have already solved this problem


for html:text

↓ changed into this


in my actionform
i declared bitrateTxt as


it works properly now



If we build the string inside the property attribute, Not working.
But below code is working fine.







 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic