2 Replies Latest reply on Jan 31, 2009 10:33 PM by joblini

    java code inside xhtml file

    ramanujareddy

      hi all,
      is it possible to use scriptlets in xhtml that means i want to write java coding inside xhtml, if not possible what is the alternative for this.
      i can use scriptlets  inside jsp like in xhtml
      i want code inside xhtml like following snippet


      <%String s=request.getParamaeter();%>
      <%new Date()%>
      <%if(true){
      }%>



        • 1. Re: java code inside xhtml file
          agori

          This is antiquated programming. Seam and frameworks on which Seam is dependent, use a different approach to embedded scriptlet.


          If you don't want to change your programming style, and embrace the Seam-JSF-Wichet-GWT programming style, you should stay on a pure JSP environment.


          Anyway, everything you can do with scriptlets is doable in Seam. Usually in a much more maintainable way.

          • 2. Re: java code inside xhtml file
            joblini

            With xhtml, you use EL (expression language) instead of scriptlets.