• Post Reply Bookmark Topic Watch Topic
  • New Topic

MVC (JSP,Servlet and Java Bean)  RSS feed

Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Java Pals.
1.Can someone please explain what flushing of a page is all about ?
And how it can affect including using <jsp:include> and
forwarding from a JSP . I have used it, but i don't truely
understand in high level.
2.I have a controller servlet where i check for the button
clicked by a user and forward to the respective pages.that is OK
for now .But my questions are the scenario is:
a. I capture dataA and dataB on the first screen using
request.getParameter("nameOfParameter").Set the parameters in my
Java Bean which i stored in a session scope and to retrieve the
the set values( ie dataA and dataB ) from the subsequent pages
is being a problem. I need to set these parameters after
checking the button clicked in the Controller Servlet, else
getting the parameter returns null.
Please, what am i doing wrong. I thought since i storrd the bean
in the session object i need set the params just once and retrive
on any page as long as my <jsp:useBean> has an attribute
Please , assist . Cheers!!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!