Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2006-07-21
3
Medium Priority
?
233 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 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Following on from our article on "The Murky World of Consent and opt in", we thought we would issue some helpful guidance, not only on consent itself but knowing what information you are capturing, what you are doing with this data and how you can p…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

783 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