0

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?

Roman C
  • 49,761
  • 33
  • 66
  • 176
Andrea Moraglia
  • 505
  • 2
  • 5
  • 9

0 Answers0