jQuery in Action, 3rd edition
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 17149
    
  27

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


An IDE is no substitute for an Intelligent Developer.
 
 
subject: how to create XML element tag using JSP?
 
It's not a secret anymore!