Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Servlets
Model is not working?
Soumya Rout
Ranch Hand
Posts: 49
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi,
I have a
servlet
from that two values given by the are passed to the model class set method.
But when try to retrieve those values in another servlet its not coming .
And i have imported the model class in both the servlets.
Help me
Bear Bibeault
Sheriff
Posts: 67754
173
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
imports are meaningless at run time. Are you passing the same instance around?
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Soumya Rout
Ranch Hand
Posts: 49
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
nop im not .
Im creating different instaces.
Bear Bibeault
Sheriff
Posts: 67754
173
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Basic
Java
: values set in one instance will not be automatically available in another. What are you doing to set the values into the new instance?
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
samir singha
Greenhorn
Posts: 23
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
creating diffrent instances means you are creating diffrent objects. create a single object, set the value of the object and pass the object to the another servlet.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
doubt in model design
Design Question - Controllers
how to pass data from view to model?
correct me
how to select using check box
More...