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:
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
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.
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
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
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
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:
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*
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
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
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
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
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
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
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
15 matches
Mail list logo