Hi ,
I'm pretty new to CQ5 and trying to handle HTTP post request with my component . My directory structure is
/apps/training/components/page/trainingpage/trainingpage.jsp
/apps/training/components/page/trainingpage/trainingpage.POST.jsp
In my trainingpage.jsp ,
i have following
<form action="<%currentNode.getPath();%>.html" method="POST" enctype="multipart/form-data">
<inputtype="text"name="name"/><br/>
<inputtype="text"name="address"/><br/>
<input type="submit" id="submit" value="Submit" title="submit" />
</form>
</html>
When ever i submit this form , i receive status 200 message with following and the properties gets appended at the root 'content ' and not at 'content\trainingsite'
Status | 200 |
Message | OK |
Location | /content |
Parent Location | / |
Path | /content |
Referer | http://localhost:4502/content/Trainingsite.html |
ChangeLog | <pre>modified("/content/name");<br/></pre> |
My assumtion is that the action url to my custom jsp is not being resolved and the default post servelt might be getting called which is updating the properties at the root content in the repository . I have even tried this case with updating my custom jsp file name from trainingpage.POST.jsp to POST.jsp but it's still the same .
The node path and resource path are returning as expected Node path : /content/Trainingsite/jcr:content
Resource path : /content/Trainingsite/jcr:content
Any pointers for any missing links ? Thanks for your help .
cheers