Struts Actions forwarding to Template JSPs

[email protected]
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <OF959004DC.E95136DB-ONC1257035.002E1F6B-C1257035.002FC3D1@commaro.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.