> I'd love to have proper generics support in OGNL.  If
> you create an OGNL 
> patch, be sure to let the Struts dev list know so we
> can ensure it gets in.
> Don

Don,

I hacked OnglRuntime until it worked, but I don't think I have enough knowledge 
of OGNL and Generics to say that it would work in all cases and that it won't 
break other parts of it. That's the reason I haven't submitted it as a patch.

However, if you'd like I could create a JIRA (Bugzilla?) issue and attach the 
changes (which are described here: 
http://forums.opensymphony.com/thread.jspa?threadID=34624&tstart=0) and also a 
small example application that demonstrates the problem.

In this thread I mentioned I ran into a new issue, one that my OGNL hack wasn't 
enough to fix. It turns out that it is not true. In fact, the problem was that 
I misconfigured Struts2. Apparently, the ActionMapper is not the same as 
WebWork's and using my old xwork.xml configuration wouldn't work. After I fixed 
it, the CRUD operations worked fine on Struts2 (thanks to the OGNL hack).

I have deleted the old files (from previous post) and made available new ones, 
with the application working properly. If anyone would like to see it, download 
http://labes.inf.ufes.br/~vitor/ww_ognl_issue/Cookbook.war and run it. You will 
need a HSQLDB server running with a database called "cookbook". The source code 
is also availabe at 
http://labes.inf.ufes.br/~vitor/ww_ognl_issue/Cookbook.tar.gz (the whole 
Eclipse project). To see the error, delete the folder WEB-INF/classes/ognl from 
the WAR and try the CRUD operations. Last, but not least, I forgot to delete 
struts.locale=pt_BR from WEB-INF/classes/struts.properties. Delete it (or 
change it) so the WebSite won't appear in Portuguese.

Sorry I can't help further, but if any Struts developer would take this issue 
to him(her)self, I'd be glad to assist him(her). I think this is a big issue, 
considering that Struts 2.0 will use OGNL and backwards compatibility is taken 
very seriously, as has been said.

Vitor Souza
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=48752&messageID=99628#99628


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to