To fully reflect the easy-to-use interaction functions of the software on the UI, standalone jquery and Struts2-jquery-plugin are used for verification (available regular expressions) and auto-completion. Auto-completion is performed in real time from the database.
Independent functions are implemented. Because they are not completed on a jquery library, they cannot be implemented simultaneously after they are put together. As a result, the plug-in function cannot be run.
Later, when thinking about this problem, I felt that it would be difficult to solve it.
First, the jquery library must be unique. I now have two libraries. In fact, only one library is enough. It is best to directly use the libraries in plugin.
However, the Library is imported using the tag library.
<% @ Taglib prefix = "S" uri = "/Struts-tags" %> <% @ taglib prefix = "SJ" uri = "/Struts-jquery-tags" %>
To achieve an excellent verification function, I want to import the library as follows:
<SCRIPT src = "/JS/validation/jquery-1.6.min.js" type = "text/JavaScript"> </SCRIPT> <SCRIPT src = "/JS/validation/jquery. validationengine. JS "type =" text/JavaScript "> </SCRIPT> <SCRIPT src ="/JS/validation/jquery. validationEngine-zh_TW.js "type =" text/JavaScript "> </SCRIPT> <script language =" JavaScript "> $ (document ). ready (function () {$ ("# create_workorder_form "). validationengine ({promptposition: "centerleft", scroll: false })});
Therefore, the merge of the two will become very complex!