No I am not setting the redirect attribute in the forward. Should I set this attribute to false or true? (I set it to true but it didn't work either).
Mohammed ----- Original Message ----- From: "Viet Kevin" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, November 23, 2001 3:24 PM Subject: Re: Request.setAttribute() and jsp > > Check if in the forwards of your action you do not write a thing like this > <forward path="***" redirect="true"/> > > > "Mohammed" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > in my action class I am setting in my request an object as follow: > > > > SourceBean sourcebean= new SourceBean(); > > sourcebean.setSource(" Longon"); > > request.setAttribute("source" ,sourcebean); > > > > And in my jsp file try to get a refererence > > > > <% SourceBean sourcebean = (SourceBean)request.getAttribute("source"); > > > > if(sourcebean = = null)System.out.println(" the source bean object is > > null"); > > else( > > > > System.out.println( sourcebean.getSource()); > > > > my Problem is that I am getting null for the sourcebean object. I think the > > jsp servlet is getting always a new session but I don't know why? > > > > Thanks for any hint > > > > > > Mohammed > > ============================================================= > -- KeV -- > ============================================================= > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>