Solved
how to get the dispatcher url in pages
Please let me know as how can I get the dispatcher URL in the code and use the same in author and Publish instance.
In the Author instance showing the port number in the view source is fine.
But in Publish instance it must just display only the dispacther URL should not show the exact URL and port numb er
I have a dispatcher url as:-
In my code jsp I have added
so when I add the code for images in the src I am adding SRC as src="<%= hostname %>/etc/designs/dsm/img/bottom- border.gif" as mentioned below
<img src="<%= hostname %>/etc/designs/dsm/img/bottom- border.gif" width="640" height="33" />
So this add the actual cq server instead we want just the Dispatcher URL how could I achieve it