Re: url in a tag

Joe Walnes <[email protected]> Mon, 18 Apr 2005 13:09:37 +0100
Newsgroups gmane.comp.web.sitemesh.general
Message-ID <[email protected]>
There's a restriction in the JSP spec that says if you use <%= %>
expressions in the attribute of a JSP tag, it has to span the entire
attribute.

So this is invalid: <some:tag parameter="<%= prefix %>/value"/>

But it can be replaced by: <some:tag parameter="<%= prefix + "/value" %>"/>

Thanks
-Joe

On 4/18/05, vatoz <[email protected]> wrote:
> Hi there people, I was wondering if someone could help me solve a littel problem I'm having
> 
> I don't know if it's my fault or if sitemesh isn't able to do what i want.
> 
> Here it is
> I'm trying to decorate the page that is in
>            http://localhost/roller/page/menu/menu
> 
> so this is one of the things that i've tried:
>    <page:applyDecorator name="menu" page="/roller/page/menu/menu" />
> 
> I've also tried this:
>   <page:applyDecorator name="menu"
> page="<%=request.getScheme()%><%=request.getServerName()%>/roller/page/menu/menu" />
> 
> I've even tried this:
>   <page:applyDecorator name="menu" page="a/../../roller/page/menu/menu" />
> 
> But none of these methods seem to work, I get this
> 
> org.apache.jasper.JasperException: /decorators/index.jsp(12,72) the atribute for %>" is not ended correctly
> 
> I know is not a life or death matter, but it will make the site easier to run, instead of writing something like:
>    page="http://mydomain/roller/page/menu/menu"
> 
> If someone could help me I'll be very gratefull
> 
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.opensymphony.com/thread.jspa?threadID=1652&messageID=5059#5059
> 
> ---------------------------------------------------------------------
> 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]