OGNL 2.7

View: New views
5 Messages — Rating Filter:   Alert me  

OGNL 2.7

by Nuttquisterty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've just read that there is a new version of Tapestry out which makes use of a new release of OGNL (2.7).  http://www.theserverside.com/news/thread.tss?thread_id=45954  Among the fixes are reports of fairly good speed improvements.  I am currently in the the middle of the acceptance testing phase of an app so I am more than happy to try out WebWork 2.2.5 with OGNL 2.7.  

The OGNL section of the forum hasn't had any posts about it, and http://www.opensymphony.com/ognl hasn't been updated so I'm guessing this has been the work of the Tapestry team?  Has anyone tried it out?  The main difference I can see is that it now uses JBoss's javassist.  As it is only a minor release I wouldn't expect any API changes which would prevent it working with WebWork.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=94470&messageID=162363#162363

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: OGNL 2.7

by Nuttquisterty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just did a straight swap of the old for the new.  After a quick run through everything seems fine.  Hard to judge any speed improvements running it just on my own machine with only me using it, as it loads pretty much instantly already.  The only difference I've noticed so far are some of the OGNL exception messages have changed slightly.  Only niggle is that the new version is under a different name in the Maven central repo than the one XWork used (ognl/ognl rather than opensymphony/ognl).  Will try putting it through its paces on a semi-live test early next week.

-------

Exclude the old version from WebWork
[code]
<exclusions>
  <exclusion>
    <groupId>javax.mail</groupId>
    <artifactId>mail</artifactId>
  </exclusion>
  <exclusion>
    <groupId>opensymphony</groupId>
    <artifactId>ognl</artifactId>
  </exclusion>
</exclusions>
[/code]

Include the new
[code]
<dependency>
  <groupId>ognl</groupId>
  <artifactId>ognl</artifactId>
  <version>2.7</version>
</dependency>
[/code]
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=94470&messageID=162568#162568

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: OGNL 2.7

by Nuttquisterty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the tips Martin. we'll upgrade ognl dependency in the next webwork release (2.2.6) and xwork (1.2.3).

Cheer mate.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=94470&messageID=163582#163582

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: OGNL 2.7

by Nuttquisterty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have been in contact with Jesse Kuhnert who worked on the new OGNL release.  If we simply swap in the new version then we bug fixes and improved exception handling.  But if we want the speed improvements XWork will need to be changed to call the new API methods.  Jesse has said he will try and post on the Struts 2 dev list once the OGNL site has been updated.  So if XWork 2 gets updated we can try and backport it.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=94470&messageID=163594#163594

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: OGNL 2.7

by Nuttquisterty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Okie dokie Martin. Will keep an eye on struts2 maling list for this issue.

I think the new API method might be
[code]
  Ognl.compileExpression(...)
[/code]
but, we should wait for the post in struts2 maling list, just to double confirm.

Cheers mate.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=94470&messageID=163875#163875

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...