• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

public static field of a public inner class cant be accessed as @FQClassName@Field in struts 2

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found in the OGNL Language reference that the a static field of a class has to be referenced using the syntax @FQClassName@field where FQClassName is the fully qualified name of the target class. It is working for any normal class. But I failed to access the fields of an inner class using the same syntax.

Trying to access it as

Is not working!! I also have tried it after making Plan as public static, still dosnt work

so my question is, is there any way (at all) to access the static field of the inner class?

Thanks in advance
Saikat,
 
reply
    Bookmark Topic Watch Topic
  • New Topic