WebWork 2 : URL tag
This page last changed on Dec 14, 2004 by plightbo.
The URL tag builds an encoded URL. If you do not include a value, then the tag will point to the current page.
In this example, the form action value will be an url hiturl.action that is encoded. <form action="<ww:url value="'hiturl.action'"/>" method="POST"> ... </form> In this example, we are adding name/value pairs to the URL. The URL tag will build up the URL appropriately. You can also place them in the normal way with "?"; i.e., - 'hiturl.action?user=john'. <form action="<ww:url value="'hiturl.action'"> <ww:param name="'user'" value="'john'"/> </ww:url>" method="POST"> ... </form> By default, port 80 is assumed to be the "http" port and port 443 is assumed to be the "https" port. However, some servers, such as Tomcat, use different default ports, such as 8080 and 8443. You can change these values by setting the configuration elements in webwork.properties:
|
![]() |
Document generated by Confluence on Dec 14, 2004 16:36 |