I already searched and found several approaches here, but I can\'t get them working for my project.
I want to show an edit page for a list of objects, which should
Thanks to all of you getting along with this issue! Your hints were most useful. I finally got it up and running rewriting everything from the scratch. I can edit my models now using the following Action-Class:
public class TeilzeitgradEditAction implements ModelDriven> {
List teilzeitgrads;
private String tzgTypKey;
private Integer jahr;
public String execute() {
return SUCCESS;
}
@Override
public List getModel()
{
if(teilzeitgrads == null) {
teilzeitgrads = getTeilzeitgradListByTypAndJahr(tzgTypKey, jahr);
}
return teilzeitgrads;
}
public List getTeilzeitgrads()
{
return teilzeitgrads;
}
public void setTeilzeitgrads(List teilzeitgrads)
{
this.teilzeitgrads = teilzeitgrads;
}
// getters and setters for local attributes
}
and this JSP-Code:
Thanks a lot for your support!
Cheers, Lenzo