I am opening a dialog in Touch UI and able to enter a link to another site. See. The page responds correctly too. How are you adding the link in your instance?
See this artilce for AEM - it uses WCMUsePojo -- Creating an Adobe Experience Manager 6.4 HTL component that uses the WCMUsePojo API That will show you how to hook into Java class from HTL.
Just tested Arun;s response - this compiles -- Just tested this - it compiles and works to query We Retail pages using QueryBuilder. Map<String, String> map = new HashMap<String, String>(); //set QueryBuilder search criteria map.p...