Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

resource not found

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
roy_sanu
Asked:
roy_sanu
  • 2
  • 2
1 Solution
 
girionisCommented:
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
 
roy_sanuAuthor Commented:
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
 
girionisCommented:
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
 
roy_sanuAuthor Commented:
Any way you are right, thanks
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now