You can use tokens to flag valid submissions. See the Struts JavaDocs for Action.isTokenValid(), Action.saveToken(), Action.resetToken(). See also
this article Here's the logic:
if (!isTokenValid(request)) {
return mapping.findForward("home"); // where "home" is a global forward
}
You might also check for some object in the session scope that indicate that a user has properly logged in to the application. If the object is not there, you'd forward to the home page.
[ November 30, 2004: Message edited by: Junilu Lacar ]