Solved

resource not found

Posted on 2014-07-22
4
177 Views
Last Modified: 2014-07-27
I  have  set  in the code

sb.append("/jsp/tiles/showError.jsp");

Open in new window


, Here is the snapshot of the url path, what might be the reasonsnapshottype Status report

it shows me  the error, what might be the reason...



description The requested resource (/tiles/showError.jsp) is not available.
type Status report

message /tiles/showError.jsp

description The requested resource (/tiles/showError.jsp) is not available.
0
Comment
Question by:roy_sanu
  • 2
  • 2
4 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 250 total points
Comment Utility
You should move your JSP files outside the WEB-INF folder, directly under the root folder of your application. So if you application is called "myapplication" then WEB-INF and jsp should be on the same level, therefore you should have

myapplication
     jsp/tiles/showError.jsp
    ...
    WEB-INF/....
0
 

Author Comment

by:roy_sanu
Comment Utility
you are right, but we want to set through tiles as tiles folder has a header and footer, how to set the tiles. In the tiles we have something like this, but how i have to set the showerror.jsp inside it.  it will be appreciable
the tiles files has

<tiles-definitions>

      <definition name="base.definition" template="/WEB-INF/jsp/tiles/main.jsp">
            <put-attribute name="header" value="/WEB-INF/jsp/tiles/header.jsp" />
            <put-attribute name="menuBar" value="/WEB-INF/jsp/tiles/menuBar.jsp" />
            <put-attribute name="body" value="/WEB-INF/jsp/tiles/defaultContent.jsp" />
            <put-attribute name="footer" value="/WEB-INF/jsp/tiles/footer.jsp" />
      </definition>
0
 
LVL 35

Expert Comment

by:girionis
Comment Utility
I'd say you move all the tiles files outside WEB-INF and change the tiles definition to

<tiles-definitions>

      <definition name="base.definition" template="/jsp/tiles/main.jsp">
            <put-attribute name="header" value="/jsp/tiles/header.jsp" />
            <put-attribute name="menuBar" value="/jsp/tiles/menuBar.jsp" />
            <put-attribute name="body" value="/jsp/tiles/defaultContent.jsp" />
            <put-attribute name="footer" value="/jsp/tiles/footer.jsp" />
      </definition> 

Open in new window

0
 

Author Closing Comment

by:roy_sanu
Comment Utility
Any way you are right, thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
strCount chalenge 3 50
mapBully challenge 6 88
PDFBox - convert image to PDF, PDF resolution 3 61
@SBGen Method 3 25
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now