• Post Reply Bookmark Topic Watch Topic
  • New Topic

howto reuse a bean in a forwarded jsp page generated in forwarding Controller servlet

 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
have seen that somewhere, but it does not work with my knowledge.
Controller servlet goes like this:

In the jsp I try to retrieve the bean with:

Tomcat gives me a "bean not found within scope" exception, which is reasonable for me, because its just a local variable.
But how give the local variable bean request scope? Is that possible? I think so. I have seen it somewhere. Have the feeling that I am missing something really important.
regards
Axel
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
O.k. I solved it myself.
Just

before the request dispatcher.
Some kind of stupid to answer my own questions, but I let it here, because it I thought more than an hour about it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!