Passing object to a servlet from a servlet

Can I pass an Object between servlets?(Using Servlets to beans ).
In our project we have to pass about 100 fields from one servlet to another. And finally store.retrieve in a data base. I am going for a UML design i.e., the fields are encapsulated into 5(about) classes). So, my question is: whether I can pass objects between objects. Here I am implementing Model Archtitecture for JSP(
separation of content from presentation).
LVL 2
sjhyamAsked:
Who is Participating?
 
Laminamia063099Connect With a Mentor Commented:
Yes, you can pass objects between objects.  If these servlets reside on the same machine (ie the same server), then you can pass them by redirecting the url to the second servlet.  If you just need to pass the objects from the servlet to a Bean you can do so as you would normally pass any object to a method.

Post some code where you want to do it, and I'll be able to help you out some more :)

Laminamia :)
0
 
sjhyamAuthor Commented:
Ur response  is directly answering our questions.

Thanks a lot.

We will contact u with the code thanks again.

Bye.
0
 
Laminamia063099Commented:
No problem.  I'll be around :)

Laminamia :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.