Re: Some Spring/Struts questions

2010-05-13 Thread Dale Newfield
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

Re: Some Spring/Struts questions

2010-05-13 Thread Andy Law
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. -

Re: Some Spring/Struts questions

2010-05-12 Thread Wes Wannemacher
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

Re: Some Spring/Struts questions

2010-05-12 Thread Dale Newfield
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

RE: Some Spring/Struts questions

2010-05-12 Thread James Cook
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.

Re: Some Spring/Struts questions

2010-05-12 Thread Wes Wannemacher
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

RE: Some Spring/Struts questions

2010-05-12 Thread James Cook
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

Re: Some Spring/Struts questions

2010-05-12 Thread Wes Wannemacher
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

RE: Some Spring/Struts questions

2010-05-12 Thread James Cook
: 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

Re: Some Spring/Struts questions

2010-05-12 Thread Wes Wannemacher
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

Re: Some Spring/Struts questions

2010-05-12 Thread Andy Law
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

RE: Some Spring/Struts questions

2010-05-12 Thread Andy Law
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.

RE: Some Spring/Struts questions

2010-05-12 Thread Martin Gainty
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

Re: Some Spring/Struts questions

2010-05-12 Thread Denis Cabasson
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

RE: Some Spring/Struts questions

2010-05-12 Thread Andy Law
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. -

RE: Some Spring/Struts questions

2010-05-12 Thread James Cook
: 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

RE: Some Spring/Struts questions

2010-05-12 Thread Andy Law
;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

RE: Some Spring/Struts questions

2010-05-12 Thread James Cook
@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

Some Spring/Struts questions

2010-05-12 Thread Andy Law
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