0

I have two jsp files login.jsp which has a login form

<form method ="post" action="LoginServlet">
..........
</form>

The second file is pages/errors.jsp which include login.jsp

<jsp:include file="../login.jsp" />

When login.jsp runs it calls LovinServlet correctly but when errors.jsp runs, the included login.jsp can't call LoginServlet.

How to solve? Thanks

jmt
  • 223
  • 1
  • 8
  • 28
  • 1
    login.jsp does not call LovinServlet. It prints a form so that the user can submit the form to LovinServlet by clicking a submit button. But it probably has to do with the .., meaning your login.jsp and errors.jsp are in different folders, right? And so the path of the servlet is different relative to them. – developerwjk Mar 19 '14 at 19:48
  • thank @developerwjk ,I change it to relative path and its work – jmt Mar 20 '14 at 00:46

0 Answers0