java - How to configure the path of files inside a folder in Struts config file -
I created a folder named Customer
and I have put the following JSP files in. < Code> edit .jsp , editsuccess.jsp
.
My String Config
& Lt; / Action & gt;
This has the edit.jsp input page and the output page for the editsuccess.jsp
controller (the entire one) the auditrator
and the controller has a path edit
. Here I am JSP
& lt; Form action = "edit.do" method = "post" & gt; I am calling the servlet in front of the front.
When I submit the form it shows the following error
HTTP status 404 - Invalid path requested
I tried some possible ways to change but still I could not be able to fix it.
If you are using html form tags, then you should properly map the action.
& lt; Form action = "$ {pageContext.request.contextpath} /edit.do" method = "post" & gt;
or use html taglib
& lt;% @ taglib prefix = "html" uri = "http://struts.apache.org / Tags- Html "%" & Lt; Html: form action = "/ edit" method = "post" & gt;
Play the best online casino site | Lucky Club
ReplyDeleteLucky club is luckyclub the place to learn the ins and outs of online casino games, from the best games to the best bonuses and games. Join now.