apache-tiles

Spring-Boot + Spring-MVC + Thymeleaf + Apache Tiles

帅比萌擦擦* 提交于 2019-11-28 11:38:29
I have an already existing client module with apache tiles and thymeleaf, what works well. I wanted to convert it to spring-boot and wanted to do it step by step, but I am really stucking with it. I dont want to change to much once, I would love it when someone can tell me, what step I should do first and bring it to run. I already tried to write the servlets in javaConfig, but I am stucking then too. Maybe someone can help me please. If more information is needed, please dont hesitate to ask. Other question would be, do I need to change from xml to javaconfig? I would prefer the most easy way

Spring MVC 3 Return Content-Type: text/plain

左心房为你撑大大i 提交于 2019-11-28 07:32:15
I want to display simple text on a page and as such I want to return the Content-Type as text/plain . Using the code below, I see plain text on the page, however the return Content-Type is still text/html . How can I fix this? NOTE: I'm using Tiles with Spring MVC. The returned "m.health" points to a tiles def that maps to a health.jsp which only contains the 1 line below. UPDATE NOTE : I have no control over the Content-Type or Accept values in the HTTP Header request. I want my response to return text/plain no matter what kind of request comes in. Controller: @RequestMapping(value = "/m

Better alternative to Apache Tiles

梦想的初衷 提交于 2019-11-28 02:37:46
问题 I'm looking for a framework that is better and easier to use than Apache Tiles (which so far, I have used a couple of times). With Tiles, it seems that when I have 100 actions I need to creates 100 jsp files and create 100 definitions in tiles.xml . Is there a better framework to manage my templates? I want to create, for example, 2 templates: a) menu and column for content b) menu, column for content, right column with banner In both templates the menu is constant. In template b , the right

Spring MVC 3 Return Content-Type: text/plain

时光怂恿深爱的人放手 提交于 2019-11-27 01:49:19
问题 I want to display simple text on a page and as such I want to return the Content-Type as text/plain . Using the code below, I see plain text on the page, however the return Content-Type is still text/html . How can I fix this? NOTE: I'm using Tiles with Spring MVC. The returned "m.health" points to a tiles def that maps to a health.jsp which only contains the 1 line below. UPDATE NOTE : I have no control over the Content-Type or Accept values in the HTTP Header request. I want my response to