Solved

Numpty Servlet question -how to return to the same page?

Posted on 2006-07-21
3
223 Views
Last Modified: 2010-04-01
Ok, I know I've used Struts too much :)
If I submit a form to servlet from a jsp and I want to process the form and return to the same page I submitted the form from what do I do with the response? In Struts I'd just return a null ActionForward from the Action execute() method.
0
Comment
Question by:mikehalfsheen
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
owenli27 earned 500 total points
ID: 17154444
RequestDispatchher view = getServletContext(().getRequestDispatcher("/yourJSP.jsp");
view.forward(request, response);
0
 

Author Comment

by:mikehalfsheen
ID: 17154630
mmm, that seems to almost work. The page doesn't like trying to load:-
<script language="JavaScript" src="javascript/mm_rollover.js" type="text/javascript"></script>
It barfs looking for a js function :(
0
 

Author Comment

by:mikehalfsheen
ID: 17155180
Thanks
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
A procedure for exporting installed hotfix details of remote computers using powershell
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now