how about creating url ?
i got error when putting this code on my page :
<script language="JavaScript">
document.location = '${asset:context:login}';
</script>
i just want to forward another page...
On Jan 7, 2008 2:13 PM, Hugo Palma <[EMAIL PROTECTED]> wrote:
> There sure is:
>
> ${asset:context:images/x.gif}
>
> Mohammad Shamsi wrote:
> > hi all,
> >
> > i want to use context path in my page template.
> > now i do like this :
> >
> > @Inject
> > Request request;
> >
> > public String getContext() {
> > return request.getContextPath();
> > }
> >
> > in .tml :
> >
> > <img src="${context}/images/x.gif" />
> >
> >
> > any better way ? (for example a symbol or ...)
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
sincerely yours
M. H. Shamsi