Thanks for your advice !
Nevertheless, I'd like to understand the mechanism used in the example.
The load() method of DatabaseServlet is called during the init(). Thats'ok.
But I don't know how to pass my parameters to the servlet in order to store
them in a file.
Could you explain me how it works ?

-----Message d'origine-----
De : Jim Richards [mailto:[EMAIL PROTECTED]]
Envoy� : 23 novembre, 2000 20:40
� : [EMAIL PROTECTED]
Objet : Re: need some explanations



It's really only for an example. It you want real
object persistence, you'll need to develop your
owne layer. Something like EJB's will make this much,
much easier. Or some direct JDBC code perhaps.

Vilavanh Messien wrote:
>
> I analyzed the struts example in order to develop my own small
application.
> Unfortunatelaty, I don't really understand how the user's information are
> saved
> in the "database.xml" file.
> The DatabaseServlet must write the information in the "database.xml" when
> the destroy() method
> is called.
> My question is how to make the destroy() method perform ?
>
> How can I do to pass some arguments to the DatabaseServlet ?
>
> Thanks
>
> Vilavanh

Reply via email to