sending javabean from JSP to servlet

Hello

I'm using a javabean inside a JSP, by the tag :

<jsp:useBean id="myBean" scope="session"........>

From that JSP i'm calling a servlet.

The problem is that i can't access this bean from the servlet.

I tried call it with session.getAttribute("myBean"), but got a null.

How can I access that bean within the servlet ?

[373 byte] By [George_.Smitha] at [2007-11-27 7:55:10]
# 1

session.getAttribute()? Is that:

HttpSession session = request.getSession();

MyBean mybean = (MyBean) session.getAttribute("myBean");

? If so, there is nothing wrong with your code and I would start to suspect your session timeout setting. Either that or a typo in the name.

gimbal2a at 2007-7-12 19:36:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
news: I can access the bean inside the servlet, but i cannot see the jsp's parameters.like the bean is not being updated
George_.Smitha at 2007-7-12 19:36:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...