1 Reply Latest reply: Nov 12, 2003 7:56 PM by 101342 RSS

    UIX JSP equivalent for JSTL 'set'?

    4996
      Is there a UIX JSP tag that performs an analogous function to the JSTL tag 'set'? I would like to be able to setup local variables so that I don't have to repeat extended expressions.
        • 1. Re: UIX JSP equivalent for JSTL 'set'?
          101342
          You can (generally) speaking use JSTL's set in UIX JSP pages, and (mostly) use JSTL JSP tags with UIX JSP tags.
          So, you should just be able to use <c:set>.

          The major complexity in integrating the two is remembering that JSTL sets and iterates immediately, but UIX JSP evaluates EL expressions only once the last UIX JSP tag completes. This doesn't cause much of a problem with <c:set> or <c:if>, but does cause some major problems with <c:forEach>.

          (A very similar problem is encountered when using JSTL tags with Java Server Faces JSP tags, so this is just a painful fact-of-life.)