RE: Question about minimizing javascript loaded into web page

2003-10-02 Thread Yuan, Saul (TOR-ML)
-roles.xml file. Hope this helps. Saul Am a bit confused :-) Thanks, Brian -Original Message- From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED] Sent: 01 October 2003 21:09 To: Struts Users Mailing List Subject: RE: Question about minimizing javascript loaded into web page

RE: Use Validator for two actions on same jsp

2003-10-02 Thread Yuan, Saul (TOR-ML)
Havn't tried that though, but if you put the following in your jsp: html:javascript formName=/action1 method=validateAction1Form dynamicJavascript=true staticJavascript=false / html:javascript formName=/action2 method=validateAction2Form dynamicJavascript=true staticJavascript=false /

RE: Question about minimizing javascript loaded into web page

2003-10-02 Thread Yuan, Saul (TOR-ML)
please correct me if this is not the case. If so, do you know why this isn't the default behaviour? The default is staticJavascript=true, as defined in the tag source. Saul Thanks, Brian -Original Message- From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED] Sent: 02 October

RE: Question about minimizing javascript loaded into web page

2003-10-02 Thread Yuan, Saul (TOR-ML)
-Original Message- From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED] Sent: 01 October 2003 21:09 To: Struts Users Mailing List Subject: RE: Question about minimizing javascript loaded into web page If you don't want static javascript rendered inside your jsp page, you can set

RE: Use Validator for two actions on same jsp

2003-10-02 Thread Yuan, Saul (TOR-ML)
Thanks Saul, You're solving all my problems :-) Cheers, Brian -Original Message- From: Yuan, Saul (TOR-ML) [mailto:[EMAIL PROTECTED] Sent: 02 October 2003 14:05 To: Struts Users Mailing List Subject: RE: Use Validator for two actions on same jsp Havn't tried

RE: Question about minimizing javascript loaded into web page

2003-10-01 Thread Yuan, Saul (TOR-ML)
If you don't want static javascript rendered inside your jsp page, you can set: staticJavascript=false and have script src=staticJavascript ... reference the static part. Something like below: html:javascript formName=yourForm method=validateYourForm dynamicJavascript=true

RE: validating multi-select

2003-09-24 Thread Yuan, Saul (TOR-ML)
Set it up as a required field like you do for the other form fields. And get the validation-rules.xml file from the nightly built of struts (under /conf/share). This was just fixed. Saul -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24,

RE: Struts Declarative Exception Handling

2003-09-19 Thread Yuan, Saul (TOR-ML)
I've been doing some reading from Cavaness', O'Reilly Struts book and have a question regarding declarative exception handling. Specifically, page 87, The global-exceptions element: ..you will see that the exception element also can be specified in the action element. If an exception

RE: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-15 Thread Yuan, Saul (TOR-ML)
Rob, Thanks for your response. I ended up with changing the validator-rules.xml file myself to add support for multiple radios, checkboxes and selections (just for the validateRequired(form) function) If you would like to post a BugZilla report and provide a patch against the

RE: validation question

2003-09-15 Thread Yuan, Saul (TOR-ML)
In your action mappings in struts-config, you can set validate=false, and do your validation in the action class. Not sure if this is what you want. Saul -Original Message- From: Stephane Grenier [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 5:12 PM To: Struts Users

RE: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-12 Thread Yuan, Saul (TOR-ML)
Rob, Thanks for your response. I ended up with changing the validator-rules.xml file myself to add support for multiple radios, checkboxes and selections (just for the validateRequired(form) function) I checked the validator-rules.xml file in the latest nightly built (Sep 12), I noticed it

RE: Client side validation when using validation against Action path

2003-09-12 Thread Yuan, Saul (TOR-ML)
To answer my own question. After much pain, I found out the following worked: html:javascript formName=/addAsset method=validateAssetForm dynamicJavascript=true staticJavascript=true / I missed the method=validateAssetForm part, not sure why it's vital here. It works thought without it when

RE: ActionErrors

2003-09-12 Thread Yuan, Saul (TOR-ML)
Hi, You can use the placeholder ({0}, {1} ..) feature in message resource something like this: In property file: errors.your_runtime_msg.key = {0} In Action or form bean: new ActionError(errors.your_runtime_msg.key, your runtime message, blah, blah..); your runtime message, blah, blah..

Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-11 Thread Yuan, Saul (TOR-ML)
Hi, I have some problems validating multiple radio buttons and checkboxes, selections on the client side. Tracking down to the javascript code defined in validator-rules.xml, I found that the validateRequired(form) function doesn't deal with multiple checkboxes, selections at all. For

RE: Problems using html tag lib

2003-09-10 Thread Yuan, Saul (TOR-ML)
I don't think you need the .do extension, unless you have that defined in the web.xml mapping. If you use html:form, Struts is supposed to find a form bean defined either through the action mapping or the name attribute in the tag html:form..., if you don't really need a from bean, then use the

Client side validation when using validation against Action path

2003-09-10 Thread Yuan, Saul (TOR-ML)
Hi, I'm using the Validator to validate against an action path (rather than a form), it works fine on the server side. But it doesn't work on the client side using javascript. All the javascripts are spitted out as text, I noticed the starting and ending script tag is missing in the generated

RE: Force initialization of RequestProcessor?

2003-09-09 Thread Yuan, Saul (TOR-ML)
Do you have: controller processorClass=your RequestProcessor class / defined in struts-config.xml ? I think you need to define this for your customized RequestProcessor to be called by Struts. Saul -Original Message- From: Wes Kubo [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: Validator cannot find message key

2003-09-05 Thread Yuan, Saul (TOR-ML)
-definition in your struts-config as well. Adam On 09/04/2003 10:03 PM Yuan, Saul (TOR-ML) wrote: Here is what's in the validation.xml file: formset form name=messageForm field property=messageName depends=required page=1 arg0 key

RE: Validator cannot find message key

2003-09-05 Thread Yuan, Saul (TOR-ML)
with validate=true in the mapping? I'm not saying you have to do it like that, but it should work that way. You should specify the input attribute in the mapping as well. On 09/05/2003 03:49 PM Yuan, Saul (TOR-ML) wrote: Hi Adam, The problem happens to both client side

Validator cannot find message key

2003-09-04 Thread Yuan, Saul (TOR-ML)
Hi, I am using Struts Validator for validating a multi page form, some how the Validator cannot find the messages defined in the application resources. I got the validation error messages like: null is required. I've defined arg0 in the validation.xml file, and the key of arg0 points to a key

RE: Validator cannot find message key

2003-09-04 Thread Yuan, Saul (TOR-ML)
an error in writing... Yuan, Saul (TOR-ML) wrote: Hi, I am using Struts Validator for validating a multi page form, some how the Validator cannot find the messages defined in the application resources. I got the validation error messages like: null is required. I've defined arg0

RE: How to convert ApplicationResource.properties to a table

2003-08-28 Thread Yuan, Saul (TOR-ML)
You can use the import wizard that comes with most of the database tools (Access, SQL Manager, Msql Front etc) to import a text file into your database, be sure to use = as the delimiter. Saul -Original Message- From: Brunda Banavar (IT) [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: XML Parsing Dilemma

2003-08-28 Thread Yuan, Saul (TOR-ML)
Or, a non-parser way, read the xml file to a buffer, send the buffer to a jsp, using jstl's xml parsing capability (x:parse xml=${your xml file} var=...) to do that. This can be done within 24 hours :-) Saul -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent:

RE: Accessing an ID property of a bean using EL

2003-07-23 Thread Yuan, Saul (TOR-ML)
To use the expression language ${..}, you have to use the contributed html-el tag rather than the html tag, ie. html-el:link ..., and remember to define the html-el tag at the beginning of your jsp file. Saul -Original Message- From: Jim Collins [mailto:[EMAIL PROTECTED] Sent:

RE: Using JSTL tags instead of Struts tags

2003-07-10 Thread Yuan, Saul (TOR-ML)
-Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 2:13 PM To: Struts Users Mailing List Subject: Re: Using JSTL tags instead of Struts tags On Thu, 10 Jul 2003, Mark Lowe wrote: Date: Thu, 10 Jul 2003 15:29:07

RE: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died

2003-06-27 Thread Yuan, Saul (TOR-ML)
Robert Heinlein - The Cat Who Walks Through Walls Saul Yuan -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 12:51 PM To: [EMAIL PROTECTED] Subject: [FRIDAY] Struts 1.1 votes passes, but, sadly, my cat died I'm pleased to report

RE: web.xml DTD for Servlet 2.3 Struts 1.1

2003-04-02 Thread Yuan, Saul (TOR-ML)
-Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 4:56 PM To: Struts Users Mailing List Subject: RE: web.xml DTD for Servlet 2.3 Struts 1.1 On Wed, 2 Apr 2003, Wei, Robert (MAN-Corporate) wrote: Date: Wed, 2 Apr

RE: Need Dynamic Form Beans feature for Struts1.0.2

2003-01-15 Thread Yuan, Saul (TOR-ML)
feature for Struts1.0.2 Hi, By using 1.0.2 also we can use Dynamic Form. For this we need to add some .zar files. I expermented with 1.0.2 Thnaks Regards, Ashok.D - Original Message - From: Yuan, Saul (TOR-ML) [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent

RE: Need Dynamic Form Beans feature for Struts1.0.2

2003-01-15 Thread Yuan, Saul (TOR-ML)
: Wednesday, January 15, 2003 3:27 PM To: Struts Users Mailing List Subject: RE: Need Dynamic Form Beans feature for Struts1.0.2 On Wed, 15 Jan 2003, Yuan, Saul (TOR-ML) wrote: Date: Wed, 15 Jan 2003 10:24:16 -0500 From: Yuan, Saul (TOR-ML) [EMAIL PROTECTED] Reply-To: Struts Users Mailing

Need Dynamic Form Beans feature for Struts1.0.2

2003-01-08 Thread Yuan, Saul (TOR-ML)
Hi, We really need the Dynamic Form Beans feature in Struts1.1, but we're stuck with Struts1.0.2, just wondering what's the best way to add that feature to Struts1.0.2? Or any existing samples out there? Thanks in advance, Saul

RE: Need Dynamic Form Beans feature for Struts1.0.2

2003-01-08 Thread Yuan, Saul (TOR-ML)
(TOR-ML) wrote: Date: Wed, 8 Jan 2003 15:55:29 -0500 From: Yuan, Saul (TOR-ML) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Need Dynamic Form Beans feature for Struts1.0.2 Hi, We really need the Dynamic Form Beans feature