Solved

Passing object to a servlet from a servlet

Posted on 2000-05-11
3
196 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

743 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

12 Experts available now in Live!

Get 1:1 Help Now