How to transform a HttpServletRequest into a String

Hello together,

I have a HttpServletRequest-object and want transform it into a string, with all the values of the object. This string would be stored in a database for later debug-reason. Is there a ready-to-use method or have I to program one? The toString-Method of the object shows only a short description.

Thank you in advance

ThorBo

[364 byte] By [ThorBoa] at [2007-10-3 0:53:50]
# 1
you ca store the stae of a java object by using serialization
arunmp25a at 2007-7-14 17:49:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Your question is little bit interesting...

but pls specify for which information of request u need to debug later on...... so u can store that info only in String with delimater.....

or the other person has give the best answer to do serialise the object.

Regards,

Jimmi

Jimmi_S_Prajapatia at 2007-7-14 17:49:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Hello together,

here is ThorBo...somehow the forum means, that I shouldn't login with the other account :-( So, I created another one and hope this will work now.

The Problem is, that I have to use a implemented HttpServletRequest-Class from the framework, we use. This class doesn't use serialize.

I think a want store the whole object as a string, but if this doesn't work, I think, attributes and parameters will be enough.

So I am a little bit confused how to go on.

@ Jimmi:

How does delimater work? I searched on the web, but didn't found so much about it.

Thanks in advance

VanTom, aka ThorBo

VanToma at 2007-7-14 17:49:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
In this context, just another question. Is ist somehow possible to serialize an object which not implements the serialization-interface?VanTom
VanToma at 2007-7-14 17:49:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...