sridhar sivaraman wrote:when using your url pattern in the <form> tag, just omit the /
so, that your code will be,
<form action="demo" .........>
try and post your output
No. No. No. No.
No. That's very bad advice.
Always start the action URL with the context path. Otherwise it's page-relative and fragile and will easily break with the smallest change in the web application.
Follow best practices. They exists because they've been proven to work.