Solved

Passing object to a servlet from a servlet

Posted on 2000-05-11
3
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

730 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