I have code below that runs in a
Servlet each time a user clicks a Submit button in an HTML Frame. The button is in a
JSP page (with the Submit button) in the lower third of the frame.
String address = "mainframe.jsp";
dispatcher = request.getRequestDispatcher(address);
dispatcher.forward(request, response);
(This code runs after the text in the HTML Form is saved to a database.)
What's happening is that each time this code runs and forwards the response back to the frame, the lower third area of the frame scrolls down a few pixels until it's out of sight and can't be used any longer.
The name of the frame with the Submit button, in the lower third that scrolls down on each forward, is "ChatEntry.jsp". However, since it's contained in teh "mainframe" frame, I need to forward to the mainframe.jsp page. This appears to be where the scrolling problem is. For some reason, the ChatEntry.jsp part of the frame is scrolling a bit each time.
I think I need a way to clean up what was on the screen before before forwarding to the mainframe.jsp page from the Servlet again. Not sure.
I've removed all the code from the JSP so it's just the servlet and the forward code.
Any ideas would be greatly appreciated!!!
Thanks in advance.
-- Mike