Hallo zusammen,
ich bin neu in diesem Forum und möchte zuerst ein "nice to be here" loswerden. Nun starte ich nach einem Projekt in Struts1 nun mit Struts2 und begegne prompt den ersten Hürden. Sobald ich versuche, nach div. Tutorials einen Radiobutton zu benutzen, bekomme ich die Fehlermeldung:
SCHWERWIEGEND: Servlet.service() for servlet default threw exception
tag 'radio', field 'list': The requested list key 'salutations' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
Der Aufruf:
http://localhost:8080/test/public/xyz.action
Die Konfiguration:
<action name="xyz" class="....Xyz">
<result name="input">/webContent/pages/public/Xyz.jsp</result>
<result>/webContent/pages/public/Xyz.jsp</result>
</action>
Die Action-Klasse:
...
public class Xyz extends StandardSupport {
...
private List salutations;
public String execute() throws Exception {
salutations = new ArrayList();
salutations.add(getText(SALUTATIONMR));
salutations.add(getText(SALUTATIONMRS));
return SUCCESS;
}
public List getSalutations() {
return salutations;
}
public void setSalutations(List salutations) {
this.salutations = salutations;
}
...
Die zugehörige Implementation im jsp:
<s:form action="xyzAdd">
<s:radio name="salutations" list="salutations"/>
...
Ich finde einfach meinen Fehler nicht ... *haarerauf*
falseawake
ich bin neu in diesem Forum und möchte zuerst ein "nice to be here" loswerden. Nun starte ich nach einem Projekt in Struts1 nun mit Struts2 und begegne prompt den ersten Hürden. Sobald ich versuche, nach div. Tutorials einen Radiobutton zu benutzen, bekomme ich die Fehlermeldung:
SCHWERWIEGEND: Servlet.service() for servlet default threw exception
tag 'radio', field 'list': The requested list key 'salutations' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
Der Aufruf:
http://localhost:8080/test/public/xyz.action
Die Konfiguration:
<action name="xyz" class="....Xyz">
<result name="input">/webContent/pages/public/Xyz.jsp</result>
<result>/webContent/pages/public/Xyz.jsp</result>
</action>
Die Action-Klasse:
...
public class Xyz extends StandardSupport {
...
private List salutations;
public String execute() throws Exception {
salutations = new ArrayList();
salutations.add(getText(SALUTATIONMR));
salutations.add(getText(SALUTATIONMRS));
return SUCCESS;
}
public List getSalutations() {
return salutations;
}
public void setSalutations(List salutations) {
this.salutations = salutations;
}
...
Die zugehörige Implementation im jsp:
<s:form action="xyzAdd">
<s:radio name="salutations" list="salutations"/>
...
Ich finde einfach meinen Fehler nicht ... *haarerauf*
falseawake