Hi,
MessageStoreInterceptor is very handy in preserving error messages. This is
very useful in POST-REDIRECT-GET pattern. An action handling POST can store
action errors which are available for action/view processing GET request after
POST.Many times we also need to preserve values entered by u
I would suggest you to use a profiler to find out for sure what is
taking the time. You can use VisualVM which comes with java 6 or the
excellent jrockit mission control(free as well).
musachy
On Mon, Nov 2, 2009 at 2:50 PM, CS Wong wrote:
> Hi, thanks for answering, I noticed that the quoted t
Hi, thanks for answering, I noticed that the quoted text in your reply
seemed to be garbled so I guess something screwed up when I sent in my
question. I've pasted my original question in a pastebin here (
http://paste2.org/p/495951) so that you can read it better. Sorry for any
inconvenience cause
It is the same struts code running all the time, so it should as
fast(or slow) every time. The only thing that changes is the call to
the EJB, so I would bet that the problem is there.
musachy
On Mon, Nov 2, 2009 at 9:57 AM, CS Wong wrote:
> Hi,
>
> I seem to be having a performance issue in som
both ${} and %{} are supported in 2.1.x
On Mon, Nov 2, 2009 at 11:10 AM, Greg Lindholm wrote:
> Here is the link [1] for "Parameters in configuration results", and yes it
> is suppose to be ${} not %{} (but I thought it had been changed to support
> %{}, hard to keep straight.) so you want to use
I don't have any idea why input is throwing this expception.
I tried keep the break point in the debug ...but you hardly find where the flow
goes.
when click on submit with garbage values , first getter,setter methods, than
prepare methods than it goes to struts.xml and then come back to ge
Here is the link [1] for "Parameters in configuration results", and yes it
is suppose to be ${} not %{} (but I thought it had been changed to support
%{}, hard to keep straight.) so you want to use 3a not 3b.
You could show your getter, make sure it is public, returns a string and no
typos.
In the
I have that book and thoroughly enjoyed it, gave me a great platform for
me to transition from S1 to S2...
So I second the recommendation
-Original Message-
From: Phillips, Bruce A [mailto:bphill...@ku.edu]
Sent: 02 November 2009 18:37
To: Muthu Velappan; Struts Users Mailing List
Subjec
Hi Greg,
Creating a variable in the action , seems not working.
Here are the steps that i have done.
step 1. Create a variable considTypeCode in the action , and so is getter
,setter.
step 2. Create a prepare() method in the action, which sets the value of the
considTypeCode to determine what w
You may want to get Dave Newton's apache struts 2 web application
development book (2009, Packt Publishing) which covers many of the newer
features of Struts 2.1.X.
Bruce
-Original Message-
From: Muthu Velappan [mailto:muthu.velap...@aspiresys.com]
Sent: Sunday, November 01, 2009 10:30
Hi,
I seem to be having a performance issue in some of my Struts 2 actions. On
several of my pages, I render a couple of drop down tags in my output page.
I populate the drop down tags by instantiating an tag and invoking
the methods in the bean to call an EJB service and populating a collection
That is because of the default autowiring.
I use the convention plugin for Struts and I take advantage of the
spring auto wiring (by name) to automagically inject my service layer.
You can do the same for the rest. Check out the reference guide over at
spring framework to do so. Weirdly I like hav
>
> If I am understanding you then that is fine.
>
> I often do the same, as I like to have a DAO as well as a Service layer.
> So inject my DAO's into my Service and my Service into my actions.
>
> Good ole' code by interface approach :)
>
It's the means that I have to employ to go down the next
Hey Roger,
If I am understanding you then that is fine.
I often do the same, as I like to have a DAO as well as a Service layer.
So inject my DAO's into my Service and my Service into my actions.
Good ole' code by interface approach :)
-Original Message-
From: RogerV [mailto:roger.var..
In Mannings "Struts 2 in Action" there's an example of Spring
setter-injection by simply specifying the bean to be injected with a basic
applicationContext.xml like;
and everywhere where my action classes have a setSecurityManager() method
the PasswordChecker is injected. This works brilliant
Hi
I am using Struts 2 together with jfreechart and displaytag, to get this
working I could not use /* , to get it working I have to modify the mapping
to use
responseOverrideFilter
*.action
responseOverrideFilter
*.jsp
Best regards
Arne Johnsson
Yes, this is what I do also, I have an app with a webservice so needed
it to not get caught in the Struts filter. It is a shame however, as I
would like to have kept the URLs neat without the action on the end. But
as they say, don't get caught up in what the URL says.
-Original Message-
F
I have a number of servlets in the same web app so to make it work I have
restrict the filter mapping as follows.
struts2
*.action
struts2
/struts/*
The first one catches all requests with .action extensions which is what I
use.
The second on
I got it, just remove javassist from the that xworks-core-2.1.6.jar and that
s done.
Nicolas
-Mensaje original-
De: Nicola de Saint-Aubert [mailto:nsaintaub...@lavanguardia.es]
Enviado el: lunes, 02 de noviembre de 2009 13:43
Para: user@struts.apache.org
Asunto: javassist trouble on JBos
hi:
you can try this attribute of c:out tag:
escapeXml="false"
good luck
2009/11/2 peibel80 :
>
> Hi,
>
> I have a variable with tags html.
>
> String oldDate = "Cod=23Des=Area 22"
>
> and I use this tag jsp:
>
>
>
> but does not paint the line break, it paint
>
> What could I use to paint the
Hi,
I have a variable with tags html.
String oldDate = "Cod=23Des=Area 22"
and I use this tag jsp:
but does not paint the line break, it paint
What could I use to paint the line break??
Thanks,
--
View this message in context:
http://old.nabble.com/Tags-html-into-tags-JSP-tp26156899p26
Hi, i get a conflict while using struts 2.1.8 on jboss 4.2.0 (using
hibernate) which, i guess, is due to the fact, that xworks-core-2.1.6.jar
that is a part of Struts 2.1.8 is delivered with javassist code inside, that
conflicts with the one inside of JBoss:
java.lang.RuntimeException: java.lan
Hi,
I would like to invalidate the session when the tab/browser is being closed.
I am using Struts2. I thought of using AJAX but I don't know how.
Can anyone help with it?
--
what matters most is how you see yourself
-
To unsu
Hello Z.,
you are right. I am really new to JQuery & Javascript as I've just focused
into server side programming. I'm not a javascript fan... I have to use it
anyway.
I have already solved the coords. problem in JQuery drag&drop. There seem
to be many docs about it in the net. Anyway, I haven't
24 matches
Mail list logo