Link to home
Start Free TrialLog in
Avatar of roy_sanu
roy_sanuFlag for India

asked on

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 reasonUser generated imagetype 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.
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of roy_sanu

ASKER

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>
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

Any way you are right, thanks