This one might be less interesting, but still useful.

Most of the times, when someone has to fill in a form on a website and you
need to keep the information in the session because you have to use it for
the same (eg. when the user wants to fill in some parst of the same form
again) or for other pages (eg. to show a summary of what (s)he filled in),
the information is stored in a HashMap or something similar. When you use
for instance an action to check the input and store it in the session as a
DOM object instead, it is much easier to simply stream the DOM with the
ReadDOMSessionTransformer, than to read the HashMap from the session and to
generate SAX events from it.

Feel free to add it to C2.


Sven



_________________________________ 
Sven Beauprez
Software Architect 
The E-corporation (<http://www.the-ecorp.com)/> 
Axxes 51-003
Guldensporenpark 10 
B-9820 Merelbeke

Tel +32-(0)9-272.22.00 
Fax +32-(0)9-272.22.11 
_________________________________



ReadDOMSessionTransformer.java

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to