You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Darren Massel <Da...@Cedar.com> on 2004/02/12 13:29:10 UTC

Javscript

Using struts 1.1 on Tomcat 4.1.29
I want to use the Javascript validation i.e.  <html:javascript/> but it goes
straight to the struts validation
Also all the javascript is written to the screen, unless in script tags -
which after reading the javadoc should not be needed.

Any ideas?  


*********************************************************************** 
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. Any unauthorised distribution or copying is strictly 
prohibited. 
 
Whilst Cedar Software Ltd takes steps to prevent the transmission of 
viruses via e-mail, we can not guarantee that any email or 
attachment is free from computer viruses and you are strongly 
advised to undertake your own anti-virus precautions. 
 
Cedar Software Ltd grants no warranties regarding performance, 
use or quality of any e-mail or attachment and undertakes no 
liability for loss or damage, howsoever caused. 

CedAr is a leading UK supplier of Financial, eProcurement, Performance Management and, following the recent acquisition of Goldenhill Computer Systems Ltd, HR and Payroll software. Cedars solutions deliver increased capabilities and offer a direct and measurable financial return on investment.  The company has a customer base of more than 500 organisations in both the public and private sector. 
Particular sector strengths include Airlines, Business Services,
Education, Emergency Services, Financial Services, Government, Health, Local Authorities, Not for Profit, Retail and Utilities.  For more
information, please visit www.cedar.com 
2003 CedAr Software Ltd. All Rights Reserved. 
Cedar Software Ltd. Incorporation number 3214465
 ***********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Javscript

Posted by Joe Germuska <Jo...@Germuska.com>.
At 12:29 PM +0000 2/12/04, Darren Massel wrote:
>Using struts 1.1 on Tomcat 4.1.29
>I want to use the Javascript validation i.e.  <html:javascript/> but it goes
>straight to the struts validation
>Also all the javascript is written to the screen, unless in script tags -
>which after reading the javadoc should not be needed.

In general, if you see a bunch of JavaScript in your page, you have 
probably put the wrong form name in your html:javascript tag.

In the nightly builds, this will cause a JspException to be thrown, 
but in the 1.1 release, the tags inability to find the Form in the 
validator config caused it to suppress the wrapping <script> tags, 
but not to suppress the JavaScript.

Joe

-- 
Joe Germuska            
Joe@Germuska.com  
http://blog.germuska.com    
       "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
             -- Jef Raskin

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org