You should be doing this in the action, not in the view. (View should only
be for viewing!)
(In actual fact you really ought to hide this even deeper in your model
classes which are then called by your action).
Not sure what the servlet api restrictions on file access from a servlet
(your action code runs under the actionservlet) environment. Anyone else can
shed some light?

-----Original Message-----
From: Uday [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 28 January 2003 16:20
To: 'Struts Users Mailing List'
Subject: RE: Hi


Hi,

I have a requirement like this.
When the user enters into some jsp pae, he can selecte some checkboxes.
The data related to these checkboxes i have to store in a file. So that next
time when he visited (logoff and logon) this page, he can see the checkboxes
what he previously selected.
I want to write this information to a text file, so that it can be read for
later.




Have a nice day

Regards,
Uday

-----Original Message-----
From: M�guel �ngel Mulero Mart�nez
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 1:17 PM
To: Struts Users Mailing List
Subject: RE: Hi


In what file? If I'm not wrong, you must read the file in an Action, and
then process it (if needed) and put the result in the request for the JSP.

Regards,
Miguel

-----Mensaje original-----
De: Uday [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 28 de enero de 2003 8:35
Para: [EMAIL PROTECTED]
Asunto: Hi

Hi,


I want to read and write from/into the file using strtus (struts-taglibs).
Can you tell me how to do it.

It is very urgent. Tell me is there any code available on the net.


Have a nice day

Regards,
Uday

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to