aspose file tools*
The moose likes Servlets and the fly likes Bean Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Bean Problem" Watch "Bean Problem" New topic
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: 12683
    
    5
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: http://aspose.com/file-tools
 
subject: Bean Problem
 
Similar Threads
Simple login filter causing issues
FacesContext is null inside managed bean
navigation rules are not working...
Sharing bean with Servlet & JSP
Help with this code!