On 5/13/10 7:10 AM, Andy Law wrote:
Following up on that thought process, if I use an interceptor then is there
any difference/tradeoff/efficiency gain or loss from stuffing the object in
question onto the Value Stack instead of dropping it into the request or the
session? I guess that "explicitn
e request or the
session? I guess that "explicitness" is what you gain from the
request/session route?
Later,
Andy
--
View this message in context:
http://old.nabble.com/Some-Spring-Struts-questions-tp28533505p28546199.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
On Wed, May 12, 2010 at 10:42 AM, Dale Newfield wrote:
>
> That all sounds reasonable, except the part about putting it in the session
> instead of the request. If there's no compelling reason to store something
> in the session, I think that it should be avoided. If you're using an
> intercepto
On 5/12/10 9:32 AM, Wes Wannemacher wrote:
I've seen a few responses, but I think the best way would be to write
an interceptor that places the bean into the session. Give it a known
name in the session, then you can use OGNL to access it...
That all sounds reasonable, except the part about put
Cool, cheers Wes
-Original Message-
From: Wes Wannemacher [mailto:w...@wantii.com]
Sent: 12 May 2010 15:29
To: Struts Users Mailing List
Subject: Re: Some Spring/Struts questions
Yep... Here's a quick example struts.xml -
http://struts.apache.org/dtds/struts-2.1.
e. Thank you for clearing that one up and your package is defined
> in the struts.xml in the root of the source?
>
> -Original Message-
> From: Wes Wannemacher [mailto:w...@wantii.com]
> Sent: 12 May 2010 14:51
> To: Struts Users Mailing List
> Subject: Re: Some Spring/S
Ah, awesome. Thank you for clearing that one up and your package is defined in
the struts.xml in the root of the source?
-Original Message-
From: Wes Wannemacher [mailto:w...@wantii.com]
Sent: 12 May 2010 14:51
To: Struts Users Mailing List
Subject: Re: Some Spring/Struts questions
nt: 12 May 2010 14:33
> To: Struts Users Mailing List
> Subject: Re: Some Spring/Struts questions
>
> I've seen a few responses, but I think the best way would be to write
> an interceptor that places the bean into the session. Give it a known
> name in the session, then you ca
: Wes Wannemacher [mailto:w...@wantii.com]
Sent: 12 May 2010 14:33
To: Struts Users Mailing List
Subject: Re: Some Spring/Struts questions
I've seen a few responses, but I think the best way would be to write
an interceptor that places the bean into the session. Give it a known
name in the session, th
es not seem to be possible unless I'm missing a trick?
>
> How should I configure this, please?
>
> Later,
>
> Andy
> --
> View this message in context:
> http://old.nabble.com/Some-Spring-Struts-questions-tp28533505p28533505.html
> Sent from the Struts - User m
n classes, no? And
puts *some* of the configuration into the code and some inside of the Spring
config file.
I think that I'd rather avoid those outcomes if at all possible.
I think I'm leaning back towards Interceptors :o{
Later,
Andy
--
View this message in context:
http://old.nabble.com/S
gure that in Spring so I can plug in
alternative implementations in different instances of the application.
Is any of that possible?
Later,
Andy
--
View this message in context:
http://old.nabble.com/Some-Spring-Struts-questions-tp28533505p28535778.
ion, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Wed, 12 May 2010 04:43:13 -0700
> From: andy@roslin.ed.ac.uk
> To: user@struts.apache.org
> Subject: RE: Some Spring/Struts questions
>
>
>
>
> James Cook-13 wrote:
> &g
A new requirement means that we need to have available across pretty much
every action a separate, independent bean that carries information that may
(or may not) need to be displayed on the resulting web-pages. I am wondering
what the best way is to make this bean available to each JSP.
We
onto the Struts OGNL
stack? That would be neater?
Later,
Andy
--
View this message in context:
http://old.nabble.com/Some-Spring-Struts-questions-tp28533505p28534868.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
: Andy Law [mailto:andy@roslin.ed.ac.uk]
Sent: 12 May 2010 10:23
To: user@struts.apache.org
Subject: RE: Some Spring/Struts questions
James Cook-13 wrote:
>
> You could, add the bean to the servlet context, and access it via a
> scriptlet in the jsp. Thus bypassing your actions all
;d also
have to make all the actions "aware" of the object being added. The other
objects that we handle in this manner are genuinely integral to the Actions
(data access objects and permissions filters for example).
Later,
Andy
--
View this message in context:
http://old.nabble.com/Some-S
@struts.apache.org
Subject: Some Spring/Struts questions
All,
Apologies if this would be better asked in a Spring forum. If so, I
would
appreciate guidance as to which one/where.
I have a Struts2 application with around 30 actions. Most inherit from a
common base class. We have configured the
asses
(and this would be a useful trick for some other places in the application)
but that does not seem to be possible unless I'm missing a trick?
How should I configure this, please?
Later,
Andy
--
View this message in context:
http://old.nabble.com/Some-Spring-Struts-questions-tp2853350
19 matches
Mail list logo