FAQ Database Discussion Community


SDL Tile and Sprite Rendering Terrain

c++,opengl,sdl,collision,tiles
Hello recently i started to mess around with SDL. Since i was interested in some 2D/2.5D games.So i started messing around with SDL in C++, I was looking to recreate something similar to Original Zelda. So as far as i understand those game work with some kind of isometric prespective,...

Several JSP pages and requestURI

java,jsp,java-ee,servlets,tiles
I use Apache Tiles to unite multiple jsp pages.What I want is to get the URI of the request that came from web client (from browser). However, when in my jsp page I use ${pageContext.request.requestURI} I get not web client uri but the local path of the jsp file. For...

how to return two lists from controller class in spring mvc

java,hibernate,jsp,spring-mvc,tiles
I have two tables call maintab,subtab for generate menubar. maintab has maitabId ,main_tab_name subtab has: sub_tb_ID ,main_tb_id,subtab_name ,Url I want to get two list containig list1=maintabid & maintabname list2=subtabname,maintabID & url I want to return the two list using spring mvc. And retrieve in jsp page to populate a menu.Please...

Why Tiles 3.0.5 does not work on Spring web 4.1.5

spring-mvc,tiles,tiles-3
I configured my Spring based application (4.1.5) to use Tiles 3.0.5. In tiles.xml file I put a file that does not exist "ewfsdfsdf.jsp" to see if the configuration works, then I navigated to hello.htm but it shows hello.jsp rather than showing any error about not finding ewfsdfsdf.jsp file. web.xml <?xml...

Java: Could not resolve view with name in spring mvc

java,spring,spring-mvc,servlets,tiles
I am facing this error while i am clicking on a link to display a page. Am 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...

Extending Tiles with Wildcart Support

apache,tiles
Tiles configuration <definition name="defaultLayout" template="/{1}/{2}/common/{4}/layouts/layout.jsp"> <put-attribute name="header" value="header.jsp" /> <put-attribute name="body" value="" /> <put-attribute name="footer" value="/{1}/{2}/common/s/footer.jsp" /> </definition> <!-- Default Layout Defination over --> <definition name="*/*/*/*/*/index" extends="defaultLayout"> <put-attribute name="body" value="/{1}/{2}/common/s/index.jsp" /> Problem is my defaultLayout definition was not...

Struts tags-tiles cannot be resolved in either web.xml or the jar files

java,jsp,maven,struts2,tiles
I am using Struts2 in Eclipse IDE and JBoss5 server and maven for build. I was trying to use tiles in a simple login application. But I am not able to include the taglib. I have imported all the necessary jars dependencies in pom.xml file. Following is the list of...

unable to pass two lits to the jsp using apachi tiles

hibernate,jsp,spring-mvc,tiles
i am using spring mvc with Apache tile and hibernate.i pass tow lists to the jsp page.but it is print by but there's no any thing prints. my controller class as follows : if(userExists!=0){ model.addAttribute("Maintabs",new Maintab()); model.addAttribute("MaintabsList",loginService.listMaintabs()); model.addAttribute("Subtabs",new Subtab()); model.addAttribute("SubtabsList",loginService.listSubtab(userExists)); return "redirect:/Loginsucess"; }else{ model.addAttribute("error", "ERROR : invaliduser !,Please Try Again!");...

Android Google Maps Api Tileprovider reapeating x

java,android,api,google-maps,tiles
i want to build a map for my app with custom tiles here is the code of my tiles provider: TileProvider tileProvider = new UrlTileProvider(256, 256) { @Override public synchronized URL getTileUrl(int x, int y, int zoom) { Integer tileRange = 1 << zoom; if (x < 0 || x...

JSTL - Exists the remove-attribute for put-list-attribute?

java,jstl,tiles,apache-tiles
I have the following code for my main tile definition: <definition name="main" template="/WEB-INF/jsp/templates/main/template.jsp"> ... <put-list-attribute name="jsBase"> <add-attribute value="basics" /> <add-attribute value="jquery" /> </put-list-attribute> <put-list-attribute name="jsExtra"> <add-attribute value="boostrap" /> <add-attribute value="d3" /> <add-attribute value="gridster" /> <add-attribute value="custom" /> </put-list-attribute> </definition> This...

spring mvc and tile integration error

java,maven,spring-mvc,tiles
I got an error message when running the tile and spring MVC integrated project. I use spring 3.1.1 and tile 2.2.2.i appreciate your valuable answers error is as follows : java.lang.NoClassDefFoundError: org/apache/tiles/startup/BasicTilesInitializer at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2904) at...

Tile image animation on Windows Phone 8.1

animation,windows-phone-8.1,tiles
I am trying to implement live tiles in my Windows phone 8.1 application. I saw nice feature in default Photos application. When on tile displaying large picture, it starting to "float" inside tile. Can anyone tell me how to achive this effect? I have read all info in the internet,...

Tiles not working with spring

java,spring,servlets,tiles
I have added tiles in my project but it is not working as. I have added footer. But footer and header do not show in the output. I only get the output hello ........................... But I do not get the content of footer in the output. How can I make...

Spring MVC + Tiles + Spring Security = The requested resource is not available

java,spring,spring-mvc,spring-security,tiles
I have to say the equation in the title drives me crazy. As soon as I add the DelegatingFilterProxy to web.xml I get the 'Error 404 The requested resource is not available'. Otherwise the web app works fine. I am sure the problem with my configuration but I just cannot...

Spring Tiles Application:Error creating bean with name viewResolver defined in ServletContext resource

java,spring,spring-mvc,servlets,tiles
I am trying to create a simple tiles application using Spring MVC but i get the below error while i start my server which i am unable to figure out. Error org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'viewResolver' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Error setting property values; nested exception is...

org.apache.tiles.template.NoSuchAttributeException: Attribute 'header' not found

java,spring-mvc,tiles
i search every post on this question but didn't get an answer.please help me to solve this problem quickly. i used spring 3.1.1 and tile2.2.2.but running the project i got an error like follows : org.apache.tiles.template.NoSuchAttributeException: Attribute 'header' not found. at org.apache.tiles.template.DefaultAttributeResolver.computeAttribute(DefaultAttributeResolver.java:49) at org.apache.tiles.template.InsertAttributeModel.resolveAttribute(InsertAttributeModel.java:187) at...

windows 8.1 tile background and image is not set correctly

html,internet-explorer,windows-8.1,tiles,pinned-site
Have set up my website on github pages: w8tiles I use buildmypinnedsite to create all the markup and images. I open the site in ie11 on windows 8.1. Add the site to the applications and see an ie logo with some random background color(that is usually the same for all...