reset password
Author Message
cydneyauman
Posts: 12
Posted 12:16 Feb 17, 2013 |

For MVC can parameters be passed in to display the correct information?  Note - the methods are not inside the .jsp.file.

For example:

      <td> ${project.percentFunded(sponsorEntries, project.funding)} %</td>

and
      <td>$ ${project.sumPledges(sponsorEntries)}</td>

 

or must it always appear like so - only using getters/setters:

      <td> ${project.percentFunded} %</td>

and
      <td>$ ${project.sumOfPledges}</td>

Last edited by cydneyauman at 12:38 Feb 17, 2013.
cysun
Posts: 2935
Posted 13:47 Feb 17, 2013 |

With Tomcat 7 you should be able to do both, but application servers implementing older versions of Servlet/JSP specs only support the getter/setter (i.e. property) syntax.