• 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

session tracking problem

 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I can't perform session tracking, I cannot use JavaBean in the propagated JSP. When I create bean in the JSP which point at another JSP, the bean created in the first one under session scope, is perfectly extracted in the second JSP.

But, when I initialize bean from JSP, and go to the servlet (just to redirect to anothrt JSP page), the redirected page says that bean is null! It has a bean under session scope (regarding that no new bean is instantiated cause body of the


the servlet Checker, has code :



and the display.jsp




And I get that value of name and lastname are null!!!
Totally confusing...Does anyone have a clue?
 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since you are forwarding (rd.forward) to somewhere still inside your application, and not using response.sendRedirect(), can you try encodeUrl instead of encodeRedirectUrl? Let us know.
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No it wont.
I try with RequestDispatcher - encodeURL()
then I try with redirecting res.sendRedirect(path) -encodeRedirectURL()
and it neither wont. I don't understand, how could I track then session if I can't by these two ways???
 
Shiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic