The most ccommon exception when using Tiles in a Struts application is theJasper Exception. For example look into the exception below.

javax.servlet.ServletException: Can't get definitions factory from context

This exception can occur if the Tiles Servlet entries are wrong. We can easily solve the exception by modifying the Tiles servlet with the correct entries.

Example:

<servlet>

<servlet-name>TilesServlet</servlet-name>

<servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>

<init-param>

<param-name>definitions-config</param-name>

<param-value>/WEB-INF/tiles-defs.xml</param-value>

</init-param>

<init-param>

<param-name>definitions-parser-validate</param-name>

<param-value>true</param-value>

</init-param>

<load-on-startup>2</load-on-startup>

</servlet>


Like it on Facebook, Tweet it or share this article on other bookmarking websites.

Comments (0)

There are no comments posted here yet

Should the BCCI appoint Warne as Team India's new coach?

Should the BCCI appoint Warne as Team India's new coach?
No answer selected. Please try again.
Please select either existing option or enter your own, however not both.
Please select minimum 0 answer(s) and maximum 2 answer(s).
/polls/sports-and-games/5978-should-the-bcci-appoint-warne-as-team-indias-new-coach.json?task=poll.vote
5978
radio
[{"id":"20593","title":"Yes","votes":"46","type":"x","order":"0","pct":57.5,"resources":[]},{"id":"20594","title":"Np","votes":"34","type":"x","order":"0","pct":42.5,"resources":[]}] ["#ff5b00","#4ac0f2","#b80028","#eef66c","#60bb22","#b96a9a","#62c2cc"] ["rgba(255,91,0,0.7)","rgba(74,192,242,0.7)","rgba(184,0,40,0.7)","rgba(238,246,108,0.7)","rgba(96,187,34,0.7)","rgba(185,106,154,0.7)","rgba(98,194,204,0.7)"] 350
bottom 200
No married couple wants to end up getting divorced. It is not like they have planned for it. They try to put up with their partners for as long as they
Due to our modern lifestyle, we feel that digestion related disorders are a common problem. Thus, we neither give importance to them nor seek any help
The bond of marriage brings the two people together. Initially, everything may seem okay and both of them slowly start discovering each other in the journey.
Why to choose Java? In the computer market, being able to use Java is a crucial knowledge. Java is a development terminology used to build compelling
DATABASE CONNECTIVITY This articles explains the need of database connectivity, the way it is achieved through Java using the JDBC(java database connectivity)
  Write your first simple java program.   First of all we need is a placewhere we can write your Java code. All Java programs are written using
Array of objects in Java Arrays are defined as block of continous memory locations which are arranged in one after another. Elements of the Array can
Synchronized block is alternative mechanism for "synchronized" methods.If we inherihate the non synchronized blocks either from base class or interface