Java J2EE

Posted by : Nickelnext
Read Xml File from RPC Servlet
Hello everyone,



i got this problem and it seems that noone on the web ever had it, or

at least no one has spoken about it.



That's my problem: I have a Rpc service called LoginService that

validates people on a certain webPage.



Until now, i had only one user (me) and my username and password were

hard-coded into the rpc servlet.



Now i must provide a xml file containing every Administrator.



I created a xml file like this:

<admins>

<admin><username>username</
username><password>password</password></

admin>

<admin><username>another one</username><password>another password</

password></admin>

</admins>



Now, what i found out is that in my LoginServiceImpl.java i cannot

call a RequestBuilder to get the xml file in which the admins are

stored and validate the user, and i don't know another way to load

that file, so...i'm in a dead-end. I don't know how to move on, so

please help me!



Thank you

Nickelnext
 
 
Posted by : Nickelnext
Re : Read Xml File from RPC Servlet
It really was a stupid question. I solved the problem, simply using a

java class.



That's why i did not found anything on the web :P



Bye all!
 
 
If you have the better reply, then send it to us. We will display your reply after the approval.
Name : 
Email Id :   
Reply :