• 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

parsing Xml files using servlets  RSS feed

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello...

i have a list of user names and passwords in an xml file.... i was wondering if thers an api available to allow me to read those values from the xml file so that ill be able to validate users in my web app.

thanks
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java has the JAXP API for parsing XML; a quick search for that will find plenty of articles and sample code. In the long run you may want to use a more standard way of authenticating users that integrates with servlet security. For example, Tomcat has the concept of a Realm for that.
 
ismail cachalia
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the quick response.... the "Realm Concept" is exactly what i needed
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!