Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax and staticJavascript

 
auvrm papu
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As that's a Struts tag, I've moved this to the appropriate forum for discussion.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic