1

I include file from my root directory. Its working fine in local but when I host my site its give me:

error HTTP Status 500: "../connection.jsp" not found

My files are in

public_html/myfolder/connection.jsp

on shared hosting.

I want to include file in

public_html/myfolder/process/user-login.jsp

Roman C
  • 49,761
  • 33
  • 66
  • 176
snehal
  • 15
  • 3

1 Answers1

0

If public_html is a root folder of your web application, then you can use absolute path to the included resource.

<jsp:include page="${pageContext.request.contextPath}/myfolder/connection.jsp"/>
Roman C
  • 49,761
  • 33
  • 66
  • 176