Erik Beeson wrote:
I have and action that has two getters that return ints. Is there a wayNope. You're doing it the right way. I'm not sure what you're adding, but probably the sum has some kind of business meaning and this business logic should be in the model.
for my view to render the sum of them? Currently I use a bean that has a
method int sum(int x, int y) { return x+y; }. Is there a better way?
As a general rule of thumb, if you are having trouble trying to get the expression language to do something, it may be a sign that you are embedding business logic, rather than presentation logic, in your JSP. The WebWork EL is is fairly powerful, but I almost never use any of it's more advanced functionality.
-Maurice
-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about your web server security? Click here for a FREE Thawte Apache SSL Guide and answer your Apache SSL security needs: http://www.gothawte.com/rd523.html
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork