Message lookup (from key) in Test

2011-11-16 Thread Miguel Almeida
Dear all, I am unit-testing an application under the skin using SpringStrutsTestCase as base (actually, things are a bit more complicated because I'm doing it from Cucumber, but that's another story). How do you get the value of your message from within the test? The assertion I'm trying is:

using xwork validator programatically?

2011-11-16 Thread Josep García
Is there any documentation on how to call xwork validation programatically? The context: I have a dynamic form, which is a freemarker template, which can have any fields that are then saved as xml in my Struts action. I would like to have the possibility to call validation with a specific

RE: provide Helloworld application in Struts2.0

2011-11-16 Thread Praveen Jain
Dear   Ilya Kazakevich ,  I have tried to put hello.html in the root of my aplication  and put the URL as you suggest  http://localhost:8080/HelloWorldStruts2/hello.html  But now I am getting error message as under.   The requested resource (/HelloWorldStruts2/hello.html) is not available.

Re: provide Helloworld application in Struts2.0

2011-11-16 Thread Dave Newton
What libraries are you deploying in your WEB-INF/lib? Dave On Wed, Nov 16, 2011 at 1:06 PM, Praveen Jain jain_praveen_mail...@yahoo.com wrote: Dear *Ilya Kazakevich* , I have tried to put hello.html in the root of my aplication and put the URL as you suggest

object set in session in interceptor not available to JSP for first launch.

2011-11-16 Thread Jyothrilinga Rao
Hi, I have the following configuration snippet in my struts.xml: package name=*default* namespace=*/* extends=*struts-default* interceptors interceptor name=interceptor1 class=com.abc.interceptors.MenuInterceptor /interceptor interceptor-stack name=myStack interceptor-ref

RE: provide Helloworld application in Struts2.0

2011-11-16 Thread Ilya Kazakevich
javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found 1) what is your java version? 2) what is your tomcat version? 3) struts version? 4) do you have any jars inside endorsed folder of your tomcat? If so -- what versions

Re: provide Helloworld application in Struts2.0

2011-11-16 Thread bphill...@ku.edu
You may want to read the tutorials here: http://struts.apache.org/2.2.3.1/docs/getting-started.html There are detailed examples applications that you can download and run in Tomcat. -- View this message in context:

Re: object set in session in interceptor not available to JSP for first launch.

2011-11-16 Thread Bruno Klava
How about setting your object in session before the action invocation, i.e, before actionInvocation.invoke()? Bruno On Wed, Nov 16, 2011 at 4:09 PM, Jyothrilinga Rao jyoth...@gmail.com wrote: Hi, I have the following configuration snippet in my struts.xml: package name=*default*

Re: object set in session in interceptor not available to JSP for first launch.

2011-11-16 Thread Dave Newton
I think the goal was to do the check after the action executes, though--if not, then yep, just doing it before the invocation is enough. If the check needs to happen between action invocation and the JSP rendering, then the interceptor should implement a PreResultListener, which is called after

Re: object set in session in interceptor not available to JSP for first launch.

2011-11-16 Thread Jyothrilinga Rao
if my action determines that what is present in session is no more valid, then it would clear this object from session. My interceptor has to check and set the correct object in session after action has returned. The setting in session has to happen after action invocation and before JSP

Re: object set in session in interceptor not available to JSP for first launch.

2011-11-16 Thread Dave Newton
That's what implementing a PreResultListener means; it's an interface, you implement one. I still think the whole PreResultListener thing is a bit opaque, I wrote up something about that a couple of years ago--I need to dig that up. Dave On Wed, Nov 16, 2011 at 5:38 PM, Jyothrilinga Rao

RE: autocompleter struts2 onchange parameter not working

2011-11-16 Thread Martin Gainty
autocompleter contains a mechanism that triggers javascript function when value of monitored list changes e.g.sx:autocompleter name=select list={'fruits','colors'} valueNotifyTopics=/changed / Mit Freundlichen Gruben Martin __ Verzicht und

Re: object set in session in interceptor not available to JSP for first launch.

2011-11-16 Thread Jyothrilinga Rao
Oh, when you said implement PreResultListener the way I tried it out was public class MenuInterceptor implements Interceptor, PreResultListener { public String intercept(ActionInvocation actionInvocation) throws Exception { ActionContext ac = actionInvocation.getInvocationContext(); String

[S2] Displaying user entered values after failed type conversion while using getText()?

2011-11-16 Thread Burton Rhodes
I am having an issue with displaying the original value entered on a form after failed type conversion.  This bug is caused by my use of getText() in the form value fields. I'm curious how one solves this issue for making sure the field is formatted correctly upon display, but also making sure

Re: autocompleter struts2 onchange parameter not working

2011-11-16 Thread vivek jaiswal
  thanks a lot it's working properly with regards, VIVEK KUMAR JAISWAL From: Martin Gainty mgai...@hotmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, 17