Using a bean from a JSP in a Servlet

Discussion in 'Programming' started by Kameel, Sep 5, 2009.

  1. #1
    Hi.
    Could someone please help me with the following problem?

    I populating a bean called 'user' from a User class, in a form within a JSP. This bean has request scope. This form is passed to a servlet. I want to be able to access this bean and use it in the servlet.

    i've tried using Users u = (Users)request.getAttribute('user'); But this is always turning out to be null.

    any help will be appreciated
    thanks
     
    Kameel, Sep 5, 2009 IP