GeeCON Prague 2014*
The moose likes Struts and the fly likes How to use textbox in iterate without index property Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to use textbox in iterate without index property" Watch "How to use textbox in iterate without index property" New topic
Author

How to use textbox in iterate without index property

Vimalraj Arumugam
Greenhorn

Joined: Feb 21, 2008
Posts: 1
Hi All,
Currently i am using struts 1.0(without index property), and i am using html:text in logic:iterate , i am able to display the values in JSP. But, i can't able to retrive the value. Please help me how to retrive text value without indexed property.

Note: is there any way to use indexing text manually.

code:

JSP:

<bean efine id="VCATDetailData1" name="vcatDetailForm" property="data" />
<bean efine id="details" name="VCATDetailData1" property="vcatSeqDetailVector" />


<logic:iterate id="detail" name="details" >

<tr >
<TD width="5" align="center" />
<bean:write name="detail" property="seqNum" />
<TD width="5" />

<asr:text name ="detail" tabindex="10" property="cfaCts" maxlength="5" style="width: 6em" filterCode="numeric" />
<TD width="15" />
<asr:select name ="detail" tabindex="35" property="cfaCtsDir" style="width: 4em" >
<html ptions name="commonStaticDd" labelName="commonStaticDd" property="dir.values" labelProperty="dir.labels"/>
</asr:select>


FORM BEAN :
public class VCATDetailData extends ActionForm {
/*
* Class Variables
*/
public String refNum;
public Vector vcatSeqDetailVector ;

// geterrs and setters
}



please help me how to set the values from JSP to FORM.


Cheers,
Vimal
 
jQuery in Action, 2nd edition
 
subject: How to use textbox in iterate without index property