Results 1 to 3 of 3

Thread: Casting inside a web flow

  1. #1

    Default Casting inside a web flow

    Hi to all,

    I would like to cast a primitive type inside my web flow. Is it possible to do that? I will illustrate my needs pasting some invented code.

    Code:
    <evaluate-action expression="flowScope.pager.setEnd(Math.ceil((double)flowScope.numberOfItems)/((double)flowScope.properties.getNumberOfResultsPerPage())))" />
    Thanks in advance.

  2. #2

    Default

    Someone any ideas on how this can be done ? Thanks

  3. #3
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    Take a look at the OGNL specs for details on what you can and can't do:
    http://www.ognl.org

    As an aside, I'm not sure I would advise putting this kind of logic inside OGNL expessions in your flow. Once things get non-trivial it's best to move the code into a custom action and implement it in Java.

    Erwin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •