Solved

resource not found

Posted on 2014-07-22
4
184 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 250 total points
ID: 40213699
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
ID: 40213776
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
ID: 40213843
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
ID: 40223524
Any way you are right, thanks
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses

635 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