File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use OGNL independently with out frame woks

 
rajduvvi reddy
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am having some problem with OGNL.
I want to use OGNL independently with out using the frame work. How can i make use of OGNL with Simple JSP
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be able to do that.
put the ognl jar file in classpath and see the OGNL developer guide http://www.opensymphony.com/ognl/html/DeveloperGuide/index.html for how to embed it into application
 
rajduvvi reddy
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as i know, OGNL is EL which has been internally used when we use struts2, We can write power full expression language which is given by OGNL

ex: <s:select label="Select" name="carMake" list="#{'make1':'Ford', 'make2':'Honda', 'make3':'Toyota'}" />

this line is JSP and it is Struts2 tag (but it is internally evaluated by using OGNL). now i want to use such expressions and want to evaluate them by using OGNL.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the OGNL documentation; using OGNL outside of S2 is trivial. If you want to use it in your own custom tags then just use it--but if you want to use it in somebody *else's* custom tags that'll be a lot more work.
 
rajduvvi reddy
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To use it in, my own custom tags.. I need to configure "expression evaluator" to as OGNL, i didn't found any where how to configure that. If any body knows , Plzz help me in that
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic