tiles

Java: Could not resolve view with name in Spring MVC

*爱你&永不变心* 提交于 2019-12-10 18:24:05
问题 I am facing this error while I am clicking on a link to display a page. I'm using Spring MVC Tiles. Error: javax.servlet.ServletException: Could not resolve view with name 'contact' in servlet with name 'dispatcher' Below is the code. tiles.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN" "http://tiles.apache.org/dtds/tiles-config_2_0.dtd"> <tiles-definitions> <definition name="base.definition"

How do you reference attribute list from Apache Tiles template

我怕爱的太早我们不能终老 提交于 2019-12-10 11:46:54
问题 I am trying to define an attribute list in the base template that includes all css links and sub definitions would append additional css links as needed. I defined the list in the tiles definition configuration file and attempted to use the list in the template.jsp file, but i get the following error: org.apache.tiles.template.NoSuchAttributeException: Error importing attributes. Attribute 'links' is null Tiles definition file: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE tiles

Cannot render vector tiles (.mbtiles) file with leaflet

狂风中的少年 提交于 2019-12-10 10:16:16
问题 I am trying to render some locally-stored and vector-based tiles download from OpenMapTile. The reason I am doing that is because my end application will only run on a computer that cannot be connected to the internet. I have read many different things on whether or not leaflet can render vector-based tiles but it seems that it can from some examples. It seems that it is not possible with Vector Grid that only does raster tiles but that it is possible with Leaflet.TileLayer.MBTiles So I tried

Can anyone point me to Spring MVC, Tiles, Freemarker integration example?

别来无恙 提交于 2019-12-09 23:12:57
问题 In my Spring MVC based applications i use Freemarker and i like it very much, but it's lacking advantages provided by Composite View pattern. I'm thinking of trying to use Tiles2 together with Freemarker - does anyone know where do i find a simple example of SpringMVC together with Tiles2+Freemarker? 回答1: nevermind, i've solved it. i just had to specify freemarker templates in tiles definitions file <definition name="template" template="/WEB-INF/ftl/main.ftl"> and add freemarker servlet

Shiro doesn't redirect to unauthorizedUrl w/invalid login - Shiro with Spring and Tiles

懵懂的女人 提交于 2019-12-09 22:34:56
问题 I'm using Spring MVC, Tiles and Shiro. This is how my unauthorizedUrl property is configured: <property name="unauthorizedUrl" value="/unauthorized"/> My expectation is that when MyAuthorizingRealm finds invalid credentials, that Shiro will redirect to /unauthorized . But, that doesn't happen for me on form submission. I have a login @Controller that is mapped to handle GET and POST actions for /login . For accesses to the url /lists the login form is displayed. So it seems to work in one

Tile (scalable) stacking algorithm

放肆的年华 提交于 2019-12-09 17:09:46
问题 Here is the problem. I have rectangular canvas that have size of 1. So it have coordinate sistem of (0.0 ... 1.0 - x and 0.0 ... 1.0 - y). I also have some tiles. Tiles are also rectangles. They have diffrent size and amount of tiles is a variable. I want to stack tiles in rectangular canvas, from 0.0 to 1.0 ( from left to right, from top to bottom ): 1) tiles have to fit in canvas (but fill as much space as they could) 2) tiles have to be scaled (if they don't fit), each tile should be

Osmdroid: How I can create and load a map from my own bitmaps(tiles)?

我与影子孤独终老i 提交于 2019-12-09 12:06:38
问题 I am starting to use Osmdroid and I would like to use this technology for showing a map about an F1 circuit. I have a big picture and I can cut it up to divide it into smaller tiles. Can I modify the osmdroid library for the upload of these pictures? I would like to save these bitmaps (tiles) in my assets folder. I am pretty lost on how to do this. I am using this way because android, normally, gives a memory error when I try show this complete full-size picture. If I only show some tiles of

Spring 3 MVC and Apache Tiles 2 Integration Error

血红的双手。 提交于 2019-12-09 00:34:04
问题 I have been trying to integrate Spring (3.0.4 and 3.0.5) MVC with Apache Tiles (2.1.2,2.1.4 and 2.2.2) to no avail. In every case i get the following error: java.lang.NoClassDefFoundError: org/apache/tiles/startup/BasicTilesInitializer According to the Tiles documentation, BasicTilesInitializer has been deprecated. I figured the latest version of Spring's TilesConfigurer would reference the correct class, but it doesnt and I still get the same error. I'm using the following configuration to

dispalay tag table pass value to requestURI

假如想象 提交于 2019-12-08 12:06:12
问题 How do I set value to requestURI by action class in Struts2 or another form. I need to change value of requestURI according to tile. 回答1: Option 1: Pass value from action (Better way) In yourAction.java private String myActionName; public String execute() { myActionName="action1.action"; return SUCCESS; } public void setMyActionName(String myActionName) { this.myActionName = myActionName; } public String getMyActionName() { return myActionName; } In jsp file <display:table id="u" name=

Isometric screen to map issue

无人久伴 提交于 2019-12-08 09:14:33
问题 I know that about isometric map a lot of advice but I've read most of them and didn't solve my problem. I rewrite code for C# for more simplicity (this code will be used on Android platform) I need to get screen cords to isometric coords. Here we go I used 1:2 tiles for me 64x32, I build diamond map using this code private void drawIsoGrid(PaintEventArgs e) { for(int y=0;y<20;y++) for(int x=0;x<20;x++) { float rx = (x - y) * (surface.Width) / 2 - globX; float ry = (x + y) * (surface.Height) /