tiles

Tiles Struts /EL Expressions

六眼飞鱼酱① 提交于 2019-12-08 07:33:10
问题 I’m using Struts 2.2.3 with Tiles 2.1.4. It works absolutely fine, but now I’m trying to use EL expressions, and I can’t get it to work. In Struts2 I can use <s:property value="${getText('Dashboard.label')}"/> and it retrieves the message from a bundle. I’d like to use the same on the Tiles Definition. So far I’ve added the context-param to the web.xml <context-param> <param-name>org.apache.tiles.evaluator.AttributeEvaluator</param-name> <param-value>org.apache.tiles.evaluator.el

spring 3 , tiles can not display image or use css style

妖精的绣舞 提交于 2019-12-08 02:21:49
问题 I have deleloped a simple spring 3 application following a tutorial. After that, I did integrated tiles 2. Right now I am trying to use css style in my tiles but i can not do this and i can not even display an image. Inside my tiles.xml I have: <?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"

Tiles Integration with Struts 2 Annotation

ε祈祈猫儿з 提交于 2019-12-08 00:55:35
问题 I have been trying to integrate Tiles with Struts 2 annotation based action but it's not working correctly. As I don't have struts-config.xml and in every tutorial available at web they are referencing it with struts-config.xml . First is it possible to integrate annotation based struts action with tiles. If yes then how? @Action(value="/login",results={@Result(name="success",location="/home",type=TilesResult.class), @Result(name="login",location="/jsp/userLogin.jsp")}) public String execute(

Tiled images in swing

我们两清 提交于 2019-12-07 10:50:01
问题 I have task to prepare two windows with swing. One contains grid of squares, with random numbers in them. In second I need to load pieces of tiled image and then show them in the correct order, forming tiled image. Windows should look like this : alt text http://img535.imageshack.us/img535/3129/lab8a.jpg Okay so how to bite this? I've used swing only few times to draw some 2d polylines, so basically I just theoretically now what to do. Ok, so window number 1: I start with creating Jframe for

How to appose WrapPanel items of different heights (vertically)?

时光毁灭记忆、已成空白 提交于 2019-12-07 08:34:28
问题 This is how it looks like right now: and this is how I'd like to have it: As shown the tiles should be apposed as densely as possible with only a set margin between them. And here's my code: <Grid Background="Gray"> <TextBox x:Name="BoardNameTextBox" HorizontalAlignment="Left" Height="23" Margin="40,3,0,0" TextWrapping="Wrap" Text="pol" VerticalAlignment="Top" Width="120"/> <Button Content="Button" HorizontalAlignment="Left" Margin="491,3,0,0" VerticalAlignment="Top" Width="75" Click="Button

Render multiple views within a single request

*爱你&永不变心* 提交于 2019-12-07 05:59:35
问题 I'm trying to return multiple views within a single request, returning them all in a JSON string. Example: @RequestMapping(value = "my-request") public void myRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { Map<String,Object> model1 = new Hashtable<String,Object>(); model1.put(...); ModelAndView modelAndView1 = new ModelAndView("path/to/view1", model1); // Render modelAndView1 in some way, in order to obtain the rendered HTML as a String Map<String,Object>

Spring + Tiles2 - put-attribute from model?

烂漫一生 提交于 2019-12-06 15:07:04
tl;dr - I want to set a put-attribute in my tiles definitions based on the individual model passed to a view in tiles I'm trying to create a page to display a user using spring and tiles. Right now my page gets the model fine, but I want the title of the page to include the username (which it would have to get from the model). I've included some excerpts from my code below: tiles.xml: <definition name="baseLayout" template="/WEB-INF/jsp/layout/layout.jsp"> <put-attribute name="title" value="FitterBlog" /> <put-attribute name="header" value="/WEB-INF/jsp/layout/header.jsp" /> <put-attribute

How do you reference attribute list from Apache Tiles template

我的梦境 提交于 2019-12-06 14:41:47
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-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN" "http://tiles.apache.org

Spring MVC 3 & Tiles 2: static resources are not displayed, even in non-tiles pages

旧巷老猫 提交于 2019-12-06 12:26:53
I'm trying to configure and integrate Tiles 2.2 to a webapp build with Spring MVC 3 and Spring Security 3 but I'm having some difficulties: Tiles definitions are not being displayed. No static resources (css, js) are being loaded either, even the ones that are called from pages that are not using Tiles. NOTE 1: when I click on the .css and .js links of the jsp files that don't use Tiles , I'm always redirected to the index page. NOTE 2: Before adding Tiles, everything worked just fine. web.xml <servlet-mapping> <servlet-name>myapp</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>

Show tile layer at very high zoom

人走茶凉 提交于 2019-12-06 12:25:12
问题 I am trying to display the daily MODIS satellite images from the GIBS image server http://wiki.earthdata.nasa.gov/display/GIBS/Map+Library+Usage. The tiles are provided in the WMTS protocol. Here is an example of my code using Google maps API: var getTileUrl = function(tile, zoom) { return "http://map1.vis.earthdata.nasa.gov/wmts-webmerc/" + "MODIS_Terra_CorrectedReflectance_TrueColor/default/" + get_date() + "/" + "GoogleMapsCompatible_Level9/" + zoom + "/" + tile.y + "/" + tile.x + ".jpeg";