File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes MVC (JSP,Servlet and Java Bean) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "MVC (JSP,Servlet and Java Bean)" Watch "MVC (JSP,Servlet and Java Bean)" New topic

MVC (JSP,Servlet and Java Bean)

Gabriel Fox
Ranch Hand

Joined: Oct 17, 2001
Posts: 170
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!!
subject: MVC (JSP,Servlet and Java Bean)
It's not a secret anymore!