-
Re: Struts bean
ajohnson1200 Dec 14, 2010 8:58 AM (in response to philippe.goncalves)Could you post the full Java / FTL code here?
AJ
-
Re: Struts bean
philippe.goncalves Dec 14, 2010 9:05 AM (in response to ajohnson1200)Hi Aaron, I don't think I can post all the code because it's a private project (Actually, I'm modifying one of your commercial plugin) but here is the partial code:
ftl:
<@s.textfield name="bean.title" />
Java action:
public class testAction{
protected Bean bean;
public Bean getBean() {
return bean;
}public void setBean(Bean bean) {
this.bean = bean;
}...
}
Java pojo:
public class Bean{
private String title;
private String description;
public String getDescription() {
return description;
}public void setDescription(String description) {
this.description = description;
}public String getTitle() {
return title;
}public void setTitle(String title) {
this.title = title;
}public Bean() {
}}
Thanks
-
Re: Struts bean
ajohnson1200 Dec 14, 2010 9:46 AM (in response to philippe.goncalves)Maybe send me the code offline (aaron@jivesoftware.com), will be hard to troubleshoot without seeing what you're doing.
AJ
-
-
-
Re: Struts bean
philippe.goncalves Dec 20, 2010 7:34 AM (in response to philippe.goncalves)Found my problem, for those who got the same, you have to override the acceptableParameterName method from JiveActionSupport.