wood burning stoves 2.0*
The moose likes Servlets and the fly likes how to create XML element tag using JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to create XML element tag using JSP? " Watch "how to create XML element tag using JSP? " New topic
Author

how to create XML element tag using JSP?

fan mo
Ranch Hand

Joined: Mar 14, 2000
Posts: 36
I want to create XML file using JSP
To create the element dynamically, I want to put JSP expression in a "< >" tag.
such as:
<<%= request.getParameter("name") %>>
But this will give me a error in creating the XML file, it is not allowed when the JSP contentType is "text/XML".
anyone know how to do with it? thanks.
[This message has been edited by fan mo (edited July 19, 2001).]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

Can you get hold of a copy of the June 2001 issue of "Java Report"? It has an example.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to create XML element tag using JSP?