ofbizUrl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ofbizUrl

info@agentur-m3.de
Hi all,

here is a javascript-code from  my ajax-Test-component
(within a freemarker-file):

<script language="JavaScript" type="text/javascript">
  function getAjaxValues() {
       var requestUrl = '<@ofbizUrl>ajaxtest</@ofbizUrl>';
       alert("requestUrl:"+ requestUrl);
  }
</script>

The alert-message shows this:

requestUrl:http://localhost:8080/ajaxtest/control/ajaxtest;jsessionid=AAF4338719D51623AE7F2F99B468997D.jvm1

As a consequence of this an ajax call with this does find
the correct page (the corresponding request-map will not be called
with the jsessionid... appendix to the requestUrl).

Is there anything wrong with my @ofbizUrl - call?
I copied it from freemarker code in the accounting module.

Thank you for answers!

Ralf