[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Passing object to a servlet from a servlet

Posted on 2000-05-11
3
Medium Priority
?
233 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 200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

649 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