Re: REST plugin and security

2007-12-14 Thread Martin Gilday
basic authentication for your REST services, which basically does the same thing? If over the wire security is a problem, use HTTPS. Don On Dec 14, 2007 1:44 AM, Martin Gilday [EMAIL PROTECTED] wrote: Hi, We are interested in using the REST plugin to extend customer choice and complement our WS

REST plugin and security

2007-12-13 Thread Martin Gilday
Hi, We are interested in using the REST plugin to extend customer choice and complement our WS-* services. We are particularly interested in the multiple response types (.xml, .json etc). One thing I am not sure of is how we handle security. Say we have an order (/order/1234.xml), how can we

Re: [s2] Different Annotated Validations for different action methods

2007-12-04 Thread Martin Gilday
I posted about this a while back. Nobody seemed to have an annotation based solution, only going back to XML. - Original message - From: Thilo Ettelt [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Date: Tue, 4 Dec 2007 13:01:15 +0100 Subject: [s2] Different

Unnecessary onsubmit

2007-11-27 Thread Martin Gilday
We are using the validaiton interceptor but not client side javascript validation. However we are still seeing lots of onsubmit=customOnsubmit_registration(); return true; appearing in the views. On form submission you get a js error as the function does not exist. Why is this appearing and is

Re: Unnecessary onsubmit

2007-11-27 Thread Martin Gilday
: Dave Newton [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Date: Tue, 27 Nov 2007 08:16:42 -0800 (PST) Subject: Re: Unnecessary onsubmit With the regular s:form... tag without the validation attribute set?! d. --- Martin Gilday [EMAIL PROTECTED] wrote: We are using

Re: Unnecessary onsubmit

2007-11-27 Thread Martin Gilday
Sorry ignore. Someone had been using a theme written for WebWork which had this customOnsubmit in. It seems to have changed in the new form.ftl in 2.0.11 to be simply return true;, which is better. - Original message - From: Martin Gilday [EMAIL PROTECTED] To: Struts Users Mailing List

Re: Annotation Validation, per method?

2007-11-06 Thread Martin Gilday
Validation, per method? i dont know to use anotation but with xml is ClassName-actionAlias_method- validation.xml On 11/5/07, Martin Gilday [EMAIL PROTECTED] wrote: Can you have annotation validation per method? I have put @Validations on both my display and update methods (display shows

Annotation Validation, per method?

2007-11-05 Thread Martin Gilday
Can you have annotation validation per method? I have put @Validations on both my display and update methods (display shows the record from input), but all of the validation seems to be run at once. Can you achieve this with xml or annotation validation, or am I back to validateInput methods?

Velocity dependency

2007-09-24 Thread Martin Gilday
I am porting a WebWork application over to Struts2. I have added a dependency to struts2-core to my Maven POM. dependency groupIdorg.apache.struts/groupId artifactIdstruts2-core/artifactId version2.0.9/version /dependency In my struts.xml I extend struts-default. When I try and start my

Re: Velocity dependency

2007-09-24 Thread Martin Gilday
!-- if you want another file mapping -- servlet-mapping servlet-namevelocity/servlet-name url-pattern*.shtml/url-pattern /servlet-mapping Add the following jar files to lib folder : velocity-dep-1.4.jar velocity-tools-1.1.jar Regards, Leon Martin Gilday wrote: I am

Extended conversation/Wizards

2007-09-15 Thread Martin Gilday
Hi, I am currently maintaining a WebWork 2 based web application. A change in requirements has come about which requires a fairly long wizard to be added. This will take in a fair amount of data entry, at least 6 screens long, with some ajax form population based on selections. The final

Re: Struts 2 performance

2007-07-11 Thread Martin Gilday
I have dropped 2.7 into a WW app which has been live for the past week with zero (new) errors. However, as has been stated, it needs to be reworked to get the speed improvments. - Original message - From: Musachy Barroso [EMAIL PROTECTED] To: Struts Users Mailing List

ExecuteAndWaitInterceptor with round robin load balancing

2007-06-26 Thread Martin Gilday
Has anyone attempted to use the ExecuteAndWaitInterceptor with a load balancer on round robin? I am having problems getting it to work with WebWork 2.2.5. Seeing as the interceptor looks unchanged in Struts 2 I thought it might be worthwhile also asking here. My problem is detailed

Re: [S2] + Spring - WebApplicationContext?

2007-06-24 Thread Martin Gilday
I might be missing the point here. But why do you want to get hold of an application contect directly? You just want to pull out beans from it to use in your actions? You would be much better off using the Struts 2 Spring integration to have it populate your actions for you. No messy util

Re: [S2] Tutorial with Eclipse

2007-06-13 Thread Martin Gilday
Hi. You probably need to install the WTP (Web Tools Project) into your Eclipse. MArtin. - Original message - From: hezjing [EMAIL PROTECTED] To: struts-users user@struts.apache.org Date: Thu, 14 Jun 2007 00:20:04 +0800 Subject: [S2] Tutorial with Eclipse Hi! I have a fresh Eclipse

Re: Hibernate headache with struts 2

2007-05-19 Thread Martin Gilday
Looks like you are trying to access Hibernate managed objects or perform session manipultion in your view. Spring makes this easier but you can do it manually easily. You just need to keep your session open longer. Have a google for things like open session in view filter. - Original

Re: Looking for source to com.opensymphony.xwork2.ActionContext

2007-05-08 Thread Martin Gilday
http://www.opensymphony.com/xwork/download.action - Original message - From: Al Sutton [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org Date: Tue, 8 May 2007 11:45:41 +0100 Subject: Looking for source to com.opensymphony.xwork2.ActionContext Can anyone tell me

Re: Is it possible to unit test validatiors in xml?

2007-05-07 Thread Martin Gilday
http://wiki.opensymphony.com/display/WW/Testing+Validation describes how to do it for WebWork. The process should be very similar for Struts 2. Thanks, Martin. - Original message - From: [EMAIL PROTECTED] To: user@struts.apache.org Date: Mon, 7 May 2007 12:52:40 +0200 Subject: Is it

Re: [S2] Error in File Download in struts-showcase application

2007-05-07 Thread Martin Gilday
Just to confirm I have tried it on the SVN head and had the same error using Jetty. - Original message - From: Struts2 Fan [EMAIL PROTECTED] To: user@struts.apache.org Date: Mon, 7 May 2007 06:52:10 -0700 (PDT) Subject: Re: [S2] Error in File Download in struts-showcase application Ok

Re: [S2] Error in File Download in struts-showcase application

2007-05-07 Thread Martin Gilday
I've attached a patch to the JIRA issue. The file paths were using \ rather than / in the filedownload.xml. Could someone try it on Windows. Thanks, Martin. - Original message - From: Martin Gilday [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Date: Mon, 07 May