Map Backed Property problem

2007-05-18 Thread Mulligan, Scott H
I am trying to use a map-backed property but my form values are not getting into the Map. When I debug the code I see the descriptor being returned by PropertyUtils is a MappedPropertyDescriptor, but the mappedWriteMethod is null. The mappedReadMethod looks good though (name=getHostInfo). My

Map Backed Property problem

2007-05-18 Thread Mulligan, Scott H
I figured out my problem and decided to post the answer in case anyone else runs into it. Apparently, the BeanInfo class looks for a setter method with the same parameter type as the getter method. In my case I was getting a String but setting an Object. Changing the Object parameter to a

[OT] Reading Unicode Files

2007-05-08 Thread Mulligan, Scott H
In my Struts application, when I load a Resource Bundle (Property file) that has Unicode characters (\u1234) they get interpreted as single characters. However, when I read a file using a FileInputStream the Unicode characters get interpreted as a String \u1234. I know I am missing something

RE: Re: Forwards between webapps

2006-08-17 Thread Mulligan, Scott H
I worked on a project a couple of years ago where I had the need to forward between different web apps. Thanks to Craig McClanahan's advise I was able to extend the RequestProcessor to do this. This was done in Struts 1.1. Basically I set up specific forward name prefixes to indicate when to

RE: - Design Issue with Struts Validation

2006-05-16 Thread Mulligan, Scott H
Angelo, I like your solution using the DispatchAction and setting validate=false. I am currently using multiple action mappings. However, will the client-side javascript validation be generated using that scheme? Does the html:javascript tag look at the validate attribute in the config? Scott

RE: Validator stops when an error is encountered

2006-05-09 Thread Mulligan, Scott H
Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 7:10 AM To: Struts Users Mailing List Subject: Re: Validator stops when an error is encountered On 5/4/06, Mulligan, Scott H [EMAIL PROTECTED] wrote: The validate javascript function that gets generated

Conditional validation

2006-05-04 Thread Mulligan, Scott H
I just started playing with the commons-validator and came across a problem with how I have my Struts application structured. I am using dispatch actions that have load and save methods. In the load I retrieve the reference data needed to build the page and then forward to the jsp page. In the

RE: ???en_GB. in errors

2006-05-04 Thread Mulligan, Scott H
If your web site needs to be multi-lingual you should place your message in the Resource bundle. If your message isn't predefined, you could set up a general error message in your resource bundle that takes an argument: error.general={0}. Then you just create an ActionMessage using a key of

Validator stops when an error is encountered

2006-05-04 Thread Mulligan, Scott H
The validate javascript function that gets generated by the validator stops processing once one of the validation routines finds an error. Is there a way to override the with so that I can get all errors at once? If so, where would I do this? function validateSignIn(form) { if

Extending PropertyMessageResources

2006-03-15 Thread Mulligan, Scott H
I need to customize the order in which resource bundles are read for messages. Specifically, I have default bundles for groups to which a country belongs. First I search the bundle for the language/country (fr_FR). If I can't find the property, I want to search the group resource bundles to

Web Service fronting a Struts app

2006-03-10 Thread Mulligan, Scott H
I have a Struts 1.1 application running for my employer. Now I am being asked if I can create a web service that acts as a front door to the Struts application. Has anyone ever done this? Is there a way to extend Struts to read a SOAP body in the HttpRequest instead of the regular request

Updating ActionForm from indexed properties

2005-11-17 Thread Mulligan, Scott H
My actionForm has an ArrayList of objects that I display in my JSP for update using indexed properties (see below JSP code): logic:iterate id=objectVO name=FormConfig property=objectCollection type=com.xxx.MyType html:text name=objectVO

RE: Forwarding in custom RequestProcessor

2005-07-14 Thread Mulligan, Scott H
I extended the RequestProcessor to forward between two web applications. The following code is what I use to forward to an action that the other web application has. Then the other web application can define an action that can handle forwarding to whatever jsp it wants. if

Apostrophes in bean:write

2005-04-19 Thread Mulligan, Scott H
Has anyone run into this, and if so do you have a work around? I have a Struts bean:write tag inside a JavaScript onClick command like so: tdinput type=image src=images/EditIcon.gif alt=Add/Edit External Note onClick=showExtNoteModal('nested:write property=pendingExtNote/nested:write', '%=

RE: [OT] Advertising website

2005-01-28 Thread Mulligan, Scott H
Yeah... Print it on your forehead and walk around the mall. There's people on E-Bay that will do it for you too! Scott -Original Message- From: t t [mailto:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 11:04 AM To: Struts Users Mailing List Subject: [OT] Advertising website Hi,

I18n and Locale

2004-11-23 Thread Mulligan, Scott H
I have a Struts application that has (for failover reasons) implemented its own SessionFacade to serialize session information to a database. I am trying to figure out if Struts requires the Locale to be saved in the HttpSession or if I can save it in my SessionFacade. Is there any place in the

Struts Action as Welcome File

2004-09-23 Thread Mulligan, Scott H
I am trying to set my application's welcome file to a struts dispatch action (login.do?method=load), but it isn't being found. Is there any reason I can't use a dispatch action as my welcome page? Is there a better way to do this? Scott Mulligan

Forwarding to another struts application

2004-07-30 Thread Mulligan, Scott H
I have two distinct Struts applications running in Tomcat. I would like to forward a request from one application to the other and still be able to access the request attributes. Is this possible to do in the Struts framework without customizing the Controller? It seems that Struts can only