| toc | |||||||||
| <mm:url>
Returns an URL with parameters from the context. Parameters can be specified in three ways:
This tag also takes care of the `application' context if you start the page attribute with `/'. This makes your applications better portable. It also does an URLEncode, which can be necessary if the browsers does not support cookies and your page needs the session. You don't need it for URLs outside your application server application. It is very advisable to use it otherwise. By use of the servlet context init parameter mmbase.taglib.url.makerelative (value `true'), you can change the behaviour of all url-tags, to make them generate url's relative to the current page. |
|||||||||
| see also | param | image | link | url | ||||||||
| attributes |
|
||||||||
| writer attributes | |||||||||
| contextwriter attributes | |||||||||
| contextreferrer attributes | |||||||||
| cloudreferrer attributes | |||||||||
| example 1 |
<mm:url referids="a?,name@b,c" page="codesamples/index.jsp">
<mm:param name="page" value="home" />
</mm:url>
generates e.g. : codesamples/index.jsp?page=home&b=jan&c=5
|
||||||||