Spring Webflow and JQuery
I am now working in a Spring project using the Spring webflow. The JavaScript library I would like to use JQuery. How to integrate JQuery project in Spring and Spring webflow? Thanks in advanc开发者_如何学Pythone
If I understand your question correctly, it is simply a matter of copying the JQuery lib into your war directory. That will make the file accessible from your Website (i.e. you are going to server it from your Java app server). You can then refer to it from your Web pages.
Probably, the quickest way to start using it is to provide a link to the Google repository for jQuery in a script tag in the jsp or HTML page you want to use it.
E.g.:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
I used the following tutorial to get started :
http://krams915.blogspot.com/2011/01/spring-mvc-3-and-jquery-integration.html
精彩评论