tiles

Stuts2 Tiles Tomcat suspected of changing UTF-8 to ?????

I'm having some internationalisation woes: My UTF-8 string fields are being rendered in the browser as ???? after being returned from the database. After retrieval from the database using Hibernate, the String fields are presented correctly on inspection using the eclipse debugger. However Struts2/Tiles is rendering these strings as ?...

Does Tiles for Struts2 support UTF-8 encoded templates?

If so what are required configuration elements to enable UTF-8 for tiles? I'm finding my tile results are sent as: Content-Type text/html; ...

Your experience with "modular" web sites in Java?

I'm building small web site in Java (Spring MVC with JSP views) and am trying to find best solution for making and including few reusable modules (like "latest news" "upcoming events"...). So the question is: Portlets, tiles or some other technology? ...

How to get real request URL in struts with tiles?

When you use tiles in struts and do request.getRequestURL() You get url to /WEB-INF/jsp/layout/newLayout.jsp instead of real URL that was entered/clicked by user, something like /context/action.do. In new struts versions, 1.3.x and after, you can use solution mentioned on javaranch and get real url using attribute ORIGINAL_URI_KEY at...

Dynamic breadcrumb generation - how to do?

I'm in the early phases of developing a brand spanking new site with Spring + Tiles. The site needs dynamically generated breadcrumbs. What I mean by dynamic is that the user may reach a certain site from multiple starting points. If I have views for Customers, Orders and Products, the user could reach a Product directly: Products -> P...

Template-Engine for Struts

Freemarker, Tiles oder Velocity? Which template engine is the best for a multi-user-system build with struts? ...

tiles in struts project - better than freemarker?

I want to use a template engine in a struts application and would like to know if using TILES can be recommended instead of FREEMARKER or VELOCITY. ...

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

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? ...

Spring + Tiles2 + Freemarker - integrate via Freemarker Servlet or via Spring's FreeMarkerViewResolver?

Hi all, i was strugling today trying to migrate from Freemarker to Tiles2 + Freemarker. My freemarker templates use macros that come from spring.ftl. If i provide a fremarker servlet in web.xml, my model is visible to freemarker, but specific spring variables (naturally) are not populated into the model as springs FreemarkerView is r...

Struts tiles - is each tile asynchronous ?

I had experience with struts, and briefly experimented with tiles. I know that within a layout each tile is a separate jsp page. Suppose I hit a button on each of four tiles, and each tile was (indirectly) calling a different web service. Would the tiles refresh asynchronously as results came in at different times? ...

How to set the body URL of a tile in Struts action class?

I am using struts 1.1 with tiles. I have tiles with definitions like <definition name="cnmp.body.index" extends="cnmp.mainLayout" > <put name="title" value="CNM Portal" /> <put name="bodytitle" value="Home" /> <put name="body" value="/00-CNM_Landing.jsp" /> </definition> I want to be able to set the value of the body parame...

Struts 2 + tiles + velocity interoperability?

Has anyone been able to get velocity + tiles working with struts 2? I am having some problem finding examples or tutorials online and from what I have gathered from mailing lists it seems it might not even be possible at all (but the mails were quite old). ...

Integrating Spring Webflow 2 and Apache Tiles

I've recently started upgrading some applications to use Spring Webflow 2, and I want to make use of the new Ajax functionality that comes with Webflow 2. Can somebody please direct me to a tutorial for integrating Tiles 2 with Spring Webflow (since that's apparently what they recommend). I've found the documentation that comes with We...

Implementing Rails' layout functionality with Apache Tiles

Has anybody tried duplicating Ruby on Rails' layout functionality with Apache Tiles 2 ? I'm trying to integrate Tiles 2 with Spring. I have a previously written custom view resolver for the Spring framework that does this quite nicely, but I'm upgrading to Spring Webflow 2 and I need to be able to integrate Tiles 2 ...

dynamic tree structure using struts tiles framework ?

I want to create a dynamic tree with menus and submenus fetching data from the database. I am using the struts tiles framework. Is there any tag or other ways to do it ? ...

Do I have to include libs in every tile within Apache Tiles?

I am using Tiles within my web-application. I have a standard-layout (standard.jsp) within the tiles are used. On top of the standard.jsp are a lot of includes, concerning tag-libraries and such. Let's do a simplified example. standard.jsp: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ inc...

Can anyone point me to a good article on "abstracting HTML"?

I'm currently working on a legacy eCommerce system front-end that has alot of duplicate HTML code. I'm trying to find a way to abstract out the complexity almost as you would when moving the similarities between similar classes into a shared abstract base-class. I.E. "Taking out what changes and abstracting it" I've used Java framew...

How to build a Tiled map in Java for a 2D game??

Not sure how to approach this problem. Basically, I want a Pixel -> Tile representation of a 400x400 window. Each coordinate on the screen, e.g 120x300 should be part of a tile. My smallest sprite is 4 pixels, so we can say that 1 tile = 4 pixels. The player and enemy sprites are all 20 x 20, so each player/bad guy will occupy 5 tiles. ...

struts-tiles

I have developed a simple struts application which retrieves and manipulates customer data from the database. Now I want to include an image at the top of all the pages. I know tiles is the best way to do it. Since I'm a newbie can anyone help me to include an image in my existing project using tiles. Thanks in advance ...

Tiles won't parse Struts tags

Hi, I'm tried using tiles but it seems that it's not parsing the Struts tags, It outputs them directly e.g. instead of ... What seems to be the problem? ...