tiles

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

梦想的初衷 提交于 2019-12-06 11:23:28
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" template="/WEB-INF/jsp/layout.jsp"> <put-attribute name="title" value="" /> <put-attribute name="header"

Spring+Spring security+tiles. How to set form-login with tiles page definition?

╄→гoц情女王★ 提交于 2019-12-06 08:52:33
问题 I have spring_tiles web application and now trying to add spring security to it: That is a peace of my TilesConfig.xml: <definition name="loginPage" extends="commonPage"> <put-attribute name="body" value="/WEB-INF/tiles/jsp/login_body.jsp" /> </definition> Here comes my spring mapping part: <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="interceptors"> <list> <ref bean="openSessionInViewInterceptor" /> </list> </property>

Write tiled output of TIFF, using ImageIO in Java

假装没事ソ 提交于 2019-12-06 08:29:50
问题 What I have is a a large number of frames that need to be placed together in a larger image (like a mosaic). The required positions of the images are known. There are a very large number of images so loading them all into memory is impractical at best. Based on some other answers here I was able to override the methods in RenderedImage (specifically getData(rect) ) to load in the appropriate data and return it. This works just fine, however the image writer is always calling getData and

Struts2 tiles org.apache.tiles.extras.complete.CompleteAutoloadTilesListener integration error

ⅰ亾dé卋堺 提交于 2019-12-06 06:49:49
问题 I am following answer posted here. OGNL and wildcards working in tiles definitions with struts2-tiles-plugin? If you know the answer, would apprecite if you tell me how to use freemarker with it. If don't even than I accept the answer if you solve my problem to make the code work. Everything is same but Struts2 & Tiles plugin - 2.3.4.1 pom.xml 1.6 UTF-8 3.1.2.RELEASE 2.3.4.1 1.6.6 2.2.2 <!-- Start Extras --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10<

Tiles Integration with Struts 2 Annotation

北城以北 提交于 2019-12-06 06:18:12
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() { This is what my code is but it always gives me error in MyEclipse at TilesResult.class that Type

ServletException in '/left.do': java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp

。_饼干妹妹 提交于 2019-12-06 06:17:41
After integrating ESAPI into a login form I am getting a rendering issue and an error after a successful login. The error generated in the browser states: javax.servlet.ServletException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: ServletException in '/left.do': java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp And the server's debug log states the following: SEVERE: Servlet.service() for servlet [ActionServlet] in context with path [/FIXED] threw exception [javax.servlet.ServletException: org.apache.jasper

Cannot render vector tiles (.mbtiles) file with leaflet

送分小仙女□ 提交于 2019-12-06 04:55:20
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 to do just that but always stumble upon an empty page when trying it out... I have the controllers for

Pure HTML + JavaScript client side templating

醉酒当歌 提交于 2019-12-05 20:33:16
问题 I want to have achieve something similar to Java Tiles framework using only client side technologies (no server side includes). I would like to have one page, eg layout.html which will contain layout definition. Content placeholder in that page would be empty #content div tag. I would like to have different content injected on that page based on url. Something like layout.html?content=main or layout.html?content=edit will display page with content replaced with main.html or edit.html. The

Render multiple views within a single request

泄露秘密 提交于 2019-12-05 10:00:22
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> model2 = new Hashtable<String,Object>(); model2.put(...); ModelAndView modelAndView2 = new

C# ListView Tile Width 100%?

烂漫一生 提交于 2019-12-05 05:53:55
问题 i have a ListView set to Tileview. The ListView width is 300 and so is the tile width. This works fine when the number of tiles does not overflow resulting in a scrollbar. When it does overflow however, when the vertical scrollbar appears, a horizontal scrollbar also appears because the vertical scrollbar lowers the listview width for the tiles. Is there a way i can have the tiles autoresize to fill the listview? See example image: What currently happens: What i want to happen: I tried