Announcement Announcement Module
Collapse
No announcement yet.
SpEL can be used in JSP? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SpEL can be used in JSP?

    Hi,

    Quick question: In Spring 3.0.5, can SpEL work in JSP?

    On some machines, it works. But others don't. In not-working case, "${exp}" is interpreted as JSP EL instead of SpEL, I guess.

    The example of the SpEL expressin is "${list.size()}".
    That is completely fine for SpEL but not for JSP EL.

    We all are using same source and eclipse project environment form our SVN repository but the results are different.

    Any advice?


    Thanks.

  • #2
    Make sure all of spring related jars are loaded first before the webcontainer load its classes.

    Comment


    • #3
      Hi,

      Thank you for your reply.

      How can I control the loading order of jar files?
      I am using STS 2.7.1 with maven in the project set.
      Just changing the order of dependencies entries in pom.xml file? Or something else?



      Thanks.

      Comment


      • #4
        Changing the order of pom.xml doesn't help. Make sure that you change the order of class loader in your web container such as tomcat or Websphere.
        I hope this will help

        Comment

        Working...
        X