struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <>
Subject Re: javascript validator
Date Tue, 03 Dec 2002 15:38:04 GMT
After generating the static javascript functions you can put them in a js 
file and include that in every page.  Then, use the staticJavascript="false" 
attribute to not render those functions again.


>Reply-To: "Struts Developers List" <>
>Subject: javascript validator
>Date: Tue, 3 Dec 2002 12:30:11 +0000
>Hello All,
>This is my first post. I am currently using Struts-validator to produce the
>client side javascript validations. This works fine by appending a bunch of
>javascript functions at the bottom of the page, but i need those javascript
>to be separate in ".js" file instead of on the same page. The advantage of
>doing this,
>1. You are hiding the javascript codes from the user. If they view the
>source from the browser they can't actually view it.(but anyway they can
>see the .js file), but here one level of abstraction is provided.
>2. It's very neat and tidy and i can reuse the same .js code in some other
>page too.
>Can i expect this feature in future...Does it make any sense??, please let
>me know.
>This email is confidential and should not be used by anyone who is not
>the original intended recipient. Prudential cannot accept liability for
>statements made which are clearly the sender's own and not made on
>behalf of the Prudential. In addition no statement should be construed
>as giving investment advice within or outside the United Kingdom.
>Prudential plc
>Laurence Pountney Hill, London, EC4R 0HH.
>Incorporated and registered in England and Wales.
>Registered Office as above. Registered number 1397169.
>Prudential plc is a holding company, subsidiaries of which are
>regulated by the FSA.
>"Prudential" is a trading name of The Prudential Assurance Company
>Limited. This name is also used by other companies within the
>Prudential marketing group, which between them provide life
>assurance, pensions, savings and investment products. The Prudential
>Assurance Company Limited is registered in England and Wales.
>Registered Office at 142 Holborn Bars, London, EC1N 2NH.
>Registered number 15454. Regulated by the FSA.
>An e-mail reply to this address may be subject to interception
>or monitoring for operational reasons or for lawful business practices.
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 

Protect your PC - get VirusScan Online

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message