Hi,
Here is the src layout file that I am using:
<link src="$ui.getStylecss()" />
<table width="100%">
<tr>
<td colspan="2">
$renderer.render("navigations", $data, "/bugrat/DefaultTop.vm")
</td>
</tr>
<tr>
<td align="center" valign="top">
$renderer.render("screens", $data, $template)
</td>
</tr>
</table>
Attached is the translated code. I've tested my Tomcat instance with a jsp
page <%=request.getContextPath()%> and it returns /admin (which is correct).
Thoughts?
JK
Daniel Rall wrote:
> Jason Kary <[EMAIL PROTECTED]> writes:
>
> > Hello!
> >
> > Thank you for the quick response. Ok You right. That is fixed. Now I was
> > trying to solve a bigger problem, hence I was trying to get the template to
> > print out the ContextPath.
> >
> > $ui.getStylecss() seems to be returning the absolute path to the style
> > sheet? Are you seeing this bug?
>
> Could you provide an example? I'm not sure what the expected behavior
> is, but at a cursory glance it appears that it's operating as
> advirtised...
>
> /**
> * Retrieve the URL for the style sheet that is part
> * of a skin. The style is stored in the
> * WEBAPP/resources/ui/skins/<SKIN> directory with the
> * filename skin.css
> */
> public String getStylecss()
> {
> StringBuffer sb = new StringBuffer();
>
> sb.append(Turbine.getServerScheme()).
> append("://").
> append(Turbine.getServerName()).
> append(":").
> append(Turbine.getServerPort()).
> append(Turbine.getApplicationRoot()).
> append("/").
> append(resourcesDirectory).
> append(SKINS_DIRECTORY).
> append("/").
> append(getSkin()).
> append("/").
> append(SKIN_CSS_FILE);
>
> return sb.toString();
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]