Hi All,

The data I am passing may be more than 10. Like for a User there may be more
than one row of data from the Database.

In this case I may need to store the information in a "VECTOR" OR
"HASHTABLE".

Can u do the same thing for these type of data structures also? Can u store
the Vector and Hashtables in request.setAttributes()?

Since the volume of data that is transfered is more, I thought Storing it in
Java Objects and sending it will be better.

But again I heard "Serialization of Objects" and sending it thru network is
going to affect the Performance.

So I am thinking of doing this data Transformation using XML.

XML Building and Parsing has to be done both in JSP and Servlet.

Please let me know whether u have done anything like this.


Suggest me which one is better way.


Ganesh







-----Original Message-----
From: Joe Blow [mailto:[EMAIL PROTECTED]]
Sent: 04 April, 2001 4:54 PM
To: [EMAIL PROTECTED]
Subject: Re: Object Serialization Between JSP and Servlet


Yes...this is what even I would recommed too.
I guess this should work fine.

-----Original Message-----
From: Isaac Shabtay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 5:43 PM
To: [EMAIL PROTECTED]
Subject: Re: Object Serialization Between JSP and Servlet


> This is what I wanted to do.

.
.
.

> Onemore thing, the JSP is not in the Same server where the
> Servlet resides.
> JSP needs to call the Servlet which is residing in the Remote Server.

Sounds strange... the regular flow is to call the servlet using
RequestDispatcher.include(), have the servlet do the data retrieval,
put it on the request object using request.setAttribute() and getting back
to the JSP.
I tend to believe that all of the serialization/deserialization of objects
in order to pass them through the wire
is already taken care of by the servlet engine, doesn't it?


        - Isaac

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to