
Originally Posted by
java_1234
Hi,
I'm new to Spring and I'm having issues setting relative paths for the action attributes in my JSP files.
This is how my JSP file looks like
<form:form name="recordListForm" id="recordListForm" method="post" commandName="documents" action="/warfilename/enrolment/listEmployees">
warfilename is the name of the war file that is generated and deployed on server.
and this how my Controller looks like
@RequestMapping(value = "/enrolment/listEmployees", method = RequestMethod.POST)
But the name of the war file can be changed once I deliver it to the client and if they change it, it would not work. How can I fix this issue by setting the relative path.
Thanks,