What is the differnece between Struts2 and Struts2 jQuery tags?

余生长醉 提交于 2019-12-30 11:02:49

问题


I am new to Struts2. I wanted to know the difference between Struts2 and Struts2 jQuery tags?


回答1:


The first one is used for Struts2 core tag library,

The framework provides a tag library decoupled from the view technology. In this section, we describe each tag in general terms, such as the attributes it supports, what the behaviors are, and so forth. Most tags are supported in all template languages (see JSP Tags, Velocity Tags, and FreeMarker Tags), but some are currently only specific to one language. Whenever a tag doesn't have complete support for every language, it is noted on the tag's reference page.

The types of tags can be broken in to two types: generic and UI. Besides function and responsibility, the biggest difference between the two is that the HTML tags support templates and themes. In addition to the general tag reference, we also provide examples for using these generic tags in each of the support languages.

the second is added via plugin. It adds/replaces the Ajax being used by struts2 dojo plugin.

Dojo plugin is deprecated

The Dojo plugin will be deprecated on Struts 2.1

Struts 2.0 versus Struts 2.1 and the Dojo tags

The easiest way to get documentation for Struts 2.0 Dojo tag usage is to look at older Struts 2 documentation, like the Struts 2.0.11 Ajax tags wiki documentation.

Now this plugin is deprecated and struts2 jquery plugin could be used instead.

A Plugin for the popular java web framework struts2 to provide ajax functionality and UI Widgets based on the jQuery javascript framework.



来源:https://stackoverflow.com/questions/35801288/what-is-the-differnece-between-struts2-and-struts2-jquery-tags

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!