OGNL Wiki

Rationale

I started this site to gather together user level information about OGNL, http://ognl.org. I have to use OGNL in Struts 2 and there are lots of questions that are not easy to answer with the existing documentation: http://www.ognl.org/2.6.9/Documentation/

I am not affiliated in any way with the OGNL creators and maintainers. I tried subscribing to some of the mailing lists they have available and the email bounced. I did not get any reply from the email they have on the Contact Us page. This does not diminish in any way the value of a great product, I feel I can add some value by gathering together bits of information as I stumble upon them.

Points of interests

The Type of an object is important, see that page for a description of the possible types. In Ognl you can also have a Variable.

For me the question that started it all is Comparing Http Parameters With Variables.

Here are some raw bits from the UnitTest pages: ArithmeticAndLogicalOperatorsTest OperatorTest.

Note that Struts 2 is extending/changing Ognl a bit, make sure to check out the following page: http://struts.apache.org/2.0.11.1/docs/ognl-basics.html

Debugging

I am putting together some thoughts on how to Debug.

Add a New Comment
Page tags: code ognl struts2
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License