Re: speiclised servlet actions

2001-10-02 Thread Marcelo Vanzin

[EMAIL PROTECTED] wrote:

> For various reasons, I'm trying to get an Action to call a method on a homemade
> servlet like so:

 >

> servlet.getServletContext().checkoutCollection("DPPmfg_cds", "trunk","cache");
> 
> Which, unsurprisingly, does not compile.


I may be missing something here, but if the method is in the servlet, qhy are 
you calling it on the servlet context???


You should be doing something like:

((MyOwnServletClass)servlet).myCustomMethod();

Don't forget the cast.


-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"We're an underground revolution working overtime"




speiclised servlet actions

2001-10-02 Thread roger . day

For various reasons, I'm trying to get an Action to call a method on a homemade
servlet like so:

servlet.getServletContext().checkoutCollection("DPPmfg_cds", "trunk","cache");

Which, unsurprisingly, does not compile. How does one get an action call methods
on servlets? Or am I barking up the wrong tree.

The servlet is trying to emulate the database servlet in the example; however,
for reasons of speed, I'm trying to get each action to call methods on the
servlet.

What am I doing wrong?

TIA.

Roger