Solved

Passing object to a servlet from a servlet

Posted on 2000-05-11
3
201 Views
Last Modified: 2013-11-24
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).
0
Comment
Question by:sjhyam
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
Laminamia063099 earned 50 total points
ID: 2799947
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
 
LVL 2

Author Comment

by:sjhyam
ID: 2800135
Ur response  is directly answering our questions.

Thanks a lot.

We will contact u with the code thanks again.

Bye.
0
 
LVL 3

Expert Comment

by:Laminamia063099
ID: 2800222
No problem.  I'll be around :)

Laminamia :)
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This video teaches viewers about errors in exception handling.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now