Robin Robin - 1 year ago 114
HTML Question

HTML Form action tag. Calling a parent relative URL

I am trying to setup a HTML form (Actually

in the context of a Spring-MVC Application).

Assuming I am at the URL:

and I want to call an action to

What should the Action look like?

I expected this to work:

<form:form method="post" action="../post">

But this doesn't work.

Answer Source

Relative path to post in the parent directory: ... action="../post"

Relative path to post in the root directory: ... action="/post"

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download