Skip to main content

Posts

Showing posts from January, 2011

Using struts2-jquery for Ajax

Now struts2 is providing support for the most popular client side javascript JQuery using plugin ( struts2-jquery-plugin-2.5.1.jar ). you can implement ajax based funcationalities into your application without any effort and without writing any other javascript. strut2 was using dojo based support for ajax in pervious version but now they have implemented JQuery based ajax features. you need to download struts2-jquery-plugin-2.5.1.jar and set it in your application's classpath. To support the JQuery based fucntionality, you need to include extra jsp taglib into you jsp page. Following is the simple exambple using JQuery plugin in JSP page. Index.jsp <%@   taglib   prefix = "s"   uri = "/struts-tags"   %> <%@   taglib   prefix = "sj"   uri = "/struts-jquery-tags" %> < html >   < head >      < sj:head   jqueryui = "true"   jquerytheme = "redmond"   / >    </ head >    <