RES: Subclassing ActionServlet

2003-12-05 Thread Felipe Nascimento
{ myExecute(){ .. } } What do experts recommend?? Regards Felipe -Mensagem original- De: Gopal Venkata Achi [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 4 de dezembro de 2003 18:55 Para: Struts Users Mailing List Assunto: RE: Subclassing ActionServlet Hi I have come

Re: RES: Subclassing ActionServlet

2003-12-05 Thread Guido Garca Bernardo
: Subclassing ActionServlet Hi I have come across a plug-in for Struts, that is called as SAIF (Struts Action Invocation Framework), which enables us to write a pre-action and post action methods. You can use PreAction method for doing all the session authentication, etc., I did not really use

RES: RES: Subclassing ActionServlet

2003-12-05 Thread Felipe Nascimento
Para: Struts Users Mailing List Assunto: Re: RES: Subclassing ActionServlet This way you can't extend other 'struts core actions' (Dispatch, Lookup...). I think a better way may be: - Using a filter (servlet 2.3) in order to pre and post process the request - Extending RequestDispatcher Regards

Subclassing ActionServlet

2003-12-04 Thread Fullam, Jonathan
All, I need to check the Session for an authenticated user before most requests. To do this I subclassed ActionServlet and only call super(request, response) upon verification that authenticated user is in the Session. if (request.getRequestURI().endsWith(welcome.do) |

Re: Subclassing ActionServlet

2003-12-04 Thread Joe Germuska
Does anybody know of any serious disadvantages or side effects of subclassing the ActionServlet class rather than the RequestProcessor class. The most obvious would be that your changes in the ActionServlet would apply to all modules, while RequestProcessors are per-module; also, you have less

Re: Subclassing ActionServlet

2003-12-04 Thread Vic Cekvenich
Errr. request processor might be upgraded in version 2.0 of Struts.. so I subclass Action. .V Fullam, Jonathan wrote: All, I need to check the Session for an authenticated user before most requests. To do this I subclassed ActionServlet and only call super(request, response) upon

RE: Subclassing ActionServlet

2003-12-04 Thread Wendy Smoak
Jonathan Fullam I need to check the Session for an authenticated user before most requests. Have you ruled out using a Filter for some reason? In my project, I found that inside the Action was too late to be checking whether the user is allowed to be there or not. -- Wendy Smoak

RE: Subclassing ActionServlet

2003-12-04 Thread Gopal Venkata Achi
List' Cc: Subject: Subclassing ActionServlet All, I need to check the Session for an authenticated user before most requests. To do this I subclassed ActionServlet and only call super(request, response) upon verification

Re: Subclassing ActionServlet

2003-06-07 Thread Jim Collins
ActionServlet. Regards Jim. - Original Message - From: Kevin Robair [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, June 06, 2003 2:31 PM Subject: Re: Subclassing ActionServlet I just did the same thing, but had no problems. Here is what I did: public class

Subclassing ActionServlet

2003-06-06 Thread Jim Collins
Hi, I have just modified an application where I now subclass ActionServlet. The problem is my JSP's that use resources now throws an exception about not being able to find the key. Are there any issues with subclassing ActionServlet that I should be aware of. Thanks Jim

Re: Subclassing ActionServlet

2003-06-06 Thread Kevin Robair
. The problem is my JSP's that use resources now throws an exception about not being able to find the key. Are there any issues with subclassing ActionServlet that I should be aware of. Thanks Jim. - To unsubscribe

RE: subclassing ActionServlet?

2001-05-25 Thread Nanduri, Amarnath
: Thursday, May 24, 2001 10:38 PM To: [EMAIL PROTECTED] Subject: subclassing ActionServlet? Hello struts-users, My webapp needs bunch of beans that should be available all the time and accessible from all JSP pages, so I guess I have to create the beans at the startup time and set them

subclassing ActionServlet?

2001-05-24 Thread iwanek
Hello struts-users, My webapp needs bunch of beans that should be available all the time and accessible from all JSP pages, so I guess I have to create the beans at the startup time and set them to the application context. How should I do this? My candidates are, 1) create a subclass of

Re: subclassing ActionServlet?

2001-05-24 Thread Jim Richards
I made a sub-class of ActionServlet an overloaded the initXXX() method that created the connecion pool. I did this because my database manager beans needed access to the connection pool parameters. The other choice is to use something like a singleton or factory bean pattery that generates the