Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Abt passing values b/w servlets  RSS feed

 
nilima komala
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created one servlet using AWT components.And i put one value as Primary key in database i.e Id.I want that id to pass to the other servlet i.e without typing that id on that servlet.

Is it sharing data b/w servlets???

with Regards
nilima
 
ramprasad madathil
Ranch Hand
Posts: 489
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I created one servlet using AWT components


What ??? How did you manage that ?

Your question is unclear. Can you please give more details ?

ram.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All you need is a good book on servlets.
Strating with Head First Servlet is a nice option.
 
Phani Kumar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ServletContext is just for that purpose. You can share data among your sevlets using it(provided all these servlets reside in the same servlet container).
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've used some AWT classes in a servlet once.
Wasn't a good idea as the deployment server had no videocard causing AWT to explode when trying to instantiate those classes.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeroen Wenting:
I've used some AWT classes in a servlet once.
Wasn't a good idea as the deployment server had no videocard causing AWT to explode when trying to instantiate those classes.



The JVM switch "headless" will clear that up.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!