0

I have 2 jsps .. The first one is the register jsp i.e(Register.jsp) which resides in (main folder of Webcontent) and the other jsp i.e(Register_worker.jsp which is in worker folder of WebContent) is supposed to act as the servlet or worker jsp. When i click the submit button it shows an error

HTTP Status 404 - /learn-ui/jsp/main/Register_worker.jsp

  • type:Status report
  • message:/learn-ui/jsp/main/Register_worker.jsp
  • description:The requested resource is not available.

The form action is posted below.

<form id="form_register" 
      name="form_register" 
      method="post" 
      action="Register_worker.jsp">
Konstantin Yovkov
  • 62,134
  • 8
  • 100
  • 147
Allen Savio
  • 151
  • 2
  • 16

1 Answers1

2

The path of Register.jsp isn't the same as Register_worker.jsp. So you'll need to change the path. This will work fine:

<form id="form_register" name="form_register" method="post" action="../worker/Register_worker.jsp">
Diogo Moreira
  • 1,082
  • 2
  • 9
  • 24