Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

simplicity of getParameter

 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Being in possession of an HTTP Request as a servlet programmer, it is a simple matter to retrieve any value from the request by tag name via getParameter (String arg) (available via extension of HttpServlet). What comparable packaged methods are available (apart from programming my own getXMLparameterValue (String arg) method ) which would allow me to obtain an XML value for a tag while avoiding the performance hit of parsing and/or validating the entire document.
 
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This link should give you a clearer picture of what options are available.
http://www.javaworld.com/javaworld/jw-05-2000/jw-0518-jdom.html
(thanks Anil for the link)
JDOM provides an API with get/set methods. (like all good java should)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!