Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MVC (JSP,Servlet and Java Bean)

 
Gabriel Fox
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
session="scope".
Please , assist . Cheers!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic