Results 1 to 4 of 4

Thread: SpEL can be used in JSP?

  1. #1
    Join Date
    Jul 2011
    Posts
    3

    Default 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. #2
    Join Date
    Mar 2011
    Location
    Washington, DC
    Posts
    60

    Default

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

  3. #3
    Join Date
    Jul 2011
    Posts
    3

    Default

    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.

  4. #4
    Join Date
    Mar 2011
    Location
    Washington, DC
    Posts
    60

    Default

    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

Tags for this Thread

Posting Permissions

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