• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Bean Problem

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suggest you try a scope of "session" - sendRedirect creates a new request so page or request scope is not what you want.
Bill
 
reply
    Bookmark Topic Watch Topic
  • New Topic