Questions tagged [tiles2]

Apache Tiles™ is a Java templating framework built to simplify the development of web application user interfaces.

Apache Tiles™ is a Java templating framework built to simplify the development of web application user interfaces. Tiles uses the composition pattern as opposed to the decorator pattern, which the name "tiles" suggests. Tiles templates are made up of "definitions" which are typically defined with XML, however definitions can be constructed with the Tiles API.

Tiles has the following notable features:

  • Support for FreeMarker, Velocity and JSP.
  • Support for pattern matching using regular expressions.
  • EL, OGNL and MVEL support in definition files, when specifying attributes and templates.
  • Offers some support for decoration and runtime composition

For a current list of features see: http://tiles.apache.org/framework/whats-new.html

200 questions
0
votes
1 answer

how can i exclude from DispatchServlet mapping a folder (resources folder)

My web.xml is: http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> TestStruts2 dispatcher
Iosif M.
  • 83
  • 1
  • 6
0
votes
1 answer

I18n - multiple templates per locale or multiple locale files

I'm working on redesigning a large consumer facing retail website. Think something like gap.com The technology stack is Apache tiles, Apache velocity, Spring MVC. Question: To implement I18N right, should I just create multiple velocity templates…
Sam
  • 163
  • 1
  • 1
  • 5
0
votes
2 answers

How can I tell if a certain view (tile) has been defined in a Controller?

Spring 3.0.5 + Tiles Inside my controller I'm creating a new ModelAndView but a situation has come up where one company wants their own view. Once this happens I can see this growing where other's want their own as well. …
kasdega
  • 18,396
  • 12
  • 45
  • 89
0
votes
2 answers

Struts2, How to define @Result type parameter as tiles result

i am having trouble defining 'type' parameter of @Result annotation here is my action annotation: @Action(value="login", results=@Result(name="success",location="index.page", type="tiles" )) where index.page is my tiles definition, how do i…
sv13
  • 176
  • 3
  • 13
0
votes
1 answer

Struts Tiles, how to handle this situation correctly?

i just started to learn struts(+spring) MVC, and I could use some explanation of this situation : i am using Struts Tiles for my presentation layer and i want to display some data from database in few tiles that with main content tile will form…
0
votes
1 answer

mvc:view-controller causes PageNotFound in Spring Tiles2

I have a webapp based on Spring 3.0.6 which works fine on Tomcat 7.0. The web.xml defines the dispatcher as following: dispatcher
Ciaccia
  • 382
  • 3
  • 14
0
votes
1 answer

Spring MVC 3 and Apache Tiles 2, but no controller

I am trying to get Spring MVC 3 and Apache Tiles 2 to play nice together. I can get simple pages to display and those pages have been built with Tiles templates, but for the life of me I cannot get my controller to be called. I would appreciate any…
Nik
  • 7,113
  • 13
  • 51
  • 80
0
votes
1 answer

Tiles 2 Access Variable in Template

I am using the Spring MVC framework with Apache Tiles 2. I want to be able to have multiple controllers all use the same view (different logic, some basic presentation). I can do that easily. What I want now is to have different Tiles definitions…
Nik
  • 7,113
  • 13
  • 51
  • 80
0
votes
2 answers

accessing form data in one jsp from another jsp

I am using Struts 2 and Tiles to develop an application. I have 2 JSP files being loaded into 2 separate cells of a table (Tiles concept). The first JSP has links (created using tag). Clicking on these links should: (a) retrieve the…
0
votes
1 answer

How to add beans list in tiles definition tag while migrating from Tiles2 to Tiles 3

We have application in Tiles2 where we have tiles definition tag having bean in the put-list-attribute and works well, but not able to migrate those for Tiles 3 compatible one. Can anyone guide us, sample code ...
Vikram
  • 1
0
votes
2 answers

Tiles, Struts 2, chained actions, and passing through put-attribute values

I'm writing a search engine to explore multiple search algorithms. The web portion floats on Struts 2.1.6 and Tiles 2.2.2. It's currently a complete mess, so below I've factored out a simplified version to focus on the exact problem I'm having. The…
krivard
  • 652
  • 6
  • 17
0
votes
1 answer

Spring MVC & Tiles integration

Firstly I know that Spring MVC has good integration with Tiles. But my problem is as below: I have configured my web.xml as Spring Dispatcher Servlet Dispatcher
praveenkjvs
  • 931
  • 1
  • 6
  • 8
0
votes
1 answer

Apache Tiles 2 + Spring MVC 3 using multiple sets of view definitions

This is a complex question, so please bear with me through the long explanation. Current scenario We are using Spring MVC 3.0.5 with Apache Tiles 2.2. Currently our Spring-based tiles configuration looks like this:
Axel Knauf
  • 1,683
  • 1
  • 13
  • 18
0
votes
1 answer

In Struts 2.5.14 I am not able to add new action, only action I can add is hello in every package of struts.xml

Below is the content of struts.xml, I am using tiles also, adding action with name other than hello is not working. using tomcat 7.0.88, and java 8 ..\view\contracts is not working ..\home\hello is working ..\view\hello is…
Jitendra
  • 70
  • 5
0
votes
2 answers

Tiles 2, mapping of JSP

I use Tiles 2 with Spring 3.05. I want to map jsp files to controller, e.g. dispatcher *.html *.jsp