[OT] tree structure design question

2005-04-14 Thread David Bolsover
Design Question - this is not strictly a struts question but relates to the data structure underpinning the application and the mechanisms for accessing that data so I hope I will be forgiven. First, an explanation of (some of) the issues: The project has both GUI (Swing) and Browser (Struts) int

[OT] tree structure design question

2005-04-14 Thread David Bolsover
Design Question - this is not strictly a struts question but relates to the data structure underpinning the application and the mechanisms for accessing that data so I hope I will be forgiven. First, an explanation of (some of) the issues: The project has both GUI (Swing) and Browser (Struts) int

Conditional forward to target page on form submittal

2004-12-09 Thread David Bolsover
I need to extend an existing application with a conditional forward to a specified page following form submittal. For example forward name="top" path="/toppage.jsp" ... needs to forward to named target page "top" forward name="side" path="/sidepage.jsp" ... needs to forward to named target pag

RE: Conditional forward to target page on form submittal

2004-12-10 Thread David Bolsover
PROTECTED] Subject: Re: [Spam] Conditional forward to target page on form submittal David- Cant make an intelligent decision without looking at your code which fills in 'sometarget' Martin- ----- Original Message - From: "David Bolsover" <[EMAIL PROTECTED]> To: &l

RE: Conditional forward to target page on form submittal

2004-12-10 Thread David Bolsover
ec 2004 21:16:11 -0000, David Bolsover <[EMAIL PROTECTED]> wrote: > > I need to extend an existing application with a conditional forward to a > specified page following form submittal. > > For example forward name="top" path="/toppage.jsp" ... needs to f

RE: Conditional forward to target page on form submittal

2004-12-10 Thread David Bolsover
Hi Joe I am beginning to think you are right - care to offer some sample javascript?? db -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 21:19 To: David Bolsover; [EMAIL PROTECTED] Subject: Re: Conditional forward to target page on form submittal

RE: Form submission and javascript

2004-12-13 Thread David Bolsover
Ryan It is interesting that you should be working on this.. I have a similar requirement - I need to forward to a NAMED page once my action has completed - I do not know which page prior to form submittal. from what I have read so far, there is no 'struts' solution - you have to use Javascript.

RE: [Slightly OT] Simple date-picker?

2005-01-15 Thread David Bolsover
I have not used with validator - but have used earlier versions of this script.. http://www.mattkruse.com/javascript/calendarpopup/ db -Original Message- From: Vamsee Kanakala [mailto:[EMAIL PROTECTED] Sent: 15 January 2005 13:35 To: Struts Users Mailing List Subject: [Slightly OT] Simpl

RE: JDBC Driver

2005-01-18 Thread David Bolsover
What is wrong with the Microsoft driver? -Original Message- From: Neil Meyer [mailto:[EMAIL PROTECTED] Sent: 18 January 2005 07:14 To: user@struts.apache.org Subject: JDBC Driver Hi All, I need a SQL 2000 JDBC driver. Which would you recommend or where can I download a decent one? (N

RE: JDBC Driver

2005-01-18 Thread David Bolsover
: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: JDBC Driver It's causing a lot of problems as my sites get busier. Database deadlocks and timeouts. Neil Meyer -Original Message- From: David Bolsover [mailto:[EMAIL PROTECTED] Sent: Tuesday,18 January 2005 10:43 To: Struts

RE: How to limit the result?

2005-01-18 Thread David Bolsover
Processing ResultSets into custom beans can be a frustrating process.. You should have look at javax.servlet.jsp.jstl.sql.ResultImpl and associated classes. You will find in the jstl source distribution. Essentially, with a little effort, these classes will process a ResultSet and return a java

RE: How to limit the result?

2005-01-18 Thread David Bolsover
xactly the same amount of databeans in your arraylist as you want to show? And where do you do it? Exact, in your action. Alternatively you could use one of many paging taglibs out there (check sourceforge). > -Ursprüngliche Nachricht- > Von: David Bolsover [mailto:[EMAIL PROTECTED]

RE: constants interface

2005-01-22 Thread David Bolsover
It is worth taking a look at the excellent book 'Effective Java' by Joshua Bloch - he outlines a number of reasons for avoiding the constant interface pattern and instead advocates the use of a constant utility class as in.. public class MyInterface { public static final String YES = "yes"; }

RE: [OT] Re: constants interface

2005-01-23 Thread David Bolsover
Wow.. I'm off line for a day .. and WWIII breaks out.. My reference to Joshua Bloch seems to have gotten the list a bit steamed up.. any chance that peace might break out some time soon? db -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: 23 January 2005 15:08 To:

RE: [OT] Re: constants interface

2005-01-23 Thread David Bolsover
String yes = MyInterface.YES; //... } } public class WayTwo implements MyInterface { public void myMethod(){ String yes = YES; //... } } David Bolsover <[EMAIL PROTECTED]> wrote:Wow.. I'm off line for a day .. and WWIII breaks out.. My reference

[OT] support for *.do files

2005-01-24 Thread David Bolsover
Since this is rather OT, I have marked the subject as such. Rather than use mod_jk, I have been in the habit of using mod_proxy and have httpd.conf as follows: It works fine for me - but I'm unsure - are there performance disadvantages with mod_proxy? Ah - yes and to answer the original questio

Validator - how to check a checkbox

2005-11-14 Thread David Bolsover
Hi all I've done a deal of searching through the archives, looked at the examples - even read the docs - I'm still stuggling with this... I need to validate a number of fields in a from; certain fields are required if a checkbox is checked and should be empty if the checkbox is not checked. What

RE: Validator - how to check a checkbox

2005-11-15 Thread David Bolsover
al Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper > Sent: 14 November 2005 23:54 > To: user@struts.apache.org > Subject: Re: Validator - how to check a checkbox > > David Bolsover wrote: > > Hi all > > > > I've done a deal of searchin

Validator - how to check a checkbox - solution

2005-11-15 Thread David Bolsover
ameter "complete=false" which will ensure the property is set. My thanks to Chris Felaco for his original post re the above to jGuru. db > -Original Message- > From: David Bolsover [mailto:[EMAIL PROTECTED] > Sent: 15 November 2005 08:25 > To: 'Struts User