read xml file from jsp/servlet
843835Apr 24 2003 — edited Apr 30 2003Hi all,
I am a new comer to jsp and really appreciate if someone can help me on this:
I will like to use a xml file to control access to my web app instead of using a database. Let say user.xml that will contains user name and password. Questions:
1. where should I put this file? Under WEB-INF?
2. In my jsp or servlet, how do i read the xml file, i mean how to i refer to the file (depend on question 1 as where the file should be placed)?
Thank you very much.
Sim