<div dir="ltr">Hi, <div><br></div><div>In my case, I'm using a JSP page and a Java class. <br><br></div><div>In the JSP Page : </div><div><div><%</div><div> GetAllModulesAction allModulesAction = new GetAllModulesAction(pageContext, request, response);</div>
<div> allModulesAction.serve();</div><div>%></div></div><div><br></div><div>In my class GetAllModulesAction which extends CmsJspActionElement : </div><div>this.getCmsObject().getSitePath(myResource);<br></div><div>
<br>
</div><div><br></div><div>If you want to do it in you JSP or a class which does not extends CmsJspActionElement: </div><div><div><%</div><div> CmsJspActionElement jsp = new CmsJspActionElement(pageContext, request, response);</div>
<div> CmsObject cms = jsp.getCmsObject();</div><div> cms.getSitePath(myResource)</div><div>%></div></div><div><br></div><div>I hope it will help you. </div><div>Have a nice day. </div><div><br></div><div>Regards, </div>
<div>Matthias</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/13 Peter Schmiedt <span dir="ltr"><<a href="mailto:peter.schmiedt@nelasoft.cz" target="_blank">peter.schmiedt@nelasoft.cz</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everybody,<br>
<br>
I'm using AjaxSolr library (from the Flower-en demo). I'm having trouble generating "nice" links. I only get links like: "/.content/foo/foobar_00109.<u></u>html", which as you can tell, can't be displayed.<br>
Normally when using Solr without AJAX, I used the <cms:link> tag in the JSP to generate "nice" links. But since I use AJAX to get these links, I can't use <cms:link> tag becouse it's rendered in javascript.<br>
<br>
The links in the demo site are working properly so there must be a way to do this.<br>
<br>
Can someone pinpoint me where(or how) exactly are the links generated? I took and modified the demo javascript file to my needs and probably that's the reason why it's not working.<br>
<br>
Regards<span class="HOEnZb"><font color="#888888"><br>
<br>
Peter Schmiedt<br>
______________________________<u></u>_________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-<u></u>bin/mailman/listinfo/opencms-<u></u>dev</a><br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>