Re: No container in actions after upgrading to 2.5.13

2017-09-19 Thread LAW Andy
sure that the context-fallback should get this code working again, so I’d be keen to get an ETA on that point release if it’s likely to happen. Thanks for the work that you guys do. It is very much appreciated (even if we don’t give that impression at times). Later, Andy -- The Un

Re: No container in actions after upgrading to 2.5.13

2017-09-14 Thread LAW Andy
ed manually? > Fallback to ActionContext"); >container = ActionContext.getContext().getContainer(); > } That would get *my* vote. Later, Andy -- The University of Edinburgh is a charitable body, registered in Sco

Re: No container in actions after upgrading to 2.5.13

2017-09-13 Thread LAW Andy
anels:comment-tabpanel#comment-16085291 > > On 9/13/2017 7:31 PM, LAW Andy wrote: >> >>> On 13 Sep 2017, at 14:17, Lukasz Lenart wrote: >>> >>> 2017-09-13 11:02 GMT+02:00 LAW Andy : >>>> Using version 2.5.13 on Tomcat 8.0.21. >&

Re: No container in actions after upgrading to 2.5.13

2017-09-13 Thread LAW Andy
> On 13 Sep 2017, at 14:17, Lukasz Lenart wrote: > > 2017-09-13 11:02 GMT+02:00 LAW Andy : >> Using version 2.5.13 on Tomcat 8.0.21. >> >> I’ve attached it to this message as a text file. > > How do you fetch action in > "my.domain.controller.Act

Re: No container in actions after upgrading to 2.5.13

2017-09-13 Thread LAW Andy
Using version 2.5.13 on Tomcat 8.0.21. I’ve attached it to this message as a text file. Later, Andy > On 12 Sep 2017, at 15:56, Yasser Zamani wrote: > > Each one you're more comfortable or is more important for you. > > On 9/12/2017 7:08 PM, LAW Andy wrote: >> &g

Re: No container in actions after upgrading to 2.5.13

2017-09-12 Thread LAW Andy
know the trace of the Struts itself > only. If I know how and where Struts fails, then it'll be helpful a lot. > Do you want 2.5.12 or 2.5.13 ? Later, Andy -- The University of Edinburgh is a charitable body, registered in Scotland, w

Re: No container in actions after upgrading to 2.5.13

2017-09-12 Thread LAW Andy
on 'class my.domain.controller.LoginAction: Error setting expression 'IDontExist' with value ['true', ] Followed by the now-traditional NPE-based errors because the Container isn’t being set in the Action. This is now running 2.3.12 Struts on 8.0.21 Tomcat. Later, Andy

Re: No container in actions after upgrading to 2.5.13

2017-09-12 Thread LAW Andy
> On 12 Sep 2017, at 10:19, Lukasz Lenart wrote: > > You can ignore this, it only happens in devMode when Struts want to > reload resources. Did you try with Struts 2.3.12? Also broken in 2.3.12 :( Later, Andy -- The University of Edinburgh is a charitable body, registered

Re: No container in actions after upgrading to 2.5.13

2017-09-12 Thread LAW Andy
> On 12 Sep 2017, at 10:19, Lukasz Lenart wrote: > > You can ignore this, it only happens in devMode when Struts want to > reload resources. Did you try with Struts 2.3.12? Next on the list (after I deal with a different crisis). Later, Andy -- The University of Edinburgh is

Re: No container in actions after upgrading to 2.5.13

2017-09-12 Thread LAW Andy
> On 12 Sep 2017, at 09:47, LAW Andy wrote: > > >> On 11 Sep 2017, at 22:50, LAW Andy wrote: >> >> >>> >>> Did you try "devmode=true" and then examining output for any warning? >> >> >> I did. And there’s nothing ob

Re: No container in actions after upgrading to 2.5.13

2017-09-12 Thread LAW Andy
> On 11 Sep 2017, at 22:50, LAW Andy wrote: > > >> >> Did you try "devmode=true" and then examining output for any warning? > > > I did. And there’s nothing obvious. > Scrub that - there is something coming up (I think I must have been looking at

Re: No container in actions after upgrading to 2.5.13

2017-09-11 Thread LAW Andy
out Spring and it's auto-wiring. Ahh. You are right. The Spring stuff fires up first and then the struts.xml config kicks in. > > Did you try "devmode=true" and then examining output for any warning? I did. And there’s nothing obvious. Later, Andy > > [1] https:

Re: No container in actions after upgrading to 2.5.13

2017-09-11 Thread LAW Andy
Does anyone know if the default autowiring method changed in Struts between 2.5.10 and 2.5.13? > On 11 Sep 2017, at 15:28, LAW Andy wrote: > > >> On 11 Sep 2017, at 15:13, Lukasz Lenart wrote: >> >> 2017-09-11 16:09 GMT+02:00 LAW Andy : >>> (Indirectly

Re: No container in actions after upgrading to 2.5.13

2017-09-11 Thread LAW Andy
> On 11 Sep 2017, at 15:13, Lukasz Lenart wrote: > > 2017-09-11 16:09 GMT+02:00 LAW Andy : >> (Indirectly) from a JSP. This is “furniture” on the web page. >> >> Each action has an “ActionPropertyKey” annotated on it. Each Action inherits >> from a bas

Re: No container in actions after upgrading to 2.5.13

2017-09-11 Thread LAW Andy
> On 11 Sep 2017, at 15:03, Lukasz Lenart wrote: > > 2017-09-11 16:01 GMT+02:00 LAW Andy : >> I probably could, but I think this is less of an Action problem and more of >> a struts/spring dependency injection problem. I don’t think there’s anything >> wrong with t

Re: No container in actions after upgrading to 2.5.13

2017-09-11 Thread LAW Andy
Sep 2017, at 14:53, Lukasz Lenart wrote: > > 2017-09-11 15:51 GMT+02:00 LAW Andy : >> I recently upgraded the struts 2 library in an old web application from >> 2.5.10.1 to 2.5.13. Simultaneously I upgraded Spring (which we use for >> managing the database connections a

No container in actions after upgrading to 2.5.13

2017-09-11 Thread LAW Andy
. TIA. Andy Law -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h

Re: Exception when using Struts debug tag on Glassfish

2011-06-18 Thread Andy Birchall
Thanks, don't know why I thought 2.2.1 was the latest version, bit of a brain fail on my part there. I've tried the latest 2.2.3 and still get the same error though when using the tag :( Andy On 17 June 2011 01:12, Maurizio Cucchiara wrote: > 2.2.1 is not exactly the latest version

Exception when using Struts debug tag on Glassfish

2011-06-16 Thread Andy Birchall
(UIBean.java:513) ... 93 more Without the the tag the page loads and runs fine. Also if I deploy to Tomcat it works fine. Can anyone help with this? Many thanks Andy Birchall - To unsubscribe, e-mail: user-unsubscr

Removing ScopedModelDriven model from session

2010-12-08 Thread Andy Birchall
Hello, Is there a standard Struts declarative way of removing the model object from session when using a ScopedModelDriven action? i.e. so when invoking another action, which doesn't implement ScopedModelDriven and doesn't need the model object previously placed in session, the model object is remo

What is the status of OSGI (pref Equinox) and Struts2 integration?

2010-12-06 Thread Andy Doddington
There seem to be several chat threads out there on the internet, but nothing more recent than around 2007. Given the obvious synergies between these two technologies, I find it hard to believe that nothing more has come of this.

Re: Struts Tiles Problem

2010-11-08 Thread Andy T
thing? Thanks so much for your help, Andy On Mon, Nov 8, 2010 at 10:56 AM, Lukasz Lenart wrote: > 2010/11/8 Andy T : >> Hi Lukasz, >> >> I have struts-tiles-1.3.8.jar loaded . . . is this what you mean? > > Yes, it should be sufficient, could you post your struts

Re: Struts Tiles Problem

2010-11-08 Thread Andy T
Thanks to all who have responded thus far . . . I think I forgot to add the Tiles Plugin to my struts-config.xml file. However when I do this I get "HTTP Status 404 - Servlet action is not available" . . . On Sat, Nov 6, 2010 at 2:47 AM, Lukasz Lenart wrote: > 2010/11/5 Rafael Medeiros :

Struts Tiles Problem

2010-11-05 Thread Andy T
Hi All, I'm having a bit of trouble trying to get my tiles to work with Struts and wondered if anyone could help. The relevant files are shown below: Web.xml [code] http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://jav

Re: How to get the value of Constants defined in struts.xml

2010-10-25 Thread Andy Law
Heading off at a slight tangent, is it possible to use the constant values in action configurations within the struts XML? I have long thought it a code smell that I have magic strings in my XML configuration that get repeated in my code. If I could handle those by reference to a single point in

RE: Bizarre sporadic problem with streaming a stylesheet.

2010-09-23 Thread Andy Law
I wrote: > > Apologies for being late to the party, but this smells like a > browser/proxy > cache issue to me? > and then mgainty wrote: > > > i agree with andy > > do a view source and tracert on all urls > > i it is possible you'll see th

Re: Bizarre sporadic problem with streaming a stylesheet.

2010-09-22 Thread Andy Law
DNewfield wrote: > > Anyway, glad you've solved your issue. Too bad we didn't all learn > something from it :-) > Apologies for being late to the party, but this smells like a browser/proxy cache issue to me? Later, Andy -- View this message in context: http://

How do I get wibble[0][something]=blah to parse into an action?

2010-09-03 Thread Andy Chapman
I've got a 3rd party javascript tool that posts parameters like: wibble[0][something] = /babble wibble[0][foo] = 3 wibble[0][bar] = seventeen wibble[1][something] = /bloop wibble[1][foo] = 12 wibble[1][bar] = Only on Wednesdays I can't figure out how to get the ParametersInterceptor to put the

Re: Interceptor order

2010-05-20 Thread Andy Law
the ValueStack you'll silently blow away all the parameter handling code" for completeness but I never found one of those yet. Also for the record, using the set(MAGIC_KEY, this.getStuff()) call makes 'magic' available directly so I can reference it as . I'm not clear i

Re: Interceptor order

2010-05-20 Thread Andy Law
RogerV wrote: > > > > Andy Law wrote: >> >> The pertinent code in the interceptor is reproduced below. It does what I >> expect it to do insofar as it sticks my "Stuff" object in a place that >> the JSP can retrieve it using the MAGIC_KEY str

Interceptor order

2010-05-18 Thread Andy Law
if (vs != null) { vs.set(MAGIC_KEY, this.getStuff()); } } } return invocation.invoke(); } As always, any and all help/pointers gratefully accepted, particularly if I'm doing something stupid! Later Andy -- View this message

Why is ActionContext not an Interface?

2010-05-14 Thread Andy Law
I'm pretty sure that ActionContext used to be an Interface (in Struts1?). I know that it isn't in Struts2 because I've just tripped over that when trying to create mocks for a set of Unit tests for an Interceptor. Is there a reason why it changed? Later, Andy -- View this mes

Re: Some Spring/Struts questions

2010-05-13 Thread Andy Law
eing lazy. > > -Wes > > Thanks for all the replies so far folks. 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 th

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 Andy Law
lue-ref="myOrganisationServiceBeanRef"/> > > > > > OrganisationService organisationService = (OrganisationService) > getServletContext().getAttribute("organisationService"); > OK. Thanks. I'll try that. Is it possible though to use Spring to push objects

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

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

Re: how to eliminate time in

2010-02-20 Thread Andy Sykes
You could write your own type converter - see type conversion in the S2 docs for a good overview. It handles the conversion of any Java object in your model class to a String for use in the view, and converts any String field into a Java object in forms/GET parameters. That way you have total c

TypeConverters - multiple fields/values

2010-02-14 Thread Andy Sykes
tring array of values. Is this a path to having multiple values associated with a single field? That would also provide a way of generating a complex type. Thanks, Andy. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.or

Path page.logon does not start with a "/" character" Problem

2010-01-07 Thread Andy T
have not been able to overcome this problem. Relevant source code follows: If someone could assist me with this issue I'd really appreciate it . . . Thanks, Andy *** struts-config.xml *** tiles-defs.xml * http://struts.a

RE: Radio options left aligned

2009-08-31 Thread Andy Law
ed the specific styling. FWIW (and IIRC from code I wrote a while ago), coding the radiolist as a list (ul) with each radio-option as a list element within that combined with a div/span/specific css-style was the easiest option for getting the format you want. Hope that helps. Later, Andy -- V

Is this expected behaviour for tag?

2009-08-06 Thread Andy Law
thing anyone can suggest. Later, Andy -- View this message in context: http://www.nabble.com/Is-this-expected-behaviour-for-%3Cs%3Aurl%3E-tag--tp24850352p24850352.html Sent from the Struts - User mailing list archive at Nabbl

Re: CSS background images, struts2

2009-08-05 Thread Andy Law
hy Barroso wrote: > > assuming your dir structure is like: > > css > ...main.css > images > someimage.jpg > > you can use this in your css: url(../images/someimagejpg) > > Now I'm at my desk, I can see that this does indeed work. Thanks for the help gu

Re: CSS background images, struts2

2009-08-04 Thread Andy Engle
ground-image: url(); margin-top: 0px; padding: 0; } And then called them like this: " type="text/css"> Who cares if it's ugly or whatever; I don't have broken images in my apps anymore. :) Andy - Original Message From: Andy Law To:

Re: CSS background images, struts2

2009-08-04 Thread Andy Law
Wes Wannemacher wrote: > > One thing I've done in the past is to treat CSS files as JSPs and use > s:url tags or EL expressions (${contextRoot}/images/image.gif)... > > Oh. That feels s dirty!!! There has to be a cleaner way to do it. Later, Andy -- View thi

Re: CSS background images, struts2

2009-08-04 Thread Andy Law
Haroon Rafique wrote: > > On Today at 9:38am, AL=>Andy Law wrote: > > If your file structure is somewhat like: > > styles/base.css > images/image.gif > > then you can simply change your background-image directive to say: > background-image: url('../imag

CSS background images, struts2

2009-08-04 Thread Andy Law
e ) but putting my static images in a subdirectory of the template directory (for want of a better place) still don't work. Can someone please point me in the right direction for getting this to work? Or point me at a work-around? Thanks in advance, Andy -- View this message in conte

RE: unit testing Struts2 application (with Spring and Hibernate)

2009-07-17 Thread Andy
Couldn't agree more. > From: w...@wantii.com > To: user@struts.apache.org > Subject: Re: unit testing Struts2 application (with Spring and Hibernate) > Date: Thu, 16 Jul 2009 21:59:35 -0400 > > On Thursday 16 July 2009 07:14:30 pm Dave Newton wrote: > > > > IMO that's outside the purview of uni

Netbeans 6.7 RC3 and Struts2

2009-06-19 Thread Andy Sykes
ch looks like a Javascript parser error. Anyone else seeing this? If so, I'll report it as a bug. Andy. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

RE: [OT]Moving from Struts2 to grails, your thoughts

2009-06-10 Thread Andy
Two words - Stripes framework. > Date: Wed, 10 Jun 2009 22:06:11 -0400 > Subject: [OT]Moving from Struts2 to grails, your thoughts > From: bhaara...@gmail.com > To: user@struts.apache.org > > Guys, > > I've been doing struts2 for about 2 years, although I dont know everything > about it but

RE: About the "struts.multipart.saveDir" for file upload

2009-06-03 Thread Andy
That's great Wes. I am using the file upload but only sparingly (and hacked) due to some existing glitches. I read how the Stripes framework does file upload: http://www.stripesframework.org/display/stripes/File+Uploads Thought you might find it interesting/useful..

RE: About the "struts.multipart.saveDir" for file upload

2009-06-03 Thread Andy
It defaults but I think he's wondering how he can set the dir programatically. > Date: Wed, 3 Jun 2009 15:35:33 -0500 > Subject: Re: About the "struts.multipart.saveDir" for file upload > From: burtonrho...@gmail.com > To: user@struts.apache.org > > I wasn't aware that it was required. If you

Re: Block accessing in some path with filter.

2009-05-21 Thread Andy Sykes
stack. Look at the docs - you'll get a faster answer than coming to the mailing list with every question. They really are very good docs, as docs go. Andy. [1] http://struts.apache.org/2.x/docs/interceptors.html On 21 May 2009, at 16:00, Stefano Tranquillini wrote: thanks,

Re: Block accessing in some path with filter.

2009-05-20 Thread Andy Sykes
urce (/WAP-Shop-war/denied.action) is not available. but is available! ideas? On Wed, May 20, 2009 at 13:35, Andy Sykes wrote: Put the mapping for the admin filter above the struts2 filter. Filters are invoked in the order in web.xml, first to last. The struts filter is catching the request

Re: Block accessing in some path with filter.

2009-05-20 Thread Andy Sykes
Put the mapping for the admin filter above the struts2 filter. Filters are invoked in the order in web.xml, first to last. The struts filter is catching the request first and dispatching it before it ever reaches the admin filter. On 20 May 2009, at 09:37, Stefano Tranquillini wrote: Hi a

Re: [S2] When/How are Actions Created?

2009-05-19 Thread Andy Sykes
1. It's created when the Struts dispatcher filter receives a request that matches an element in the XML configuration file. Xwork handles the creation, I believe (Struts internal DI framework). You're running with Spring as the container, which mean Spring does the action creation based on

Re: File upload (jupload)--how to disable struts2' fileupload interceptor?

2009-05-16 Thread Andy Sykes
I can't see anywhere in the documentation (I've only had a quick skim of it) that says not mapping the Struts dispatcher to /* can be dangerous.. the only example I can see is if you're using Struts interceptors/actions for webapp security - in which case hitting a servlet directly might me

RE: stream result causing action to be called multiple times

2009-05-05 Thread Andy
Yep that totally fixed it. Thanks!! Andy > Date: Tue, 5 May 2009 16:28:53 -0400 > From: d...@newfield.org > To: user@struts.apache.org > Subject: Re: stream result causing action to be called multiple times > > Andy wrote: > > I may be reading this doc wrong, but

RE: stream result causing action to be called multiple times

2009-05-05 Thread Andy
://sheetalshundori.blogspot.com/2008/02/struts2-dynamic-file-download.html > Date: Tue, 5 May 2009 15:23:23 -0400 > From: d...@newfield.org > To: user@struts.apache.org > Subject: Re: stream result causing action to be called multiple times > > Andy wrote: > > I have an action that retu

RE: stream result causing action to be called multiple times

2009-05-05 Thread Andy
g on a Mac. OSX/Firefox. I will try testing on windows/IE. Thanks > Date: Tue, 5 May 2009 04:08:49 -0200 > Subject: Re: stream result causing action to be called multiple times > From: poulw...@gmail.com > To: user@struts.apache.org > > Hi Andy, > If so maybe the b

stream result causing action to be called multiple times

2009-05-04 Thread Andy
Hi, I have an action that returns a stream result type and for some reason my action is getting called multiple times: ${attachmentContentType} filename="${attachmentFileName}" This causes some inefficiency since the action is retrieving an image from the database on each call. IDeas?

Jetty / Apache / mod_proxy config with sslext

2009-05-04 Thread Andy Engle
h then does not utilize port 443 as desired (similarly for 8080). Anybody have any good ideas on how to get around this issue? Thanks, Andy PS: I apologize if this is more a Tomcat/config question, but it seems this issue is caused m

RE: determine if iphone user?

2009-05-01 Thread Andy
> I think the HTTP_USER_AGENT header should be similar to: > > Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ > (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3 > > If a request comes from the IPhone browser > > On Fri, May 1, 2009 at 3:06 PM, An

determine if iphone user?

2009-05-01 Thread Andy
Hi, is there an easy way to tell in an s2 action if the request is coming from an iphone/mobile device? Thanks! _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM

Re: Submitting a Date to an Action

2009-05-01 Thread Andy Sykes
reflection when it encounters a Date setter (with a suitable annotation) in the action to look up these fields and parse them into a Date for setting. Lets me do validation at the same time. Andy. On 1 May 2009, at 12:44, Richard Sayre wrote: I think I am going to write my own. After

RE: Any hint of JQuery on struts2 tutorial, thanks!

2009-04-30 Thread Andy
I agree with you 100%. For me, same goes for DWR. Andy > Date: Fri, 1 May 2009 11:11:02 +1000 > Subject: Re: Any hint of JQuery on struts2 tutorial, thanks! > From: zo...@sparecreative.com > To: user@struts.apache.org > > We¹ve been using jQuery in a Struts2 project witho

Re: OGNL & DisplayTag = inappropriate expressions

2009-04-30 Thread Andy Sykes
f the regex, will be ignored. We should make a FAQ out of this question. musachy On Thu, Apr 30, 2009 at 3:47 PM, Andy Sykes wrote: Hi all, Is there a way to prevent OGNL from analysing GET parameters as expressions? Reason for asking: DisplayTag generates URLs like this: action?d-49653-p=2

OGNL & DisplayTag = inappropriate expressions

2009-04-30 Thread Andy Sykes
nus p). Naturally, this makes it throw ognl.InappropriateExpressionException any time a user loads a page with a DisplayTag table in it, which is incredibly annoying. Thoughts? Andy. - To unsubscribe, e-mail: user-uns

Re: pagination in struts2

2009-04-23 Thread Andy Sykes
I found I had to use the tag to set the object in the request scope before displaytag could "see" it, since displaytag doesn't know about the Value Stack (maybe it should?). Confusingly, displaytag gives you that message if it can't see the variable you're referencing, as well as if the va

Re: pagination in struts2

2009-04-22 Thread Andy Sykes
Have a look at the external sorting and pagination page[1] on the DisplayTag site. Also, take a look at the PaginatedList interface[2]. It takes a little bit to get your head around it. If you get stuck, the displaytag lists are pretty good at helping with the common issues. Andy. [1

Re: How to do matematical operation in jsp.

2009-04-22 Thread Andy Sykes
Abstract the HashMap behind another class that has a getTotal(Item key) method, and do the math in there (return item.prize * quantity). Doing any math in the JSP feels dirty. On 22 Apr 2009, at 13:16, Stefano Tranquillini wrote: Because the items are stored in hashmap item contains the p

file upload interceptor alternative

2009-04-19 Thread Andy
It seems there are some big holes in the file upload interceptor. Validation doesn't work as stated and and max file size configs are not being used properly. I verified by checking the 2.1.6 JIRA list. Is there any "robust" alternative that people are using? Thanks ___

Re: recipes for 2.0.x?

2009-04-18 Thread Andy Sykes
DWR is bloody ace - don't know how that slipped under my radar. Cheers for the heads-up. Andy. On 17 Apr 2009, at 21:24, Musachy Barroso wrote: I am not sure what the status of the DWR plugin is, but I don't think it has changed much. The DWR plugin just hooks DWR with Struts

RE: recipes for 2.0.x?

2009-04-17 Thread Andy
Just want to say that I am not using the s2 DWR plugin but I am using the spring DWR plugin in my s2 app and it rocks. JQuery also rocks but I like how DWR wires ajax to java class and marshals/unmarshals everything. > Date: Fri, 17 Apr 2009 16:24:24 -0400 > Subject: Re: recipes for 2.0.x?

Re: recipes for 2.0.x?

2009-04-17 Thread Andy Sykes
Out of interest (and sorry for slight thread hijacking) - what's so bad about the Dojo tags? Now the Dojo stuff is deprecated, is there a roadmap to replacing them with something else? On 17 Apr 2009, at 20:30, Musachy Barroso wrote: I am not sure it is related, but make sure "showLoading

file upload help

2009-04-17 Thread Andy
;. Any ideas? I'm using Struts2.16, default interceptor stack, tiles, spring.. Thanks! Andy _ Windows Live™: Life without walls. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1b_explore_042009

and parameters

2009-04-16 Thread Andy Sykes
docs suggest using ${param.paramname}, which doesn't work - "According to TLD, value does not accept any expressions". i.e. "> I feel like I'm missing something incredibly obvious here.. Andy. -

RE: DWR and S2 setup problem

2009-03-31 Thread Andy
define my stuff in applicationContext.xml instead of using a dwr.xml file. Just my preference. Thanks for the post. Andy > Date: Mon, 30 Mar 2009 00:21:10 -0500 > Subject: Re: DWR and S2 setup problem > From: c...@burlesontech.com > To: user@struts.apache.org > > I hav

DWR and S2 setup problem

2009-03-29 Thread Andy
I am trying to incorporate DWR into my Spring/Struts2 application, but receive a 404 when accessing http://localhost:8080/myapp/dwr. It seems the DWR servlet is not being reached. Any ideas? Thanks Here is the error: There is no Action mapped for action name dwr/. - [unknown location] Her

Pagination and s:subset

2009-03-20 Thread Andy Sykes
ed exactly how I'd go about it, but I'm fairly sure of the general idea. Has anyone thought through this and seen potential show-stoppers? Cheers, Andy. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

RE: Struts 2 Architecture - Best Practices...

2009-02-24 Thread Andy
; Why might you switch back to jdbc as opposed to hibernate. What > obstacles are you facing there? > > On 2/24/09, Andy wrote: > > > > Right now I am using Struts2, Spring, and Hibernate. Although the Spring > > JdbcTemplate is looking better all the time.

RE: issues when using urlrewritefilter with struts2

2009-02-24 Thread Andy
would have to be able to generate URLs RESTfully as well as break apart requests using regex, IMO. Andy > Date: Tue, 24 Feb 2009 10:09:44 +0100 > Subject: Re: issues when using urlrewritefilter with struts2 > From: krom...@gmail.com > To: user@struts.apache.org > >

RE: Struts 2 Architecture - Best Practices...

2009-02-24 Thread Andy
Right now I am using Struts2, Spring, and Hibernate. Although the Spring JdbcTemplate is looking better all the time. I follow this: Action --> Service --> Dao Yes it is more code, but the benefits are in testibility, componentization, and maintenance. I even have this: Action -->

Re: Cookie Intercepter configuration

2009-02-11 Thread Andy Law
rence: > > https://issues.apache.org/struts/browse/WW-2992 > > Well, I guess that answers my question from last week... http://www.nabble.com/CookiesInterceptor-config-missing-in-2.1.6-to21790815.html Later, Andy -- View this message in context: http://www.nabble.com/Cookie-I

RE: [S1]struts with hibernate

2009-02-10 Thread Andy
There are several things it could be. You could be running out of connections or you could be closing a connection and then trying to access it. Not sure its entirely struts related.. > From: lrampers...@ceis.cujae.edu.cu > To: user@struts.apache.org > Subject: Re: [S1]struts with hiber

struts2 rest plugin

2009-02-07 Thread Andy
Can this plugin re-write the urls generated by struts2 jsp tags to be more rest/rubyonrails-like? ex. ?user=123 --> /user/123 The plugin doesn't appear to be regex-based, is that correct? I'm trying to decide if I am going to use the rest plugin or http://tuckey.org/urlrewrite. Thanks

RE: [S2] Creating and calling a servlet in sturts2 app

2009-02-04 Thread Andy
I ran into the same thing as the OP. I think the FilterDispatcher is catching all requests to the servlet since it uses a url-mapping of /*. The Struts in Action book, from what I remember, suggests having an Action receive the request and then dispatch to a servlet. If anyone has direc

CookiesInterceptor config missing in 2.1.6

2009-02-02 Thread Andy Law
is not. Later, Andy -- View this message in context: http://www.nabble.com/CookiesInterceptor-config-missing-in-2.1.6-tp21790815p21790815.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e

FIXED - My tests fail in 2.1.6 - can someone help?

2009-02-02 Thread Andy Law
Andy Law wrote: > > 've hit a painful problem as I try to migrate to 2.1.6 (from 2.0.14). > > I have a class that extends ActionSupport and which calls getText() from > within a routine. I want to test the routine to ensure that it is working > properly. My test runs f

My tests fail in 2.1.6 - can someone help?

2009-02-02 Thread Andy Law
ow to better refactor the whole thing to fit 'The Struts Way'? Later, Andy -- View this message in context: http://www.nabble.com/My-tests-fail-in-2.1.6---can-someone-help--tp21787233p21787233.html Sent from the Struts - User mailing list archive at Nabble.com. --

RE: How to stop action getting called on click of refresh button

2009-02-01 Thread Andy
I would recommend redirecting to another action/jsp after the form post (PRG pattern). > Date: Sun, 1 Feb 2009 12:55:23 +0530 > Subject: Re: How to stop action getting called on click of refresh button > From: go4m...@gmail.com > To: user@struts.apache.org > > > > > So is there any way to stop

Re: Casting an action to an interface

2009-01-30 Thread Andy Sykes
Interceptor - true Suggests to me they're getting loaded by the same classloader. Something bloody funky is going on and I'm probably going to just roll the interceptors functionality into an action instead, but intellectual curiosity remains to be satisfied as to what the funk is causi

Re: Casting an action to an interface

2009-01-30 Thread Andy Sykes
...snip... if (action instanceof SessionAware) { ((SessionAware) action).setSession(context.getSession()); } } } On 30 Jan 2009, at 12:22, Andy Sykes wrote: No, I don't 'need' the ca

Re: Casting an action to an interface

2009-01-30 Thread Andy Sykes
rchy? That could explain certain "should never happen" incidents... Nils-H On Fri, Jan 30, 2009 at 12:39 PM, Andy Sykes wrote: Hi Wes, No, I'm not using Spring at all. The Action never passes the test of being an instanceof Parseable. If I make the action only impleme

Re: Casting an action to an interface

2009-01-30 Thread Andy Sykes
Hi Wes, No, I'm not using Spring at all. The Action never passes the test of being an instanceof Parseable. If I make the action only implement SessionAware, and test if my action is an instanceof SessionAware, the test is never passed! Colour me confused! Andy. On 30 Jan 2009,

Casting an action to an interface

2009-01-29 Thread Andy Sykes
Hi all, I've written an interceptor with a PreResultListener that gets the action with ActionInvocation.getAction(), then casts it to an interface ("Parseable", in this case). This lets me call a particular method on the action just prior to the result being rendered. The action implement

RE: Exception while upgrading from S 2.0.11 to 2.1.6

2009-01-28 Thread Andy
fyi I had to add commons-fileupload to my classpath only after upgrading to 2.1.6 from 2.0.14.. Before the upgrade it wasnt required. > Date: Tue, 27 Jan 2009 23:11:40 -0500> From: newton.d...@yahoo.com> To: > user@struts.apache.org> Subject: Re: Exception while upgrading from S 2.0.11 > to 2

RE: Handling JSP exceptions in Struts2

2009-01-27 Thread Andy
any of you know.> > Regards> Nageswara Rao Please dont hijack threads, start your own. > Date: Mon, 26 Jan 2009 22:50:45 -0800> From: nag...@btpsoft.com> To: > user@struts.apache.org> Subject: RE: Handling JSP exceptions in Struts2> > > > > > Andy Hahn wro

RE: Handling JSP exceptions in Struts2

2009-01-26 Thread Andy
e has any thoughts, please let me know. Thanks! > Date: Mon, 26 Jan 2009 14:21:39 + > From: ahardy.str...@cyberspaceroad.com > To: user@struts.apache.org > Subject: Re: Handling JSP exceptions in Struts2 > > Did you sort this out already Andy? > > I can't

  1   2   3   >