Jsp and servlet

how can a jsp  page use the objects instatiated by the servlet?????????
MaggieshahAsked:
Who is Participating?
 
CEHJCommented:
Get the servlet to save them in the session
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Or preferably in the request,  using request.setAttribute () - if they are meant for only that request.
0
 
MaggieshahAuthor Commented:
How can integrate a servlet into a java program??
0
 
Mayank SAssociate Director - Product EngineeringCommented:
You can't run it directly. You need to run it in a servlet container like Tomcat:

http://tomcat.apache.org

You can of course, import other classes in it and use it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.