Jsp and servlet

Posted on 2006-04-26
Last Modified: 2013-11-24
how can a jsp  page use the objects instatiated by the servlet?????????
Question by:Maggieshah
    LVL 86

    Accepted Solution

    Get the servlet to save them in the session
    LVL 30

    Assisted Solution

    Or preferably in the request,  using request.setAttribute () - if they are meant for only that request.

    Author Comment

    How can integrate a servlet into a java program??
    LVL 30

    Expert Comment

    You can't run it directly. You need to run it in a servlet container like Tomcat:

    You can of course, import other classes in it and use it.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
    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:

    779 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

    10 Experts available now in Live!

    Get 1:1 Help Now