Questions tagged [tiles-3]

This tag is for use with Apache Tiles version 3 and greater. Apache Tiles is a compositional template system.

New features in Tiles 3.0

  • Apache Request: a framework independent request abstraction. Implementations for Servlet, Portlet, JSP, Velocity, FreeMarker and Mustache.

  • Apache Autotag: a tool that automatically generates tags (or tag-like) artifact from a common template code for a range of templating languages. All the Tiles 3 boilerplate code to templating models has been removed and uses the Autotag plugins instead: it's a lot of boilerplate, boring code, now generated automatically.

Removals in Tiles 3.0

  • Upgraded from JavaSE 5.0 to JavaSE 6.0.
  • Upgraded from Servlet 2.4 and JSP 2.0 to Servlet 2.5 and JSP 2.1.
  • Changed the Java API to adopt the Request API. The XML files and taglibs are compatible with tiles 2.2.
  • Dropped the parameter based configuration that was deprecated in 2.2.

Resource

97 questions
2
votes
1 answer

NoSuchMethodError org.apache.commons.collections.ExtendedProperties.getList(Ljava/lang/String;)Ljava/util/List in Struts 2

I want to use Tiles 3 with Strut 2 so I'm using struts2-tiles3-plugin. I've defined the listener in web.xml and the result-type in struts.xml. When I deploy the war Tomcat returns a java.lang.NoSuchMethodError. This is my web.xml:
danielevigi
  • 370
  • 6
  • 14
2
votes
1 answer

Apache Tiles: Manage CSS and JS resources

I am having problems to figure this thing out. I want to insert certain CSS and JS files only on certain pages where I need it. So I have done something like this in my tiles definitions file:
Rade Milovic
  • 965
  • 4
  • 13
  • 29
2
votes
1 answer

Spring 3 MVC + Tiles 3 - nothing displayed

I'm new to Tiles and trying to get Tiles3 working with Spring MVC 3.2.4. I thought I had everything setup/configured correctly, but I am not getting anything displayed at all. I've tried to enable DEBUG logging for org.apache.tiles, but nothing is…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
2
votes
1 answer

Tiles 3 and Spring 3 integration throwing exception

I am trying to integrate Spring 3 and Tiles 3, I am viewing the page fine and application is working fine but its giving me following error. javax.servlet.ServletException: File "/WEB-INF/template/WEB-INF/template/layout.jsp" not…
varun
  • 684
  • 1
  • 11
  • 30
2
votes
1 answer

Spring MVC and Tiles Definition Path

When i was going through tiles integration with spring, first i kept my tiles-definition in classpath to make the project more cleaner which resulted as the following exception: SEVERE: Servlet.service() for servlet [superlite] in context with path…
Mani Rai
  • 665
  • 2
  • 9
  • 22
1
vote
2 answers

Spring Boot with apache tiles causing error org.apache.jasper.JasperException: Unable to compile class for JSP

I am using spring boot 2.1.13 and spring mvc with apache tiles config. This is actually a spring mvc web application project that I am converting to spring boot. I am facing below error during JSP rendering. This is a weird error as I am using JDK…
Debadatta
  • 689
  • 1
  • 8
  • 23
1
vote
0 answers

Strust2 tiles definition issue with "controllerClass" attribute

I am just rewriting an old project in a newer one and while copying tiles-definition files I was getting an issue on "controllerClass" attribute which is pointing towards a java class which is the controller class for a particular jsp This is the…
CSG0811
  • 632
  • 5
  • 20
1
vote
2 answers

Migration Struts 1 to Struts 2 + Tiles 3 getting UI issues

I am working on Struts 1 to 2 migration application. I have successfully migrated JSP, Action, POJO and XML too. But when I integrated Tiles 3 in my Struts 2 application, suddenly it is showing some bigger font size on web page, compared to Struts 1…
Aniket
  • 2,204
  • 5
  • 34
  • 51
1
vote
1 answer

javax.servlet.ServletException: Could not resolve view with name 'contacts/show' in servlet with name 'dispatcher

I am working with Spring MVC. I create two identity projects, with identity name, with tiles. One of them work ok, but other throw exception javax.servlet.ServletException: Could not resolve view with name 'contacts/show' in servlet with name…
alex safsafsd
  • 162
  • 11
1
vote
1 answer

Struts 2.5.8 and Tiles 3.0.7: Unable to load the resources like img, css and js inside the JSP pages

I recently upgraded my application to Struts 2.5.8 and Tiles 3.0.7. I also have upgraded to Spring v4.3.4, but its not integrated with tiles. I am able to start my application properly without any errors until now. I see all the struts.xml and…
Vikd
  • 121
  • 1
  • 8
1
vote
1 answer

Spring Boot - Why is MyFilter called many times in a single request when using Tiles+JSP?

Given this filter: public class MyFilter implements Filter{ @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { …
codependent
  • 23,193
  • 31
  • 166
  • 308
1
vote
1 answer

java.lang.NullPointerException at org.apache.tiles.access.TilesAccess.getContainer(TilesAccess.java:124)

I do have all jars of spring 4.1.7 and tiles 3.0.5 version jars, Please find below error . SCHWERWIEGEND: Servlet.service() for servlet [mccstore] in context with path [] threw exception [Request processing failed; nested exception is…
1
vote
1 answer

just assign its value after refreshing the page

I have following variable to be used as a public variable in the application. As you can see it has the main domain of the website as its value. The issue is, once the application is loaded it does not have any value, I need to refresh the page for…
Daniel Newtown
  • 2,873
  • 8
  • 30
  • 64
1
vote
1 answer

How to add breadcrumb to Spring MVC?

How can I add breadcrumb to all pages of Spring MVC? I suppose it would be a good question to ask as breadcrumbs are quite popular now and it might be the question of many others. I've found this solution that is using…
Jack
  • 6,430
  • 27
  • 80
  • 151
1
vote
1 answer

Nested Tiles with Wildcard Support

Tile configuration :
Dharmesh
  • 132
  • 1
  • 12