Solved

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

Posted on 2006-07-21
3
224 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

There are many Password Managers (PM) out there to choose from. PM's can help with your password habits and routines, but they should not be a crutch you rely on too heavily. I also have an article for company/enterprise PM's.
Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 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

13 Experts available now in Live!

Get 1:1 Help Now