I have the following class:
public class HomeAction extends ActionSupport {
public String execute() {
...
}
public String getPippo() {
return "pippo";
}
I link this action in struts.xml config file:
<action name="home" class="path/to/HomeAction">
<result name="success">/jsp/home.jsp</result>
</action>
And in the related jsp page
// home.jsp
// this works
<s:property value="getPippo()"/>
// this doesn't work
${getPippo()}
I tried also different scope (page, session, application) but It says that It cannot find the function. I'm missing something?