hi
i need to create tabs in JSP page. One way is to include the tabs in the JSP page itself. But i want to use an XML file as a source file for doing the same.
This will help in eliminating hard coding plus giving the advantage of easy modification.
Are there any APIs that allow me to use XML for creating tabs?
Thanks & Regards,
Mehul C Mandge
Dream is not what you see in sleep, Dream is what does'nt let you sleep.
-A P J Abdul Kalam( Ex- India President)
There are many ways of reading XML. The easiest way is using DOM; JDOM can help you, but also the standard API:
Alternatively, you can use SAX or StAX for parsing and handling the events. You can even use XMLStreamReader or XMLEventReader, but if you want the easy way, DOM is the way to go.