tiles

Tiles 3 how to reference another definition in put-attribute

橙三吉。 提交于 2019-12-12 04:33:27
问题 I'd like to be able to define a base definition, where I can inherit a list of styles and scripts. then define a page definition that inherits base definition, and adds page specific styles and scripts. Is this possible -or am I not thinking about this in the right way? I would have thought this to be a fairly basic idea. base definitions <tiles-definitions> <!-- base styles --> <definition name="base.styles" > <put-list-attribute name="styles" cascade="true" > <add-attribute value="/view

Apache Tiles - How to get HTTPServlet Request object in execute method of ViewPreparer

限于喜欢 提交于 2019-12-12 03:03:10
问题 Am using Spring MVC with tiles configuration and loading the Menus using ViewPreparer to load the menus into the application. I want HTTPServlet request object in the execute method of ViewPreparer for getting globalid set in HTTP Headers. Please suggest how to get request object ... Thanks in advance :) 回答1: Here you go. public class MenuPreparer implements ViewPreparer { public void execute(TilesRequestContext tilesContext, AttributeContext attributeContext) throws PreparerException {

Server goes into infinite loop while implementing Tiles with Velocity

爱⌒轻易说出口 提交于 2019-12-12 02:53:58
问题 EDIT: I am trying to integrate Tiles with Velocity using spring MVC. My server is going into infinite loop. The console reading of server is: I have marked the start of the loop as "-->". --> at org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeTag.java:311) at org.apache.jsp.WEB_002dINF.views.layout_jsp._jspx_meth_tiles_005finsertAttribute_005f0(layout_jsp.java:102) at org.apache.jsp.WEB_002dINF.views.layout_jsp._jspService(layout_jsp.java:69) at org.apache.jasper.runtime

Spring 3 mvc and tiles - populate *.jsp page with some data before

大城市里の小女人 提交于 2019-12-12 01:32:45
问题 I'm using Spring 3 mvc and Apache Tiles 3.0. I don't know how to insert some data in *jsp page which I will later use for insert in template tiles *.jsp page. Tiles defiontions file looks like this: <tiles-definitions> <definition name="base.definition" template="/WEB-INF/views/layout.jsp"> <put-attribute name="title" value="" /> <put-attribute name="banner" value="/WEB-INF/views/banner.jsp" /> <put-attribute name="path" value="" /> <put-attribute name="menu" value="/WEB-INF/views/menu.jsp" /

Animating Tiles In My Game

谁说胖子不能爱 提交于 2019-12-11 17:57:11
问题 I am making a Pokemon Style 2D java game using no libraries, just pure java, and I am working on and having issues getting a water tile to animate. I want the tile to update every half a second or so. I will post my main class, abstract tile class, water class, and screen class so that maybe you can figure out a way to so me how to animate tiles in my game. P.S: Right now I am trying to animate a water tile. And all the sprites are for testing and will be changed later. Code at DropBox:

Map tiles in Leaflet

随声附和 提交于 2019-12-11 12:47:37
问题 I want to create georeferenced map tiles from raster (jpg map of small area) and display in Leaflet. MapTiler seems to be a prefect solution for my problem, but free version doesn't allow set zoom range, aslo has a watermark. Is there any free/opensource solution with same funcionality? Im woking on non-profit project, so dont have any budget. 回答1: See https://stackoverflow.com/a/13641838/4768502 for a pointer to gdal2tiles . You can also use other software such as GeoServer, MapServer or

apache tiles - how to override an attribute from child template

旧城冷巷雨未停 提交于 2019-12-11 11:42:50
问题 The question is how can I override an attribute in tiles child template. I've got two templates: base and child. This is a part of base layout - HTML head: <title> <tiles:insertAttribute name="title" /> lyricsBase: <c:out value="${jukebox.name}" /> </title> This is my tiles.xml: <definition name="t.base" template="/WEB-INF/tiles/base.jsp"> <put-attribute name="title" value="SomeTitle"/> </definition> [...] <definition name="t.song" extends="t.base"> <put-attribute name="body" value="/WEB-INF

error with Struts2 & Tiles3.0.0 when navigate from index

我怕爱的太早我们不能终老 提交于 2019-12-11 07:56:42
问题 Tried my best but no success. Index action is loaded fine but when I navigate to test than error is generated . Not sure why this is happening. Using struts2 = 2.3.4.1 Tomcat latest Tiles = 3.0.0 Pom.xml <properties> <java.version>1.7</java.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <struts2.version>2.3.4.1</struts2.version> <slf4j.version>1.6.6</slf4j.version> <tiles.version>3.0.0</tiles.version> </properties> <dependencies> <dependency> <groupId>javax<

Dynamic tile display optimalization in OpenGL

余生长醉 提交于 2019-12-11 07:51:39
问题 I am working on a tile based, top-down 2D game with dinamically generated terrain, and started (re)writing the graphics engine in OpenGL. The game is written in Java using LWJGL, and I'd prefer it to stay relatively platform-independent, and playable on older computers too. Currently I'm using immediate mode for drawing, but obviously this is too slow for anything but the simplest scenes. There are two basic types of objects that are drawn: Tiles, which is the world, and Sprites, which is

org.apache.struts2.tiles.StrutsTilesListener occasionally not found when starting Tomcat in Eclipse

谁说胖子不能爱 提交于 2019-12-11 06:47:15
问题 I'm using Tomcat inside Eclipse. This problem happens to me whenever I open Eclipse for the first time every day (or close it and re-open it anytime). I have to clean it or re-add the server to make the Tomcat server working. I'm wondering if anyone was having the same problem. Any help would be appreciated. The following is the exception, but the StrutsTilesListener class is out there and I'm pretty sure about it: Feb 9, 2012 3:51:40 PM org.apache.catalina.core.StandardContext listenerStart