File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes html:text inside logic:iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:text inside logic:iterate" Watch "html:text inside logic:iterate" New topic
Author

html:text inside logic:iterate

Hiroyuki Suzuki
Greenhorn

Joined: Jul 25, 2007
Posts: 24
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

Joined: Jul 03, 2007
Posts: 46
You can achieve this using indexed property.

Try this link Indexed Property Example
Hiroyuki Suzuki
Greenhorn

Joined: Jul 25, 2007
Posts: 24
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

Joined: Jul 25, 2007
Posts: 24
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:text inside logic:iterate
 
Similar Threads
Still on Validation
How to use checkbox in iterate tag ?
Javascript - Arraylist
html:checkbox or html:multibox
On htm:multibox