Skip to main content

[webtier] jsp:element and namespaces

2 replies [Last post]
Anonymous

Hi all,

In a JSPX file you can use jsp:element to "create" new elements using
tags in the attribute values. E.g.

This works fine but now I want to do the same with form:form (Spring
MVC's form tag). The jsp:element tag nicely generates the form:form
tag but it's not being processed.

A simpler example is with c:url:

/bla/bla/bla

generates

/context/bla/bla/bla

So the jsp:element generated c:url is not processed.

I tried various different incantations with and without xmlns, xmlns:c
( or ) but
nothing seems to work. Google didn't provide any answers and the
JavaServer Pages spec was no help either.

How can I use jsp:element to generate a tag in a namespace *and* have
it processed?

Cheers,
Hilco

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kchung
Offline
Joined: 2004-05-06
Points: 0

You can only use jsp:element to output template elements, and not standard actions or tag handlers, so I don't think there is anyway to achieve what you want here.

The only way I can think of is to dynamically create those elements in another jspx file and dynamically include it in the page.

OTOH, jsp:attribute works in a tag handlers, so can you do


/bla/bla/bla

?

Hilco Wijbenga

On 19 April 2010 13:43, wrote:
> OTOH, jsp:attribute works in a tag handlers, so can you do
>
>
>  /bla/bla/bla
>

Ooooh! :-) Very nice, I didn't realise that was possible. Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net