Struts 2 validation

2010-04-29 Thread David Harland
Hi, Is there any way of creating a struts validation xml for a specific method or is the only way of doing through an Action method eg. public String saveSomething() { return SUCCESS; } public void validateSaveSomething() { // } Thanks Dave. -

Struts 2 Converting specific List User property

2009-09-27 Thread David Harland
Hi, I have an UsersAction that has a List user; User has the property java.util.Date dateOfBirth I want to use a default Convertor for java.util.Date in xwork-converion.properties which I know how to do, but I want to have a different Convertor for dateOfBirth. Is this possible and if so how d

RE: String manipulation

2009-02-27 Thread David Harland
Try adding this to your action static final Pattern pattern = Pattern.compile("^.+\\.((csv)|(xls))$", Pattern.CASE_INSENSITIVE); In your validateUpload method have something like Matcher matcher = pattern.matcher(fileName); if (!matcher.matches()) { addActionError("F

Re: struts 2.0.14

2008-10-30 Thread David Harland
; > musachy > > On Thu, Oct 30, 2008 at 8:54 AM, David Harland > <[EMAIL PROTECTED]>wrote: > > > Hi, > > > > Im trying to do the testing of the xwork fix. The 2.0 > branch of xwork seems > > to be failing: > > > > Failed tes

RE: struts 2.0.14

2008-10-30 Thread David Harland
) testAddingToMapsWithObjects(com.opensymphony.xwork2.util.SetPropertiesTest) Can someone please have a look at it. Thanks Dave. --- On Thu, 10/30/08, David Harland <[EMAIL PROTECTED]> wrote: > From: David Harland <[EMAIL PROTECTED]> > Subject: RE: struts 2.0.14 > To: "Struts U

RE: struts 2.0.14

2008-10-30 Thread David Harland
replacement for the xwork 2.0.6 jar provided with the 2.0.13 test build. We're working on a solution to get a full release out, but any feedback from users whether our problems are fixed with the current codebase would be really helpful! Sorry for the inconvenience, Rene David Harland sc

struts 2.0.14

2008-10-29 Thread David Harland
Hi, Is there any chance of getting a 2.0.14 build please. Thanks Dave. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2.0.12 has broken Conversion Errors!!!

2008-10-28 Thread David Harland
e: Tuesday, October 28, 2008, 3:44 PM > Attention Deficit Disorder + Multi-tasking = bad emails > > :) > > musachy > > On Tue, Oct 28, 2008 at 10:35 AM, David Harland > <[EMAIL PROTECTED]>wrote: > > > 2.0.11.1 works. 2.0.12 does not. > > > > Regar

Re: Struts 2.0.12 has broken Conversion Errors!!!

2008-10-28 Thread David Harland
> ValidationAware, > otherwise the errors will do get lost. > > musachy > > On Tue, Oct 28, 2008 at 9:27 AM, Musachy Barroso > <[EMAIL PROTECTED]> wrote: > > > Thanks for reporting, I will look into it. > > > > musachy > > > > > > On Tue,

Re: Struts 2.0.12 has broken Conversion Errors!!!

2008-10-28 Thread David Harland
: Tuesday, October 28, 2008, 11:49 AM > Hi! > > If you have found a bug, please register an issue in JIRA > and include > as much relevant information as possible. > > http://struts.apache.org/helping.html#issues > > Thanks. > > Nils-H > > On Tue, Oct 2

Struts 2.0.12 has broken Conversion Errors!!!

2008-10-28 Thread David Harland
Since upgrading to struts 2.0.12 from 2.0.11.1 all conversion errors are being lost. Here is a simple example showing this is broken! Take the Struts2 blank app for 2.0.11.1. Now add a simple Action with an Integer property testNumber. Now add a jsp with a field testNumber. Now put fred in tes

Re: struts 2.0.12 ParametersInterceptor Conversion errors lost

2008-10-28 Thread David Harland
field "number". Now replace the lib files from the 2.0.11.1 struts2 blank with the 2.0.12. The Conversion errors now do not get displayed. They are lost! --- On Mon, 10/27/08, David Harland <[EMAIL PROTECTED]> wrote: > From: David Harland <[EMAIL PROTECTED]>

struts 2.0.12 ParametersInterceptor Conversion errors lost

2008-10-27 Thread David Harland
Hi, Since upgrading to struts 2.0.12 from 2.0.11.1 all conversion errors are bing lost. We have a date convertor for all Date fields. We have this convertor configured in the xwork-conversion.properties. Since we upgraded to 2.0.12 if you were to enter something such as 'fred' into a date fie

Re: [S2] Dynamic Text Tag Attributes

2008-09-11 Thread David Harland
I think you want something like label.page2.title=Title {0} --- On Thu, 9/11/08, Roger <[EMAIL PROTECTED]> wrote: > From: Roger <[EMAIL PROTECTED]> > Subject: [S2] Dynamic Text Tag Attributes > To: "Struts Users Mailing List" > Date: Thursday, September 11, 2008, 4:39 PM > I've got some .jsp

Re: geText from Action encodes html entities

2008-09-01 Thread David Harland
Use native2ascii to encode your package.properties file. --- On Mon, 9/1/08, Esteve Camps Chust <[EMAIL PROTECTED]> wrote: > From: Esteve Camps Chust <[EMAIL PROTECTED]> > Subject: geText from Action encodes html entities > To: user@struts.apache.org > Date: Monday, September 1, 2008, 3:24 PM >

default interceptor stack

2008-05-09 Thread David Harland
Is it possible to set a different default interceptor stack per package using default-interceptor-ref? I have split my struts configuration into mutiple files each with a different package name. I have set the default in the first file and the default for the second in the second file but the

s2: How do you format a date and use it as a param value in a s:url

2008-04-17 Thread David Harland
I have an action with a List messages. The Message class has a Date senddate. In my jsp I am iterating over the messages and want to create a s:url with a param of formatedDate but I want to set the value as a formatted version of senddate. I am presently adding a getFormattedDate method which is u

RE: Struts validator

2008-02-01 Thread David Harland
You can do it by having 3 different methods such as method1() method2() method3() and then have validateMethod1() validateMethod2() validateMethod3() then in your form or you can do by using action aliases and have three validation xml files. http://struts.apache.org/2.0.11/docs/vali

RE: STRUTS Issue in IE

2007-12-06 Thread David Harland
Haven't you got the mind reading plugin for struts 2. lol -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 06 December 2007 14:28 To: Struts Users Mailing List Subject: Re: STRUTS Issue in IE --- manoharkundety <[EMAIL PROTECTED]> wrote: > I am working on a Web based

Re: Struts2 version 2.1

2007-10-26 Thread David Harland
Do you know what has happened to 2.0.11? It seems to have stalled. --- Ted Husted <[EMAIL PROTECTED]> wrote: > On 10/25/07, someone> wrote: > > Hi, > > > > Having been a long time developer with Struts, I > love working with Struts 2x. So far it has > >been a pleasure and you guys have done a gre

Re: [S2]ActionSupport set parameters question.

2007-10-22 Thread David Harland
Add something like this to your action public void validate() { User user = getUser(); if (StringUtils.isBlank(user.getName())) { addActionError(getText("user.name.empty")); } if (StringUtils.isBlank(user.getAddress())) { addActionError(getText("user.address.empty")); } } Have a

Re: [s2] How do I output unicode characters please help

2007-09-23 Thread David Harland
om the db, before you show it ... (i.e. when you set the action variable) ... David Harland wrote: > These characters are not static they are being created dynamically. I can not > put them in a property file. I am getting the hex unicode for the characters > from the database as 00f

Re: [s2] How do I output unicode characters please help

2007-09-23 Thread David Harland
0 AM Subject: Re: [s2] How do I output unicode characters please help Just put the umlaut character u" directly to your property file and make sure that you save it as utf-8 not ansi e.t.c. Regards, Leon David Harland wrote: > Hi, > > Thanks I have added those properties but it

Re: [s2] How do I output unicode characters please help

2007-09-22 Thread David Harland
ype="text/html; charset=utf-8" %> Also check the doctype of your resulting html. I hope this will help Regards Leon David Harland wrote: > Hi, > > If I put the following \u00fc in a properties file and use it in a jsp i get > the german character ü output. If I hav

[s2] How do I output unicode characters please help

2007-09-22 Thread David Harland
Hi, If I put the following \u00fc in a properties file and use it in a jsp i get the german character ü output. If I have an action with the variable test and I set it with \u00fc and I output it in a jsp I get the encoding ü. How do I get the character instead of this encoding please? Thanks

Re: [S2] DateTimePicker and css

2007-09-20 Thread David Harland
Check out this calendar. Very nice and easy to use http://www.zapatec.com/website/main/products/prod1/ - Original Message From: setecastronomy <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Thursday, September 20, 2007 4:43:53 PM Subject: [S2] DateTimePicker and css I use some

RE: S2 : Validation per Action method - ideas?

2007-09-18 Thread David Harland
rules for each of those. If you could provide more information regarding your situation, that would be of great insight. Thanks, -a David Harland-3 wrote: > > Hi Ted, > > It appears that if you use annotations you have more flexibilty than > with using xml. Would it not be pos

RE: S2 : Validation per Action method - ideas?

2007-09-18 Thread David Harland
thing else to configure. In WebWork in Action, it's at page 353-354, under "Validation under different contexts". HTH, Ted <http://www.husted.com/ted/blog/> On 9/18/07, David Harland <[EMAIL PROTECTED]> wrote: > Can someone please point me to the documentation that show

RE: S2 : Validation per Action method - ideas?

2007-09-18 Thread David Harland
Can someone please point me to the documentation that shows you how to configure validation per action method using the validation xml files? Or is this not possible? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Husted Sent: 18 September 2007 10:27

[s2] Possible Crud Bug

2007-09-14 Thread David Harland
Hi, I think I may have found a bug. We are using the crud stack and are setting the excudeParams for a parameter. It appears that because the params interceptor is called twice only one of the instances of the params interceptor is actually having the excludeParams variable set.

[s2] Is it possible to have seperate validtion files for each method without using wildcards.

2007-09-12 Thread David Harland
Is it possible to have seperate validtion files for each method. Bascially it would be very nice to be able to have and be able to have seperate validations for both methods instead of using the alias. This approach seems to be a more elegant way of valida

Would it be possible to add ognl evaluation of param values in field validators.

2007-08-09 Thread David Harland
Would it be possible to add ognl evaluation of param values in field validators. Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect

Can you add ognl evaluation of param values in field validators

2007-08-09 Thread David Harland
Would it be possible to add ognl evaluation of param values in field validators. Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect

how do I use an ognl expression to set a param value in a field validator

2007-08-09 Thread David Harland
Can someone please tell me how I use an ognl expression to set a param value in a field validator. Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1

how do I get latest version of xwork library or struts 2.0.8

2007-07-17 Thread David Harland
Hi, As recommended in http://cwiki.apache.org/confluence/display/WW/S2-001 I tried downloading and building the latest version of struts but instead of getting 2.0.8 I got 2.1. I then tried to get the latest version xwork and build that, and that had 3 errors. Can someone please give me a link

how do I get latest version of xwork library or struts 2.0.8

2007-07-17 Thread David Harland
Hi, As recommended in http://cwiki.apache.org/confluence/display/WW/S2-001 I tried downloading and building the latest version of struts but instead of getting 2.0.8 I got 2.1. I then tried to get the latest version xwork and build that, and that had 3 errors. Can someone please give me a link

RE: Struts 2 performance

2007-07-16 Thread David Harland
You have either taken the server down that is running the showcase app or someone's using the ognl feature to shut it down. I take it you will be doing a release once the fix has gone in? Thanks.. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 16 July 2007 14

RE: datetimepicker

2007-07-03 Thread David Harland
etter. (the releases depend on me so I can get things fixed right away :) ) regards musachy On 7/3/07, David Harland <[EMAIL PROTECTED]> wrote: > > Hi Musachy > > Is it possible for me to download the fixed version of the > datetimepicker (that will allow me to set the dis

datetimepicker

2007-07-03 Thread David Harland
Hi Musachy Is it possible for me to download the fixed version of the datetimepicker (that will allow me to set the displayFormat to something other than the default) from somewhere or must I wait for 2.1 to be released. Is there a estimate of when that might be if this is so. Thanks Dave.

RE: Struts 2.0 validation

2007-06-29 Thread David Harland
You can set set up specific validation for specific methods eg --validation.xml Have a look at the mailreader application there are examples. Regards Dave. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 29 June 2007 11:14 To: Struts Users Mailing List Subj

How come paramsPrepareParamsStack isn't the default stack?

2007-06-25 Thread David Harland
It seems to me that for the majority or senarios you would want paramsPrepareParamsStack to be the default stack. One thing we have noticed with this as our default and devMode turned on is that we get errors with pages with checkboxs because the checkbox interceptor is being called after the param

Why isn't paramsPrepareParamsStack the default stack?

2007-06-22 Thread David Harland
It seems to me that for the majority or senarios you would want paramsPrepareParamsStack to be the default stack. One thing we have noticed with this as our default and devMode turned on is that we get errors with pages with checkboxs because the checkbox interceptor is being called after the param

where is the ognl source?

2007-06-20 Thread David Harland
Hi, I have been to www.ognl,org and can only find the source for 2.6.9 where are the struts 2 team getting the new releases from as it seems to be a dead site? Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Re

Automatic trimming

2007-06-18 Thread David Harland
If you are setting trim=true in a stringlength validation you obviously want the data that is passed to the database to be the data you have validated, not the data plus the spaces removed during validation which is what is happening. Is there any way to automatically trim data from textfields etc

RE: datetimepicker & S2 validation

2007-06-07 Thread David Harland
Hi Musachy , Have you fixed the bugs for the datetimepicker tag for 2.0.8? Thanks Dave. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 06 June 2007 21:37 To: Struts Users Mailing List Subject: Re: datetimepicker & S2 validation sorry. 2.1 is the one. musachy

RE: s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread David Harland
How exactly do you do that, can you give me an example please? -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 31 May 2007 16:43 To: Struts Users Mailing List Subject: RE: s:url tag Why isn't includeParams='none' the default setting? --- Al Sutton <[EMAIL PROTECTED]

s:url tag Why isn't includeParams='none' the default setting?

2007-05-31 Thread David Harland
Hi, How come the default setting for the includeParams attribute for the s:url tag is not 'none' ? __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learnd

RE: newline being ignored

2007-05-17 Thread David Harland
2007/5/17, David Harland <[EMAIL PROTECTED]>: > > I have a jsp with a textarea whose name is body. The text contained in > body is newline then some text. The form is then posted to an action > that then writes it away to the database. If I then go back to view > the same page t

RE: newline being ignored

2007-05-17 Thread David Harland
Petrelli [mailto:[EMAIL PROTECTED] Sent: 17 May 2007 11:00 To: Struts Users Mailing List Subject: Re: newline being ignored 2007/5/17, David Harland <[EMAIL PROTECTED]>: > I have an object with String variable body. In the body is a newline > character then some text. When this is bein

newline being ignored

2007-05-17 Thread David Harland
I have an object with String variable body. In the body is a newline character then some text. When this is being posted the newline seems to be being trimmed is there any way to stop this please? __ Ufi Limited Registered in Eng

RE: datetimepicker dateformat problem

2007-05-16 Thread David Harland
datetimepicker dateformat problem use "displayFormat" musachy On 5/16/07, David Harland <[EMAIL PROTECTED]> wrote: > > How can I format the displayed date? > > -Original Message- > From: Musachy Barroso [mailto:[EMAIL PROTECTED] > Sent: 16 May 2007 14

RE: datetimepicker dateformat problem

2007-05-16 Thread David Harland
submitted as RFC 3339. musachy On 5/16/07, David Harland <[EMAIL PROTECTED]> wrote: > > Hi, > > If I use the datetimepicker and add the dateFormat="dd/MM/" attribute. > When the form is posted I get a convertor error. If I leave it as the > default format there i

datetimepicker dateformat problem

2007-05-16 Thread David Harland
Hi, If I use the datetimepicker and add the dateFormat="dd/MM/" attribute. When the form is posted I get a convertor error. If I leave it as the default format there is no problem. Does anyone know why please. Thanks Dave. _

Help ParametersInterceptor - [setParameters]: Unexpected Exception catched

2007-05-05 Thread David Harland
Hi, I have a list of contact objects and I am wrapping each object in a class has the id and a boolean for checkboxes. When I post the data and try to read to values I get the following error 12:27:23,611 INFO [STDOUT] 12:27:23,611 ERROR [ParametersInterceptor] ParametersInterceptor - [setPar

CRUD with checkboxs

2007-05-03 Thread David Harland
Hi, What is the recommended approach to having a list of employees as with the CRUD examples but with each having a checkbox so that when the whole form is posted you can update each of the employees that have been selected... Thanks Dave. __

Release date 2.0.7 ? 2.0.8?

2007-05-01 Thread David Harland
Hi Have you any probable release dates for the next version of struts 2. Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Soluti

s:url bug

2007-05-01 Thread David Harland
Hi, I think I have found a bug with the url tag. If I have a url with 2 params I get %{msgUrl} gives /test/test!delete.action?lastPage=home&messageId=3851761 Am I doing something wrong? __ Ufi Limited Registered i

Dynamic back button

2007-04-30 Thread David Harland
Hi, I have a page that can be reached from various other pages. On this page is a button that will send them back to the page they came from via the action for that page. Is there a clever way of doing this with struts 2 other than putting a hidden variable in the page to check. Thanks Dave.

RE: datetimepicker additional useful feature

2007-04-19 Thread David Harland
lue is expected to be an String, which is wrong, it > should take any object as the result, like the "value" attribute does. > I will create a Jira ticket for it. > > regards > musachy > > On 4/19/07, David Harland <[EMAIL PROTECTED]> wrote: > > >

RE: datetimepicker additional useful feature

2007-04-19 Thread David Harland
April 2007 15:41 To: Struts Users Mailing List Subject: Re: datetimepicker additional useful feature You can use the "endDate" attribute to set the last date available in the calendar. regards musachy On 4/19/07, David Harland <[EMAIL PROTECTED]> wrote: > > Hi, > > Is

datetimepicker additional useful feature

2007-04-19 Thread David Harland
Hi, Is it possible you could add an attribute such as endDateTodayPlusDays. So that the end date is dynamically set to today plus whatever in days etc. I cant see any way of dynamically setting this otherwise. Thanks __ Ufi Lim

RE: ajax and struts 2

2007-04-13 Thread David Harland
Thanks Dave, I think that is exactly what I was looking for. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 13 April 2007 16:54 To: Struts Users Mailing List Subject: RE: ajax and struts 2 --- David Harland <[EMAIL PROTECTED]> wrote: > Im using DWR. The p

RE: ajax and struts 2

2007-04-13 Thread David Harland
().getSession() Mahesh Parab wrote: > Hi David, > u can able to read the session variable in javascript, e.g var intId > intId='<%=session.getValue("id")%>' ; > > try this , > > Thanks, > mahesh. > > On 4/12/07, David Harland <[EMAIL PROTECT

ajax and struts 2

2007-04-11 Thread David Harland
I am new to ajax and have just written my first ajax function. In my function I am passing a user id into the function and are being returned a List of Contacts to populate a select. Presently I am putting the id in a hidden field in the jsp and then passing it from there. What I would prefer t

datetimepicker problem

2007-04-10 Thread David Harland
If I use the datetimepicker in date format I can preset the date value using an action and I can use the displayFormat to format the date. If I use it in type=time the time is always 12:00. I can't adjust the time or the time display format. _

Re: datetimepicker does not work

2007-04-08 Thread David Harland
If you use the datetimepicker in date format I can preset the date value using an action and I can use the displayFormat to format the date. If I use it in type=time the time is always 12:00. I can't adjust the time or the time display format. - Original Message From:

RE: Accessing message resources

2007-04-05 Thread David Harland
message resources --- David Harland <[EMAIL PROTECTED]> wrote: > How do you use ognl to access resources outside of a class that > extends ActionSupport. eg the struts 2 equivalent to > Resources.getMessage but > getText() instead I'm not aware that you'd normally

Accessing message resources

2007-04-05 Thread David Harland
Hi, How do you use ognl to access resources outside of a class that extends ActionSupport. eg the struts 2 equivalent to Resources.getMessage but getText() instead Thanks Dave. Need Mail bonding? Go to

RE: datetimepicker does not work

2007-03-30 Thread David Harland
any javascript error on the page? musachy On 3/30/07, David Harland <[EMAIL PROTECTED]> wrote: > > firefox > > -Original Message- > From: Musachy Barroso [mailto:[EMAIL PROTECTED] > Sent: 30 March 2007 13:47 > To: Struts Users Mailing List > Subject: Re

RE: datetimepicker does not work

2007-03-30 Thread David Harland
firefox -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 30 March 2007 13:47 To: Struts Users Mailing List Subject: Re: datetimepicker does not work What browser are you using? musachy On 3/30/07, David Harland <[EMAIL PROTECTED]> wrote: > &

RE: datetimepicker does not work

2007-03-30 Thread David Harland
on how "it messes up your page"? Is there any error on the javascript console? Set debug="true" on the head tag to see if Dojo is logging any errors. regards musachy On 3/30/07, David Harland <[EMAIL PROTECTED]> wrote: > > Hi, > > Thanks that got it working

Localizing Output

2007-03-30 Thread David Harland
How do you write this so that it uses the label instead of the fieldName? errors.required=${getText(fieldName)} is required. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, S

Re: datetimepicker does not work

2007-03-29 Thread David Harland
9:43 PM Subject: Re: datetimepicker does not work Did you setted the in your jsp? If you did and it is still not working, post your code here, so we can figure out the problem. Regards, Felipe David Harland wrote: > > I am trying to use the datetimepicker but I am getting the foll

datetimepicker does not work

2007-03-29 Thread David Harland
I am trying to use the datetimepicker but I am getting the following error 22:03:16,676 INFO [STDOUT] 22:03:16,666 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSuppor

Tiles 2

2007-03-29 Thread David Harland
Does anyone know when Tiles 2 will have a production release? __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in Engl

RE: wildcard validate method problem

2007-03-26 Thread David Harland
Just found this. It's already been added. http://struts.apache.org/2.x/docs/key-changes-from-webwork-2.html -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 26 March 2007 15:44 To: Struts Users Mailing List Subject: RE: wildcard validate method problem ---

RE: wildcard validate method problem

2007-03-26 Thread David Harland
method problem --- David Harland <[EMAIL PROTECTED]> wrote: > I have 2 forms in a jsp posting to different methods of the same > action. I have different validation that > must be performed in the action validate method for each of the two > methods. How do I distinguish between

wildcard validate method problem

2007-03-26 Thread David Harland
I have 2 forms in a jsp posting to different methods of the same action. I have different validation that must be performed in the action validate method for each of the two methods. How do I distinguish between the two different methods when the validate method is called or do I need to create 2 s

RE: How do you provide a Map from the application scope for the list of a s:select

2007-03-15 Thread David Harland
of a s:select --- David Harland <[EMAIL PROTECTED]> wrote: > We are running struts 1 and 2 in parallel. Same webapp I assume? > Struts 1 is putting the Map into application scope. > A jsp running in struts 2 using struts 2 tags is trying to use this > map to populate a select.

RE: How do you provide a Map from the application scope for the list of a s:select

2007-03-15 Thread David Harland
-Original Message- From: David Harland [mailto:[EMAIL PROTECTED] Sent: 15 March 2007 15:17 To: user@struts.apache.org Subject: How do you provide a Map from the application scope for the list of a s:select How do you provide a Map from the application scope for the list of a s:select. I keep

How do you provide a Map from the application scope for the list of a s:select

2007-03-15 Thread David Harland
How do you provide a Map from the application scope for the list of a s:select. I keep getting the following error The requested list key 'referenceLookup.idQuestionOptions' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown loca

Previous action's property file being accessed incorrectly

2007-03-13 Thread David Harland
> Hi, > > We have a problem. Our home page is made up of three actions etc. > > > > > > When a link is clicked on the home page to the User page via the User > action the User pages properties can't be found. It appears to be > looking at the action Home3 properties file... > > The home page