apache-tiles

AngularJS with Apache Tiles

妖精的绣舞 提交于 2019-12-09 13:42:24
问题 I use Spring MVC and AngularJS for my project. Can AngularJs $routing and ngView be used instead of or together with the Apache Tiles framework? As far as I can see using $routing and ngView we create templates and reuse them in a singlePage application. 回答1: Yes, AngularJs' routing can be use instead of tiles. Also you can use together, but after it may broke singlepage app idea. In tiles you probably use jsp files. So jsp files compiling in server-side , and serving as html file in client

Global exception page in Apache Tiles and Spring MVC

情到浓时终转凉″ 提交于 2019-12-07 13:37:00
问题 When an unhandled exception is throws (e.g. a RuntimeException ), then I want to show a common error page. I want to achieve a few things: reuse a HTML template (use a common "frame" with header etc.) and place exception info in the body provide some basic info about the exception in the body document I am using Apache Tiles and Spring MVC. What is a good approach to my problem? Part of my tiles-definitions: <tiles-definitions> <definition name="common" template="/WEB-INF/jsp/common.jsp">

Global exception page in Apache Tiles and Spring MVC

人走茶凉 提交于 2019-12-06 00:41:20
When an unhandled exception is throws (e.g. a RuntimeException ), then I want to show a common error page. I want to achieve a few things: reuse a HTML template (use a common "frame" with header etc.) and place exception info in the body provide some basic info about the exception in the body document I am using Apache Tiles and Spring MVC. What is a good approach to my problem? Part of my tiles-definitions: <tiles-definitions> <definition name="common" template="/WEB-INF/jsp/common.jsp"> <put-attribute name="header" value="header"/> <put-attribute name="footer" value="/WEB-INF/jsp/footer.jsp"

tiles with spring : getting error - java.lang.ClassNotFoundException: org.apache.tiles.TilesApplicationContext

南笙酒味 提交于 2019-12-04 00:59:18
问题 I am new to spring and trying to use tiles with Spring. but getting above error. i am using maven in my project. i tried changing versions also, but no use. following are contents of project: pom.xml <!-- Apache Tiles --> <dependency> <groupId>org.apache.tiles</groupId> <artifactId>tiles-core</artifactId> <version>3.0.5</version> </dependency> <dependency> <groupId>org.apache.tiles</groupId> <artifactId>tiles-jsp</artifactId> <version>3.0.5</version> </dependency> <dependency> <groupId>org

AngularJS with Apache Tiles

允我心安 提交于 2019-12-03 21:16:51
I use Spring MVC and AngularJS for my project. Can AngularJs $routing and ngView be used instead of or together with the Apache Tiles framework? As far as I can see using $routing and ngView we create templates and reuse them in a singlePage application. Yes, AngularJs' routing can be use instead of tiles. Also you can use together, but after it may broke singlepage app idea. In tiles you probably use jsp files. So jsp files compiling in server-side , and serving as html file in client side via browser. In angular also you can create base layout. And like tiles' layout extend ability , with ng

How to remove a tile in apache tiles for a specific view?

[亡魂溺海] 提交于 2019-12-03 07:28:41
I want to know how to remove a tile from a view. My main view is looking like this The tile config is made up out of 4 pieces: header, menu, body and footer. Now I know if I request a new page I can override the main view to for example replace the body so that I have different content displayed there. But I want to be able if I click on link in the menu that will take me to a page that only has a header and body (no menu or footer). The user will then complete a wizard where they can go from one page to another and then once they are done it should go back to the main layout again. And this

tiles with spring : getting error - java.lang.ClassNotFoundException: org.apache.tiles.TilesApplicationContext

早过忘川 提交于 2019-12-01 04:08:58
I am new to spring and trying to use tiles with Spring. but getting above error. i am using maven in my project. i tried changing versions also, but no use. following are contents of project: pom.xml <!-- Apache Tiles --> <dependency> <groupId>org.apache.tiles</groupId> <artifactId>tiles-core</artifactId> <version>3.0.5</version> </dependency> <dependency> <groupId>org.apache.tiles</groupId> <artifactId>tiles-jsp</artifactId> <version>3.0.5</version> </dependency> <dependency> <groupId>org.apache.tiles</groupId> <artifactId>tiles-api</artifactId> <version>3.0.5</version> </dependency>

Tiles 3 not Rendering List attributes

点点圈 提交于 2019-11-30 23:14:29
I've had no issues with tiles 3.0.1 up until trying to add list attributes to the definitions. There is no error and the definitions render correctly with the exception that the list attributes do not seem to be present on the JSPs. I'm loading tiles with CompleteAutoloadListener, here is web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <listener> <listener-class>org.apache

Tiles 3 not Rendering List attributes

你。 提交于 2019-11-30 19:34:21
问题 I've had no issues with tiles 3.0.1 up until trying to add list attributes to the definitions. There is no error and the definitions render correctly with the exception that the list attributes do not seem to be present on the JSPs. I'm loading tiles with CompleteAutoloadListener, here is web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com

Better alternative to Apache Tiles

梦想的初衷 提交于 2019-11-29 09:13:34
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 column is constant, so only the content column is different. For this simple example I don't want to