Mark Jones

Greenhorn
+ Follow
since Apr 30, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Mark Jones

Is it true that the methods in the RequestProcessor are called with each servlet request and not an HttpRequest?

I have an action which forwards to a jsp, but it looks like the methods in RequestProcessor are getting hit twice. Would a single HTTP request which results in a forward hit the preprocessor twice? Once for the original request, and then once for the forward??
20 years ago
A Harry, I have the same problem. I can NEVER get request.getSession(false) to EVER return a null. I am running Tomcat, so I am assuming that Tomcat must be creating the session automatically.

I would appreciate if anyone could expand on this.

Thanks,
Chughead
20 years ago
It sounds like you may have a different session the second time around. Print out the session.getId() each time the page loads.... check to make sure you have the same session.
20 years ago
Here is what I would do:

1) Create a 'welcome.jsp' which simply does a redirect to your struts alias. For example:

<html>
<body>
<%response.sendRedirect("home.do");%>
</body>
</html>

2) Add the 'welcome.jsp' to your welcome-list. For example:
<welcome-file-list>
<welcome-file>welcome.jsp</welcome-file>
</welcome-file-list>


This setup works for me!
-Chughead
20 years ago