Oops, you don't need to be modifying the web.xml.. For some reason I thought
you were extending the ActionServlet.

Sorry about that.

"Franck Lefebure" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> I've written this Requestprocessor subclass :
>
> -----------------------------------
>
> public class LogRequestProcessor extends RequestProcessor{
>
>     /** Creates a new instance of LogRequestProcessor */
>     public LogRequestProcessor() {
>         System.out.println("Instantiation du processor");
>     }
>
>     public boolean processPreprocess(HttpServletRequest request,
> HttpServletResponse response) {
>         System.out.println("Dans processPreprocess");
>         try {
>             Session sqlSession = SqlSession.connect();
>             WapLog wapLog = new WapLog();
>             wapLog.setRemoteAddr(request.getRemoteAddr());
>             wapLog.setRemoteHost(request.getRemoteHost());
>             wapLog.setQueryString(request.getQueryString());
>             wapLog.setRequestUrl(request.getRequestURI());
>             wapLog.setUserName(request.getHeader("X-Nokia-MSISDN"));
>             wapLog.setSessionId(request.getSession().getId());
>             sqlSession.save(wapLog);
>             sqlSession.flush();
>             sqlSession.close();
>         } catch (Exception e)
>         {
>             e.printStackTrace(System.out);
>         }
>         return true;
>     }
> }
>
> ---------------------
> Seems ok ?
> In struts-config.xml  I've put after </action-mappings> :
> <controller
> processorClass='com.orange.struts.processors.LogRequestProcessor'/>
>
> Always ok ?
>
> But nothing happens ?
> Where am'I wrong ?
>
> Thanks a lot
>
>
>
>
> --
> Franck Lefebure




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

Reply via email to