Re: How to StrutsJUnit4TestCase?

2011-08-08 Thread Christian Grobmeier
Hello Maurizio, I do some change on the S2 Junit4 plugin, now it should be simpler run a test with or without spring. Could you test the latest version of the aforementioned plugin [1]? Christian, is this [2] your use case? WDYT? is more intuitive? not tested it yet, but yes, that is what I

Re: How to StrutsJUnit4TestCase?

2011-08-08 Thread Christian Grobmeier
Hello Gabriel, thanks for the work, it looks really good! What I not like so much is the fact that the test methods name must match the Actions name. I didn't find this very intuitive. I could use the @Config option, which I like much more, but then i face the problem that one test method = one

Re: How to StrutsJUnit4TestCase?

2011-08-08 Thread Maurizio Cucchiara
Hi Christian, thanks for your precious feedback. your idea makes a lot of sense indeed! Unfortunately the struts.xml file name is one of the strong convention of S2 (the file name appears inside the code) and after a very quick look it would not seem simple to replace. Anyway, I'll take a deep

Re: How to StrutsJUnit4TestCase?

2011-08-08 Thread Maurizio Cucchiara
Maurizio Cucchiara Ignore the last rows of my email: I did not read Christian's email about the Config annotation and I did not take a look at Gabriel's code. A good reason to take a deep look at this too. @Gabriel: In the meanwhile, considering your experience, if you have any suggestion, it will

OGNL context lookup

2011-08-08 Thread CRANFORD, CHRIS
I have a JSP page where I need to iterate over a list of strings and for each string, I need to query the OGNL stack and get the value that string name represents followed by adding the name/value pair to a URL. I thought something like the following would work but it doesn't. Can anyone help?

Re: How to StrutsJUnit4TestCase?

2011-08-08 Thread Gabriel Belingueres
Hi, You can execute more than one action in the same test method, as long as you create a new request and actionProxy, something like this: @Test @Config(actionName=foo) public void someTest() { ...some test code... // second request: request = new MockHttpServletRequest(); // and then

Re: [S1] Validator configuration error [bump]

2011-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 8/3/2011 12:57 PM, Christopher Schultz wrote: I can always just patch my local struts-config.dtd file to get rid of the error. I'm happy to supply a (nearly trivial) patch to the 1.x branch just in case there is another release. This is

Re: How to StrutsJUnit4TestCase?

2011-08-08 Thread Gabriel Belingueres
Hi Maurizio: I'm yet about to look at your code. My experience was pretty much the same as Christian, in that I wanted to use Junit 4 and the supporting classes were not very easy to work on. I think that you get more value when you can be productive in no time. One you can achieve this with

Re: How to StrutsJUnit4TestCase?

2011-08-08 Thread Christian Grobmeier
Hello Maurizio, today i have tested with your code and everything works well so far. There is only one thing I cannot understand, but that is maybe not related to your code. When I run it junit in eclipse, everything fine. Do I do it with mvn test, it suddenly stops. I do not see any exception,

Validators issue

2011-08-08 Thread Mano Pájaro
Hello list! I'm trying to use AJAX validators in my form, I have a component in my JSP like: s:select key=alumn.sge2ParamByZone list=%{zones} listValue=detail label=Zone/ where %{zones} is a list of objects Sge2Param, which detail attibute returns the name of each object. When I'm using Validators

Any Cross Site Scripting(XSS) Vulnerabilities with Tiles 2.0.6

2011-08-08 Thread srvanukuri
Hello, We are using struts2 and tiles 2.0.6 and we want to verify and see if we need to update the tiles version if there are any cross site scripting(xss) or remotes code execution issues identified with tiles 2.0.6. Early response is appreciated. Thanks, Sridhar -- View this message in