| Author |
Bean Problem
|
Raja Islam
Ranch Hand
Joined: Dec 07, 2001
Posts: 74
|
|
Hi i have a problem using jsp and bean.i made a Login.jsp and set its title from bean <jsp:useBean id="loginBean" class="com.LoginBean" scope="session" /> <head><title><jsp:getProperty name="loginBean" property="title" /></title> and the request of Login.jsp is submit to a servlet and servlet invoke method of bean in this method bean change its value of title.i check that the title is changing in bean with sop(title).from bean i redirect the page with the help of req.sendRedirect("Login.jsp");. but at the Login.jsp when i get the value it show me the old value of title.i used scope="page" and scope="request" but it is not working
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12265
|
|
I suggest you try a scope of "session" - sendRedirect creates a new request so page or request scope is not what you want. Bill
|
Java Resources at www.wbrogden.com
|
 |
 |
I agree. Here's the link: jrebel
|
|
subject: Bean Problem
|
|
|