wood burning stoves 2.0*
The moose likes Servlets and the fly likes get session attribute in jsp if set in servlet without redirect or forward? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "get session attribute in jsp if set in servlet without redirect or forward?" Watch "get session attribute in jsp if set in servlet without redirect or forward?" New topic
Author

get session attribute in jsp if set in servlet without redirect or forward?

shashank dwivedi
Ranch Hand

Joined: Mar 06, 2012
Posts: 61

why it is not working?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61066
    
  66

Are the servlet and JSP in the same web app?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
shashank dwivedi
Ranch Hand

Joined: Mar 06, 2012
Posts: 61
Bear Bibeault wrote:Are the servlet and JSP in the same web app?

yes they are in same web app
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61066
    
  66

And participating in the same session? (Usually the same browser window.)

What exactly happens when you try it? What have you don to try and debug this isse?
 
 
subject: get session attribute in jsp if set in servlet without redirect or forward?