Simple application using Dispatch Action with tiles Framework?
>> Tuesday, June 24, 2014
DISPATCH ACTION WITH TILES FRAMEWORK:
In previous DispatchAction example we observed the resultant page is displaying in new page.Now we are doing to display the result within the page using Tiles concept in struts.
For Tiles concept design a layout to display Calculate.jsp and result.jsp.Override the result.jsp page with the add.jsp,sub.jsp,mul.jsp,div.jsp pages by defining the definintions in tiles-defs.xml.
Here you have to understand the integration of DispatchAction and Tiles.Normally we forward the pages using forwarding depends on string returned.
Have a look on Tiles Dispatch.
The flow of our application is given below from dispatchaction to tiles framework.
In previous DispatchAction example we observed the resultant page is displaying in new page.Now we are doing to display the result within the page using Tiles concept in struts.
For Tiles concept design a layout to display Calculate.jsp and result.jsp.Override the result.jsp page with the add.jsp,sub.jsp,mul.jsp,div.jsp pages by defining the definintions in tiles-defs.xml.
Here you have to understand the integration of DispatchAction and Tiles.Normally we forward the pages using forwarding depends on string returned.
Have a look on Tiles Dispatch.
The flow of our application is given below from dispatchaction to tiles framework.
0 comments:
Post a Comment