Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

Cecilia Stesser

Greenhorn
+ Follow
since Feb 29, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Cecilia Stesser

I am not getting any error messages, just a blank page.

But I know that my jsp sight doesent get a connection with the controller (Logout) page, because my sysos in the Logout isnt even written out.

I have checked my xml and that seems to work fine.
10 years ago
JSP
Hi
I want to link a jsp page to a controller, but it doesent work. I�m greatful for all the help I can get.

Here is the link code from the jsp:
<a href = "Logout"> Logout </a>

Here is the code from the controller:

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

HttpSession session = request.getSession();

String loggedOut = "/pages/loggedout_text.jsp";

RequestDispatcher view = request.getRequestDispatcher(loggedOut);
view.forward(request, response);
System.out.println("Hej");
session.invalidate();
}

Here is the code from from the loggedout_text.jsp:
Error
<p />
You are logged out.
10 years ago
JSP