Re: Action vs. Servlet

2005-06-01 Thread Rokibul Islam Khan
hi, if ur entire application is struts based then u did the right thing but if not then probably servlet would be a better alternate if u don't need the facilities struts offer. > On 6/1/05, e-denton Java Programmer <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I recently wrote an Action which in con

Re: Action vs. Servlet

2005-06-01 Thread Dakota Jack
Also if this is really just a subroutine you might want to write a Runnable to dump into your thread pool queue, if you have one, or a Thread itself, if you don't have one. There is no reason to tie up the server thread if the action is unrelated to your request return. On 6/1/05, e-denton Java P

RE: Action vs. Servlet

2005-06-01 Thread Frank W. Zammetti
Is the rest of your application on the server-side Struts-based? If so I would consider that reason enough to implement it as an Action. If your saying this is the extent of your server-side processing and asking whether you should use Struts for it or not, I would tend to say no... There's proba

RE: Action vs. Servlet

2005-06-01 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> I recently wrote an Action which in conjunction with an ActiveX > object returns a table from the server to update the DOM in the > browser. My question is: Is this a proper use of an Action, here > essentially just a subroutine I am calling from the client, with > no forwarding action? Or sh

Re: Action vs. Servlet

2005-06-01 Thread Dakota Jack
The servlet for an Action is the ActionServlet. In the Action, you probably should have used some utility class defined outside the Action to decouple the business logic from the Action itself. On 6/1/05, e-denton Java Programmer <[EMAIL PROTECTED]> wrote: > Hi, > > I recently wrote an Action wh

Action vs. Servlet

2005-06-01 Thread e-denton Java Programmer
Hi, I recently wrote an Action which in conjunction with an ActiveX object returns a table from the server to update the DOM in the browser. My question is: Is this a proper use of an Action, here essentially just a subroutine I am calling from the client, with no forwarding action? Or should I ha

Action vs. Servlet

2005-06-01 Thread e-denton Java Programmer
Hi, I recently wrote an Action which in conjunction with an ActiveX object returns a table from the server to update the DOM in the browser. My question is: Is this a proper use of an Action, here essentially just a subroutine I am calling from the client, with no forwarding action? Or should I ha