Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6243299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:06:50+00:00 2026-05-24T12:06:50+00:00

Let’s say I’m using Spring and have a controller that returns a model containing

  • 0

Let’s say I’m using Spring and have a controller that returns a model containing a field data that is an instance of Jackson’s ObjectNode. Within data I have a StringBuilder named log.

In the JSP I use

${data}

and I get this output:

{"log":hello world}

Now if I want to access log I thought I could use

${data["log"]}

but all I get is

javax.el.PropertyNotFoundException: Property 'log' not found on type org.codehaus.jackson.node.ObjectNode
    javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:214)
    javax.el.BeanELResolver$BeanProperties.access$400(BeanELResolver.java:191)
    javax.el.BeanELResolver.property(BeanELResolver.java:300)
    javax.el.BeanELResolver.getValue(BeanELResolver.java:81)
    javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
    org.apache.el.parser.AstValue.getValue(AstValue.java:123)
    org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
    org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:938)
    :

${data.log} shows the same.

I know that according to the EL data.log looks for a method getLog() on data, but IIRC Maps<?,?> support this kind of access to its keys. Is there any similar way to make it work with Jackson? Or if that just doesn’t work this way, how would you do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:06:51+00:00Added an answer on May 24, 2026 at 12:06 pm

    Now that I revisited this issue, I wrote my own ELResolver for ArrayNode and ObjectNode. Helpful links were

    • http://java.sun.com/products/jsp/reference/techart/unifiedEL.html#Features_of_the_Unified_EL (look for “Writing an ELResolver Implementation”)
    • http://pukkaone.github.com/2011/01/03/jsp-cross-site-scripting-elresolver.html

    EDIT:
    As far as the ArrayNode is concerned, it helped me to look at Tomcat’s ArrayELResolver. It’s pretty easy to go from there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I'm building a data access layer for an application. Typically I have
Let's say that we have an ARGB color: Color argb = Color.FromARGB(127, 69, 12,
Let's say i have an android device that has some extra buttons on it,
Let's say that I am using a 3rd party utility tool and I can't
Let's say that I have an arbitrary string like `A man + a plan
Let's say I have this: public DefaultListModel model = new DefaultListModel(); how do i
Let's say I have a table that looks something like this: ------------------------------- id|column2|column3 |column4
Let's say you have a string that looks like this: token1 token2 tok3 And
Let's say that I have a rails plugin called wipy on GitHub. It has
Let's say I have a dataset, which can be neatly classified using weka's J48

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.