• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Evaluate a bean expression with Spring EL with application context beans

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I've been working on this a few days, searching for a solution but I'm stuck.


In my java application (command line, not web) I'm using Spring to wire the application classes. In my applicationContext.xml I have this



This works fine. Inside my app I want to evaluate similar strings, and I've developed this method



But when I run this code, a error is thrown



I think I'm near my objective, but I do not know how to get application context beans into he parser, or how to get it working anyone could help ?
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you mind putting the complete stack trace? Also, which version of Spring are you using?
 
Ranch Hand
Posts: 499
Spring AngularJS Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to code ranch.

I think you have cross posted this question from here

Please read this cross posting link to know about code ranch cross posting policy.
reply
    Bookmark Topic Watch Topic
  • New Topic