RE: Form name from JSP page

2004-03-03 Thread Stuart . Jameson
Hi, My JSP page has some javascript that need to references the html:form by name but how elegently get the form name and input field name to achieve the following without harcoding? Document.forms['my_form'].elements['my_element_1'] Thanks Stu -

RE:Form creation

2004-02-23 Thread Stuart . Jameson
Hi, Got a query about when ActionForm is created. In struts config I map appname/MyQueries.do URL to MyQueryAction class via struts config. In execute method I expected the form to exist but it is null (I haven't submitted the form yet I know but I thought the MyQueries.do GET would act like I'

RE: RE: Validator won't kick-in

2003-02-05 Thread Stuart Jameson
In web xml there is the following is it set for you? validate true > -Original Message- > From: otisg [mailto:[EMAIL PROTECTED]] > Sent: 04 February 2003 23:00 > To: Tennent, Erik > Subject: Re: RE: Validator won't kick-in > > > Yes I did :) > My original email

RE: [OT] Programming Challenge

2003-01-24 Thread Stuart Jameson
Not sure that the algorithm 'randomly' calculates the date but here you go http://www.dennisglass.com/javascript02.html > -Original Message- > From: Mark Galbreath [mailto:[EMAIL PROTECTED]] > Sent: 24 January 2003 15:16 > To: struts > Subject: [OT] Programming Challenge > > > Anybod

RE:options

2002-05-21 Thread Stuart Jameson
Having trouble using I have a container, MyTypesList to store a list of MyType beans beanList contains the following. private Vector myTypes; (of type MyType) MyBean has properties ID and typeName. I'm trying to output a select box that displays the possible typeNames and submits the value

RE: File upload

2002-04-23 Thread Stuart Jameson
flag set to true. PrintWriter pw = new PrintWriter(new BufferedWriter( new FileWriter("C:\\Demo.out"), true); HTH, robert > -Original Message----- > From: Stuart Jameson [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 8:26 AM > To: Struts Users Mailing List

RE: File upload

2002-04-23 Thread Stuart Jameson
Hi, Got a problem with uploading files to the server. I don't get any errors but the files I try and upload are always empty Code I'm using in the Action::perform() method looks like this PrintWriter pw = new PrintWriter( new BufferedWriter( new FileWriter("C:\\Demo.

losing checkbox info between pages

2002-04-12 Thread Stuart Jameson
Hi, I have 1 form split over 2 pages. Page 1 has a checkboxA page 2 has checkboxB Unless I put a hidden field A in page 2 and a hidden field B in page 1 the checkboxes aren't set correctly (because reset() is called each the page is submitted). I assume there is a better way to do this. An