Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9258457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:24:31+00:00 2026-06-18T12:24:31+00:00

I am trying to add Apache Tiles for CRUD application.Am getting Following Error HTTP

  • 0

I am trying to add Apache Tiles for CRUD application.Am getting Following Error

HTTP Status 500 - Could not resolve view with name 'addEmployee' in servlet with name 'HelloHibernate'

type Exception report

message Could not resolve view with name ‘addEmployee’ in servlet with name ‘HelloHibernate’

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Could not resolve view with name 'addEmployee' in servlet with name 'HelloHibernate'
    org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1042)
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

web.xml

 <?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
  <servlet>
    <servlet-name>HelloHibernate</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <init-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>/WEB-INF/HelloHibernate-servlet.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>HelloHibernate</servlet-name>
    <url-pattern>*.html</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
</web-app>

tiles.xml

 <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
  <tiles-definitions> 
  <definition name="base.definition" template="/WEB-INF/views/mainTemplate.jsp">
    <put-attribute name="title" value=""></put-attribute>
    <put-attribute name="header" value="/WEB-INF/views/header.jsp"></put-attribute>
    <put-attribute name="body" value=""></put-attribute>
    <put-attribute name="footer" value="/WEB-INF/views/footer.jsp"></put-attribute>
  </definition>

  <definition name="base.definition" template="addEmployee">
  <put-attribute name="title" value="Employee Data Form"></put-attribute>
  <put-attribute name="body" value="/WEB-INF/views/addEmployee.jsp"></put-attribute>
  </definition>

  <definition name="base.definition" template="employeesList">
  <put-attribute name="title" value="/WEB-INF/views/employeesList.jsp"></put-attribute>
  </definition>
  </tiles-definitions> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:24:32+00:00Added an answer on June 18, 2026 at 12:24 pm

    You have your Tiles declarations a bit muddled up. Heres how I would do it if I understand your intentions correctly.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
    <tiles-definitions> 
        <definition name="base.definition" template="/WEB-INF/views/mainTemplate.jsp">
            <put-attribute name="title" value=""></put-attribute>
            <put-attribute name="header" value="/WEB-INF/views/header.jsp"></put-attribute>
            <put-attribute name="body" value=""></put-attribute>
            <put-attribute name="footer" value="/WEB-INF/views/footer.jsp"></put-attribute>
        </definition>
    
        <definition name="addEmployee" extends="base.definition">
            <put-attribute name="title" value="Employee Data Form"></put-attribute>
            <put-attribute name="body" value="/WEB-INF/views/addEmployee.jsp"></put-attribute>
        </definition>
    
        <definition name="employeesList" extends="base.definition">
            <put-attribute name="title" value="/WEB-INF/views/employeesList.jsp"></put-attribute>
        </definition>
    </tiles-definitions> 
    

    In the last 2 definitions I changed the template attributes to be nameattributes and changed the existing name attributes to be extends attributes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to add a referer to an http post in Apache HttpClient (httpclient-4.0-beta2).
When trying to access the addprod.jsp page, the following error occurs: org.apache.jasper.JasperException: An exception
I'm trying to add Apache server to Eclipse(Juno). I have installed Apache server 7.0,
I've had no issues with tiles 3.0.1 up until trying to add list attributes
I'm using the following things for my project: Spring 3.0.1 + Apache Tiles 2.2.1
I'm trying to add some of the JARs from Apache Axis 1.4 into the
I'm trying to add pages written with Tapestry5 to a web application written with
I'm trying to use embedded ActiveMQ broker for unit testing, as explained here: http://activemq.apache.org/how-to-unit-test-jms-code.html
I'm trying to add support for the GD extension on my Ubuntu, Apache 2,
I am trying to add error reporting to my php installation by adding the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.