This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Text box values put in the logic:iterate loop is not set in the form. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Text box values put in the logic:iterate loop is not set in the form." Watch "Text box values put in the logic:iterate loop is not set in the form." New topic
Author

Text box values put in the logic:iterate loop is not set in the form.

javas learn
Greenhorn

Joined: Nov 20, 2009
Posts: 1
Hi,
I am getting a problem while editing recprds using the logic iterate. I am putting a text box in the logic iterate tag in the jsp ie,

<logic:iterate name="LookupForm" property="bkList" id="bk">
<tr>
<td>
<html:text name="bk" property="publisher" size="50" indexed="true" />
</td>
</logic:iterate>

I can edit the publisher property after the records are listed and should get the new updated value in the action calss for further processing.
Now I am not getting the data in the action because the new value is not set in the form. Can anybody suggest how to bring the edited new data to the action calss.
The form cotains :

public class LookupForm extends ActionForm {


private String bookName = null;

private String author = null;

private String publisher = null;

private double price ;

private ArrayList bkList ;


public void reset(ActionMapping mapping,
HttpServletRequest request) {


}

public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {

ActionErrors errors = new ActionErrors();

return errors;
}

public String getBookName() {
return bookName;
}

public void setBookName(String bookName) {
this.bookName = bookName;
}

public String getAuthor() {
return author;
}

public void setAuthor(String author) {
this.author = author;
}

public String getPublisher() {
return publisher;
}

public void setPublisher(String publisher) {
this.publisher = publisher;
}

public double getPrice() {
return price;
}

public void setPrice(double price) {
this.price = price;
}

public ArrayList getBkList() {
return bkList;
}

public void setBkList(ArrayList bkList) {
this.bkList = bkList;
}

}


 
jQuery in Action, 2nd edition
 
subject: Text box values put in the logic:iterate loop is not set in the form.
 
Similar Threads
problem with struts-config.xml
ActionForm class
Help on Symbol not found
Cannot find ActionMappings or ActionFormBeans collection
HELP on Struts compile