my dog learned polymorphism*
The moose likes Struts and the fly likes Ajax and staticJavascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Ajax and staticJavascript" Watch "Ajax and staticJavascript" New topic
Author

Ajax and staticJavascript

auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 105
In .jsp files, where there is an AJAX code, sometimes this below specified code is added. is there any reason for that? or what is the purpose of this staticJavascript being true?


<html:javascript formName="multiplePopupForm" staticJavascript="true"/>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60773
    
  65

As that's a Struts tag, I've moved this to the appropriate forum for discussion.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
That code is used for Struts client-side validation. See this link for more info: http://struts.apache.org/1.1/userGuide/struts-html.html#javascript

- Brent
 
Don't get me started about those stupid light bulbs.
 
subject: Ajax and staticJavascript
 
Similar Threads
Struts:: referring indexId of logic:iterate from javascript call
Validator Problems
Problem with Validator Framework
<html:javascript formName="xyz"/>
Form 'null' not found for locale en_US