-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
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 /
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
-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
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
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
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,
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
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
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
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
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
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..
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
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
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
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,
-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
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
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
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
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,
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:
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:
-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
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
-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
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
: 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
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
(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
31 matches
Mail list logo