• Post Reply Bookmark Topic Watch Topic
  • New Topic

Resource not found 404 error

 
Ayub ali khan
Ranch Hand
Posts: 395
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting JSPG0036E: Failed to find resource /.IncludeTest/page1.jsp error when I am trying to clude page1.jsp in my portlet.

Below is the code:


<f:view>
<jsp:include page='<%=renderResponse.encodeURL(renderRequest.getContextPath() + "/page1.jsp")%>'/>

</f:view>

page1.jsp is present in WebContent folder. However its not being detected.
.IncludeTest is the context root of the project.

Could any one point whats the issue ?

--Ayub
 
Ayub ali khan
Ranch Hand
Posts: 395
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
normal jsp include resolved the issue.

<jsp:include page="include.jsp" />

Thank you.

Ayub
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!