Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use textbox in iterate without index property

 
Vimalraj Arumugam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic