Allen Savio
Allen Savio

Reputation: 151

Form Post Action Error in Eclipse

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

The form action is posted below.

<form id="form_register" 
      name="form_register" 
      method="post" 
      action="Register_worker.jsp">

Upvotes: 0

Views: 538

Answers (1)

Diogo Moreira
Diogo Moreira

Reputation: 1082

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

Upvotes: 2

Related Questions