Hi!
In our current Jahia based portal implementation, we have some features
which we want/need/must implement via struts action links. e.g. a link
that opens a popup containing a v-card of a portal user. Currently we do
like this ...
In struts-config.xml we have
<action path = "/vcard"
type = "com.commaro.jvp.vcard.struts.VcardAction"
scope = "request"
validate = "false">
</action>
In the Struts Action Class we simply forward to input
public ActionForward execute(....)
{
return new ActionForward(
"/jsp/jahia/templates/SITE_NAME/TEMPLATE_FOLDER_NAME/vcard_popup.jsp");
}
The problem arises, when we introduce more than one site on our portal.
Each site should have the v-Cards but maybe with diferent look&feel.
So my question:
Is there a way to determine the template folder path for the site of the
current request dynamically? because now it is hardcoded
kind regards
Wilhelm Berger