Typically, people will place an object in the session that indicates
that the user is logged in. You can then either subclass the
ActionServlet to check each incoming request for that session object. If
it is absent, you redirect them to a logon page. More often, people
create a base Action that does the same thing. This makes it easier to
have authenticated and unauthenticated requestd, depending on whether
they extend the authenticated Action or not. The simplest thing is to
have create your own doPerform(...) method, and have the developers
extend that instead of process. Perform then calls doPerform

perform
        // Obtain logon
        Bean account = request.getSession().getAttribute(LOGON_KEY);
        if (account==null)
            return mapping.findForward(LOGON_FORWARD);
        return doPerform( ...


Also, please do not cross-post questions like this to the DEV list.

http://www.tuxedo.org/~esr/faqs/smart-questions.html

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Fabien Lesire wrote:
> 
> Hi,
> 
> I want use Struts to develop some web application but i would like used
> Smartcard/Certificate Authentication Web Controller from my previous Web
> Application (developed in my company).
> 
> How can i do this ?
> 
> thanks
> 
> ---------------------------------------------------------------------------
> 
> Lesire Fabien
> JAVA developement
> [EMAIL PROTECTED]
> IsaSoftware SA
> 13/15 Bd de l'Impératrice
> B - 1000 Bruxelles
> Web : www.isabel.be

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

Reply via email to