> If you mean the page /somePage.jsp can be put under a security
> constraint in web.xml and you can redirect to it, that is not
> going to work in theory. This is the original point why the
> page can not be protected by the security constraint when the method
> response.sendRedirect("/somePage.jsp") is called and
> the call response.sendRedirect("/someAction.do") is one
> of solutions to it.

You are mistaken. Container managed security can protect any resource in the
web application, including JSPs. Please don't think I'm advocating calling
JSPs directly - I'm not. But the reasons you shouldn't do not include
anything to do with CMS.

> You use it as you *need* it, not because it is another tool in the box.
> What I am searching for is some compelling business requirements
> that the redirect within a web application is *really* necessary. I hope
> some one could provide more hints.

That's what I meant. You use the tool that's most appropriate and redirects
are *one* of many tools available to us. It would be wrong to use it for
everything but it would be equally wrong to avoid using it where it is
appropriate.

Anyway this has strayed well away from Struts. The original question was
whether to use sendRedirect in the action or use an ActionForward. That
question has been answered.

Steve



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to