RE: Best way to store config variables

2005-08-17 Thread Marsh-Bourdon, Christopher
Have you considered Spring and it's IOC framework? Works wonderfully with Struts (even has a lovely plug-in to get the whole thing working together). The configuration is only one aspect of the whole Spring framework. Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message-

RE: [OT] : Web App Caching

2005-08-12 Thread Marsh-Bourdon, Christopher
I'd back that up, HSQL is definitely worth a look. Just ensure that you choose your mode carefully. Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Swapnil Patil [mailto:[EMAIL PROTECTED] Sent: 12 August 2005 15:25 To: Struts Users Mailing List Subject: Re: [O

RE: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Marsh-Bourdon, Christopher
It is vaguely amusing that the page's url dos not adhere to the page's content! Not sure how practical it would be to use url that do not contain an (file) extension with Struts or most web app frameworks. Aren't they there to give guidance to their content (Hacker subterfuge excluded)? It sho

[OT] Hosting (London)

2005-07-27 Thread Marsh-Bourdon, Christopher
I have several high-specced Linux (Redhat ES) servers doing very little and currently not hosted anywhere. They are Apache/Tomcat/JBoss configured and I did use them to host my test Struts apps. I was wondering if anyone wanted to share the server(s)/costs and get them co-located? Seems a waste

RE: Problem in Struts Tags

2005-07-19 Thread Marsh-Bourdon, Christopher
You are adding the HashMap as an item to the ArrayList, not replacing the contents of the ArrayList with the contents of the HashMap. Try this: List shippers = new ArrayList(map); Instead of: shippers.add(map); And get rid of: ArrayList shippers = new ArrayList(); Cheers Christopher Marsh

Action Definition's attribute attribute

2005-07-01 Thread Marsh-Bourdon, Christopher
If the title confuses, then that was the point. I've been training up some developers to use Struts and the common complaint is the ambiguity of the Action definition's attribute attribute. Now we all have off days when it comes to naming properties/methods etc, but this seems very ambiguous. So

[OT] Off topic threads

2005-06-30 Thread Marsh-Bourdon, Christopher
I know this would "stifle" the debate, but can we just stop the very off-topic debates on: My IDE vs. Your Text Editor Struts vs. Anything else (especially Microsoft) It's not Friday and it only encourages the trolls. It really doesn't have a place here. I personally do attempt (however poorly

RE: How do you have a form with two images do two different thing s when submitted

2005-06-30 Thread Marsh-Bourdon, Christopher
One way would be to have a form with a hidden html object that gets set by the onClick event of each of the images. This can then be collected by the ActionForm and acted upon by the Action. Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Harland, David [mailto

RE: DynaActionForm values problem after submit

2005-06-30 Thread Marsh-Bourdon, Christopher
Is it the name of the property is 'paymentAmount' yet in the form definition it states the name as 'payments'? Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Ciaran Hanley [mailto:[EMAIL PROTECTED] Sent: 30 June 2005 10:42 To: 'Struts User Mailing List' Subject

RE: use a plugin property

2005-06-29 Thread Marsh-Bourdon, Christopher
Create a private property with a Getter and Setter in your plugin, and the wonders, nay mysteries, of Struts will ensure that it gets populated for your use. Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Dewitte Rémi [mailto:[EMAIL PROTECTED] Sent: 29 June 200

RE: Help me with my problem in Automatic Validation please

2005-06-28 Thread Marsh-Bourdon, Christopher
Option 2 assumes that the action1 does not clear down or reset the data form that is used. This could lead to the datalist being present, but not the originally submitted form data. Christopher Marsh-Bourdon www.marsh-bourdon.com _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sen

RE: Help me with my problem in Automatic Validation please

2005-06-28 Thread Marsh-Bourdon, Christopher
The datalist should probably sit in the session scope rather than request. Until there is an "intermediary" scope, this is probably the most cost-effective method. Just ensure that Action2 performs some cleanup that removes it from the scope when you are done with it. Christopher Marsh-Bourdon ww

RE: ApplicationResources.properties vs Validator framework

2005-06-23 Thread Marsh-Bourdon, Christopher
In that case does it contain (or path similar) within the struts-config.xml: Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Gilbert, Antoine [mailto:[EMAIL PROTECTED] Sent: 23 June 2005 14:58 To: Struts Users Mailing List Subject: RE: ApplicationResources.pro

RE: Accessing message resource from in validate method

2005-06-21 Thread Marsh-Bourdon, Christopher
ActionMessage bert = new ActionMessage("Here {0}, thi is the place.", "Bert"); Will produce: Here Bert, thi is the place. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Arash Bijanzadeh [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 13:10 To: Struts Us

RE: [OT] package naming nonsense

2005-06-17 Thread Marsh-Bourdon, Christopher
I favour using org.apache.* or com.sun.*, but never com.microsoft.*. It gives a certain gravitas to one's coding! ;-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 June 2005 13:59 To: Struts Users Mailing List Subject: Re: [OT] package naming nonsense

RE: ActionForm losing Collection/Map property on forward

2005-06-16 Thread Marsh-Bourdon, Christopher
Silly question, but it probably needs asking; What scope are you giving this form? I assume it is request. I know it is unfashionable, but giving the form a scope of session will persist this HashMap for you (unless you reset it). Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com ---

RE: Could someone on the dev team add link to mailing list on Str uts site

2005-05-26 Thread Marsh-Bourdon, Christopher
How many developers does it take to change a Wiki? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: 26 May 2005 17:40 To: Struts Users Mailing List Subject: Re: Could someone on the dev team add link to mailing list on Struts site Ted Husted made the change, I re

RE: Struts, xhtml & bad tag syntax ... maybe nice in 1.7

2005-05-24 Thread Marsh-Bourdon, Christopher
Aladin You are right, apologies. I agree, it would be nice to have. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Aladin Alaily [mailto:[EMAIL PROTECTED] Sent: 24 May 2005 16:24 To: Struts Users Mailing List Subject: RE: Struts, xhtml & bad tag synt

RE: Struts, xhtml & bad tag syntax ... maybe nice in 1.7

2005-05-24 Thread Marsh-Bourdon, Christopher
This is surely down to your IDE and not Struts. Eclipse with MyEclispe will create them XHTML compliant. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Aladin Alaily [mailto:[EMAIL PROTECTED] Sent: 24 May 2005 16:13 To: Struts Users Mailing List Cc:

RE: Getting name of form bean?

2005-05-16 Thread Marsh-Bourdon, Christopher
The name is set in two ways (both within the struts-config.xml) under the action if you specify just a 'name' property, the name of the form is that, if you specify a 'name' and an 'attribute' (in effect an alias) property it will be the 'attribute' property. For example, the name of the form will

RE: [OT] Too late to become a rock star?

2005-05-13 Thread Marsh-Bourdon, Christopher
-Bourdon, Christopher wrote the following on 5/13/2005 3:50 AM: > Never knock Potato farming; I married a potato farmer! I wasn't knocking it for real. I'm sure farmer's hours are long and hard work, but there is something to be said for tilling God's land. I also think it

RE: [OT] Too late to become a rock star?

2005-05-13 Thread Marsh-Bourdon, Christopher
Never knock Potato farming; I married a potato farmer! -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 17:25 To: Struts Users Mailing List Subject: Re: [OT] Too late to become a rock star? I might give potato farming a try. Frank W. Zammetti wrote the

RE: using html link to submit form and params

2005-05-12 Thread Marsh-Bourdon, Christopher
he forward allows me to send. Eg: for this particular link I am also sending action=edit as a request param Thanks -Original Message----- From: Marsh-Bourdon, Christopher [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 11:23 To: 'Struts Users Mailing List' Subject: RE: using html

RE: using html link to submit form and params

2005-05-12 Thread Marsh-Bourdon, Christopher
to submit form and params Would I use the href tag in addition to using the forward tag within the link? -Original Message- From: Marsh-Bourdon, Christopher [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 11:16 To: 'Struts Users Mailing List' Subject: RE: using html link to s

RE: using html link to submit form and params

2005-05-12 Thread Marsh-Bourdon, Christopher
If set your href of the link to be something like this: href="javascript:document.{Form Name}.submit();" Then the form will be submitted and your form values will not be set to null. Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: [EMAIL PROTECTED] [mailto:[E

RE: is it posible to pass a parameter to an action in configurati on time?

2005-05-12 Thread Marsh-Bourdon, Christopher
Use the parameter="{parameter}", you can then pick this up in the action using: String parameter = mapping.getParameter(); Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Rodolfo García Esteban/CYII [mailto:[EMAIL PROTECTED] Sent: 12 May 2005

RE: [POLL] What do you use action forms for?

2005-05-12 Thread Marsh-Bourdon, Christopher
In my particular usage (which might be half or even fully cocked) I do the following: For Input, I take the details in via a form, like most I assume; For Viewing/Editing or Amending I take a POJO from Hibernate and then using PropertyUtils copy the data from the POJO to the Form and then use the

RE: [POLL] What do you use action forms for?

2005-05-12 Thread Marsh-Bourdon, Christopher
#4 -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 09:05 To: 'Struts Users Mailing List' Subject: RE: [POLL] What do you use action forms for? #4 .. > #1 - so I generate them from my POJOs using XDoclet. All the other > frameworks I use (JSF, Sprin

RE: Switch Tags

2005-05-09 Thread Marsh-Bourdon, Christopher
do something else > -Original Message- > From: Marsh-Bourdon, Christopher > [mailto:[EMAIL PROTECTED] > Sent: 09 May 2005 14:26 > To: 'Struts Users Mailing List' > Subject: RE: Switch Tags > > > Yes, that goes some way. I missed out that I need a cas

RE: Switch Tags

2005-05-09 Thread Marsh-Bourdon, Christopher
TED] Sent: 09 May 2005 14:18 To: Struts Users Mailing List Subject: RE: Switch Tags what's wrong with jstl? do this do that do something else > -Original Message----- > From: Marsh-Bourdon, Christopher > [mailto:[EMAIL PROTECTED] > Sent: 09

Switch Tags

2005-05-09 Thread Marsh-Bourdon, Christopher
I will of course be going off to Google in a moment, but I would like anyone's recommendation for a Tag(s) that enable the coder to perform a Switch/Case like function within the JSP. I could of course write one, but I'm lazy! Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com --

RE: Connection Leakage

2005-05-09 Thread Marsh-Bourdon, Christopher
That sounds like you are closing the stable door after the horse has bolted. Why not wrap a _try_ and _finally_ block around the code areas that create/open connections to prevent this? Connections are a strange fruit and should always be closed; otherwise your app could run out of memory not ju

RE: The best place for output formats

2005-04-28 Thread Marsh-Bourdon, Christopher
Well can you use Struts Bean Tags? If so, this would be your option: Not really a custom tag as such. Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Rodolfo García Esteban/CYII [mailto:[EMAIL PROTECTED] Sent: 28 April 2005 14:28 To: user@struts.apache.org S

RE: Looking for a book

2005-04-22 Thread Marsh-Bourdon, Christopher
I'd wholly recommend both Chuck Cavaness's Programming Jakarta Struts and Bill Siggelkow's Jakarta Struts Cookbook, both are available online with O'Reilly Safari (but read in that order). Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: news [mailto:[EMAIL PROTECT

RE: struts 1.3 dev with validator 1.2 dev

2005-04-21 Thread Marsh-Bourdon, Christopher
Hello again Thank you Niall for your suggestion, again it was a mistake with my quick muck/mock-up. However, the issue still occurred. After a fair amount of investigation, I have managed to work out that it was down to the fact that the html:errors and html:messages could not find the resourc

RE: Validation's disappearing messages

2005-04-21 Thread Marsh-Bourdon, Christopher
y. Niall - Original Message ----- From: "Marsh-Bourdon, Christopher" <[EMAIL PROTECTED]> Sent: Thursday, April 21, 2005 10:19 AM > SimpleForm.java > > > public ActionErrors validate(ActionMapping mapping, > HttpServletRequest request) > { > >

RE: Validation's disappearing messages

2005-04-21 Thread Marsh-Bourdon, Christopher
[EMAIL PROTECTED]> > Reply-To: "Struts Users Mailing List" > Date: Wed, 20 Apr 2005 13:49:43 -0400 > To: "Struts Users Mailing List" > Subject: RE: Validation's disappearing messages > > Christopher, > > It might help if you include portions of

RE: Validation's disappearing messages

2005-04-20 Thread Marsh-Bourdon, Christopher
essages are not persisted. -Original Message----- From: Marsh-Bourdon, Christopher [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 11:52 AM To: 'Struts Users Mailing List' Subject: Validation's disappearing messages Afternoon all Under Struts 1.1 (previously I have been usin

Validation's disappearing messages

2005-04-20 Thread Marsh-Bourdon, Christopher
Afternoon all Under Struts 1.1 (previously I have been using 1.0), I have validation on a form (it extends ValidatorActionForm) but after validation has failed and I have (within the validate method) logged the number of errors, I can not for the life of me get them to show within the JSP. I have

RE: AJAX: Whoa, Nellie!

2005-04-19 Thread Marsh-Bourdon, Christopher
Hear-hear. My users would brain me if I just provided that amount of interface on a web application. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 19 April 2005 16:17 To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Re: AJAX: Whoa, Nellie

RE: Displaying data :: Best practise

2005-04-19 Thread Marsh-Bourdon, Christopher
Nils I tend to use ActionForms where I can, but I also have a set of wrappers for Collections that handle ordering of the columns within the collection, retrieve individual items by key etc. and adapters for single objects that enable the front-end to pull all the details out of the beans with sim

RE: [REFERENDUM] Struts is a Community

2005-04-11 Thread Marsh-Bourdon, Christopher
How's about calling us a "prommunity" where the product is the community (in part)? Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Simon Chappell [mailto:[EMAIL PROTECTED] Sent: 11 April 2005 14:18 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: [

[OT] Re: Please wait page

2005-04-07 Thread Marsh-Bourdon, Christopher
ginal Message - From: "Marsh-Bourdon, Christopher" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Thursday, April 07, 2005 5:15 PM Subject: RE: Please wait page > If you ask travelocity nicely, I'm sure they will help. Why not pop

RE: Please wait page

2005-04-07 Thread Marsh-Bourdon, Christopher
If you ask travelocity nicely, I'm sure they will help. Why not pop them an email? Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Shiva Narayana [mailto:[EMAIL PROTECTED] Sent: 07 April 2005 10:13 To: user@struts.apache.org Subject: Please wait page hi all,

RE: Form name collision

2005-03-30 Thread Marsh-Bourdon, Christopher
There are two solutions that you have available to you (well that I know off the top of my head): 1) Use the _attribute_ property in the action tag to give each form a pseudonym: This would l

RE: HTML Tag Users Guide

2005-03-23 Thread Marsh-Bourdon, Christopher
Scott Can I make a suggestion that if you want to find out about a Tag (or set of) that you open the .tld and have a read through it. Most tag properties (especially in the Struts HTML tags) are quite clear from their labels. This isn't always the case, but certainly with the ones that come with

RE: Using constants in JSP pages

2005-03-21 Thread Marsh-Bourdon, Christopher
.marsh-bourdon.com -Original Message- From: Haroon Rafique [mailto:[EMAIL PROTECTED] Sent: 21 March 2005 15:20 To: Struts Users Mailing List Subject: RE: Using constants in JSP pages On Today at 2:24pm, MC=>Marsh-Bourdon, Christopher This is my way of doing this, and it may be a tad crap. In

RE: Using constants in JSP pages

2005-03-21 Thread Marsh-Bourdon, Christopher
This is my way of doing this, and it may be a tad crap. In the page tag at the top of the JSP I add one or more imports like so: <%@ page language="java" import="com.marsh-bourdon.Constants" %> I then just refer to the constants within the page like so: <%= Constants.KEY_FOR_SOMETHING %> This