Re: JDOM and JSP

Geoff Rimmer <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
If you're using JSP >= 2.0 (for example Tomcat >= 5.0), you can avoid  
that old <%= notation.

Instead, you can write:

<xf:submission action="URL?file=${request.file}"/>

and this is now a valid piece of XML.

See http://jcp.org/aboutJava/communityprocess/final/jsr152/index.html  
for details of the JSP 2.0 spec.

Geoff

On 8 Jan 2009, at 17:56, Jabba Laci wrote:

> Hi,
>
> With JDOM I produce XHTML files that are also JSP files. I would like
> to do the following:
>
> <xf:submission action="URL?file=<%= request.getParameter("file")  
> %>" />
>
> JSP should process the line to produce this:
>
> <xf:submission action="URL?file=data.xml" />
>
> Here, "xf:submission" is a JDOM Element object. My concern is that
> JDOM transforms "<" to "&lt;". Do you have an idea how to solve it?
>
> Thanks,
>
> Laszlo
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/ 
> [email protected]

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
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.