Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why aren't EL interpreted in JSP file?  RSS feed

 
Joey Sanchez
Ranch Hand
Posts: 92
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Environment:
  • Tomacat 8
  • Maven
  • Struts2


  • Why doesn't work EL in this JSP file?

    el.jsp


    and what I see in the web page is:

     
    Bear Bibeault
    Author and ninkuma
    Marshal
    Posts: 66186
    146
    IntelliJ IDE Java jQuery Mac Mac OS X
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Most likely cause is usually a mis-configured web.xml.

    See: http://www.coderanch.com/how-to/java/ElOrJstlNotWorkingAsExpected

     
    Joey Sanchez
    Ranch Hand
    Posts: 92
    Java Linux Netbeans IDE
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    web.xml



    I figured out, and yes it was a misconfigured web.xml. I had to change



    with this other code

     
    Bear Bibeault
    Author and ninkuma
    Marshal
    Posts: 66186
    146
    IntelliJ IDE Java jQuery Mac Mac OS X
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Yup, that's the usual culprit.

     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!