Re: Struts2 interceptor with JTA in Sprign

2009-02-16 Thread Wes Wannemacher
On Monday 16 February 2009 05:15:49 Torsten Krah wrote: > Am Samstag, 14. Februar 2009 17:11:55 schrieb Frans Thamura: > > i try use the non interceptor version, work well, but i find the > > interceptor cannot work with JTA related injection > > Why? > I am using S2 and Spring with JTA managed tra

Re: Struts2-Spring Integration Issue

2009-02-16 Thread Wes Wannemacher
On Monday 16 February 2009 13:47:50 Sundararaman, Anand wrote: > The validation is fine as it works when I scope my actions as singleton in > the applicationContext.xml. Problem happens only when I scope them as > prototype. > > When you say that Struts will try to use Spring to create all framewor

Re: Simple redirect, OFF-site.

2009-02-16 Thread Dave Belfer-Shevett
On Mon, 16 Feb 2009, Musachy Barroso wrote: See this page: http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html use "redirect", instead of "redirectAction" for the result type. That did it, thanks. -d -- ---..-

Re: Simple redirect, OFF-site.

2009-02-16 Thread Musachy Barroso
See this page: http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html use "redirect", instead of "redirectAction" for the result type. musachy On Mon, Feb 16, 2009 at 5:23 PM, Dave Belfer-Shevett wrote: > "/WEB-INF/jsp/Redirect.jsp"/> -- "Hey you! Would you help me to

Simple redirect, OFF-site.

2009-02-16 Thread Dave Belfer-Shevett
Hey folks, I was just searching the archives (lots of requests for redirects, but not one similar to what I need). I'm implementing a Paypal payment gateway, which requires an HTTP call to get a URL from a remote webservice, then I need to redirect the user to that URL. I have the URL (that

Re: [ANN] VTD-XML 2.5

2009-02-16 Thread Dave Newton
crack...@comcast.net wrote: VTD-XML 2.5 is now released. Is there some sort of Struts integration or something? (Please start new threads for new topics, otherwise it looks weird in threaded view.) Dave - To unsubscribe,

[ANN] VTD-XML 2.5

2009-02-16 Thread crackeur
VTD-XML 2.5 is now released. Please go to https://sourceforge.net/project/showfiles.php?group_id=110612&package_id=120172&release_id=661376  to download the latest version. Changes from Version 2.4 (2/2009) * Added separate VTD indexing generating and loading (see http://vtd-xml.sf.net/pers

Strutson release

2009-02-16 Thread Musachy Barroso
Hi all I had been waiting for Struts 2.1 to make a release of Srutson(http://code.google.com/p/strutson/). This command line tool generates empty applications based on Hibernate, JPA, Spring, Struts 2.1, Convention Plugin, REST(optional) and JQuery. Strutson can generate actions(limited support fo

Using a list in the select tag

2009-02-16 Thread Sidharth Bhatia
Hi, I have the following problem. I have a list that on one side comes out of an object called CountryCode wich has a name and code field that is linked into the list as follows: The action that is called by the form implements ModelDriven, and the user has a countryCode object

RE: Hiding s:select control: SOLVED!

2009-02-16 Thread Martin Gainty
glad to hear simple theme worked for you.. i'm wondering if you can produce inconsistent results wihen theme='ajax' if so you found a BUG can you display a small snippet of your jsp? thanks, Martin __ Disclaimer and confidentiality note Everything i

RE: Struts2-Spring Integration Issue

2009-02-16 Thread Sundararaman, Anand
The validation is fine as it works when I scope my actions as singleton in the applicationContext.xml. Problem happens only when I scope them as prototype. When you say that Struts will try to use Spring to create all framework objects, is it possible to configure such a way that the action clas

Re: Custom tag attribute as struts property?

2009-02-16 Thread ryangr
newton.dave wrote: > > ryangr wrote: >> I have a custom tag declared in my view as such: >> " showNoneOption="true" /> >> >> The problem is it then throws an exception with the message "Unterminated >> > >> Obviously there's a problem with the tag thinking it is be

Re: Custom tag attribute as struts property?

2009-02-16 Thread Dave Newton
ryangr wrote: I have a custom tag declared in my view as such: " showNoneOption="true" /> The problem is it then throws an exception with the message "Unterminated

Custom tag attribute as struts property?

2009-02-16 Thread ryangr
I have a custom tag declared in my view as such: " showNoneOption="true" /> The problem is it then throws an exception with the message "Unterminated

Re: Hiding s:select control: SOLVED!

2009-02-16 Thread mitch gorman
Rajeshwari Godbole wrote: > So I had to write my > own and 's and draw the table but I set the theme for all the tags > in the form to "simple" didn't see the original post, so i'm not sure if ajax was required (in which case what i'm about to say should be disregarded), but just setting the

Re: OGNL and OpenJPA proxies

2009-02-16 Thread Musachy Barroso
I don't know how the proxy generation works, but in your getter method you could return a wrapper to the proxy, which implements List, and delegates to the proxy. //a wrapper around a proxy sounds really wrong musachy On Mon, Feb 16, 2009 at 11:42 AM, Adam Hardy wrote: > More bad news to report

Re: OGNL and OpenJPA proxies

2009-02-16 Thread Adam Hardy
More bad news to report. My fix for the XWorkCollectionPropertyAccessor allowed OGNL to handle the list as a collection. That was simple and good but short-sighted in hindsight. The property being set on the entity bean is a list with indexed access, and for that it needs the XWorkListPropert

Re: Attribute OGNL evaluation issue on struts tag in tag file

2009-02-16 Thread Rich_m
I found a solution and posted it on my thread on the opensymphony forum: http://forums.opensymphony.com/thread.jspa?messageID=6278131 Rich_m wrote: > > I'm having the same problem, posted it on the opensymphony ognl forum > here: > > http://forums.opensymphony.com/thread.jspa?messageID=625477

Re: xWork-2.1.3 available yet that fixes problem with Struts 2.1.6?

2009-02-16 Thread Musachy Barroso
We should get an xwork build out sooner than later, to fix this problem and the one related to conversion. musachy On Mon, Feb 16, 2009 at 7:37 AM, phillips1021 wrote: > > Wes - thanks for the feedback. I'm posting the below for others who may run > into this problem and need to get the newer v

Re: OGNL ClassCastException

2009-02-16 Thread Musachy Barroso
If you can create an xwork ticket and attach a patch it will be appreciated :) musachy On Mon, Feb 16, 2009 at 5:52 AM, Adam Hardy wrote: > I figured out how to get my struts-default.xml to be loaded, in case you > were going tell me how after I asked :O > > Consequently discovered that XWorkCol

Re: xWork-2.1.3 available yet that fixes problem with Struts 2.1.6?

2009-02-16 Thread phillips1021
Wes - thanks for the feedback. I'm posting the below for others who may run into this problem and need to get the newer version of xWork. I checked the latest xWork source out using a subversion client (www.collab.net). This is the command: svn co http://svn.opensymphony.com/svn/xwork/trunk I

Re: OGNL ClassCastException

2009-02-16 Thread Adam Hardy
I figured out how to get my struts-default.xml to be loaded, in case you were going tell me how after I asked :O Consequently discovered that XWorkCollectionPropertyAccessor is actually compiled into Struts2 / XWork to allow work-arounds for OGNL, so it's not configurable. I'll build my own

Re: Struts2 interceptor with JTA in Sprign

2009-02-16 Thread Torsten Krah
Am Samstag, 14. Februar 2009 17:11:55 schrieb Frans Thamura: > i try use the non interceptor version, work well, but i find the > interceptor cannot work with JTA related injection Why? I am using S2 and Spring with JTA managed transaction too here and it works fine (if spring is the object facto

Re: OGNL ClassCastException

2009-02-16 Thread Adam Hardy
I use Sets too and they're not the problem here. The reason why this bug occurs is because the proxy that is returned by my entity bean is not recognised as an ArrayList by OGNL. Rather OGNL sees it as a Collection. I guess this is just a rare situation and a difficult one to follow. In this c

Howto move a property from a scope to the Value Stack?

2009-02-16 Thread Пламен Узунов
Hello, I have following in tiles-defs.xml: ... ... Where values in 'item' element are keys in my tiles.properties file. This I use to internationalize the tabs and menus in my Struts 2 application. I can't obtain from the lang. prop. file t

issues when using urlrewritefilter with struts2

2009-02-16 Thread Wim De Smet
Hi all, I hope this is the right venue for asking questions like this. If I'm mistaken, feel free to redirect me. :-) I'm currently working on a project where we are trying to use tuckey's urlrewritefilter[1] v3.2.0 to rewrite urls like: http://oursite.com/search?param1=¶m2=something to http://ou