Hi,

Action classes are explicitely meant to be called from a from submit or a link.

The class that does the db-access can be normal Java-class, which is called from
the Action classes and then the result can be added to the request context by the 
Action class or pass the request as a parameter to the db-access-class and have it
put its output to the request-context.

The second version is not as clean in terms of design as it links a backend
(=service) class to the frontend (read servlet-context). Better is the first 
approach: have the db-class return a collection object which is added to the request
context by the action-class.

hope this helps
Alexander

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 2:25 PM
To: [EMAIL PROTECTED]
Subject: calling action classes


Hi

I don't know how to call my action class in order to output the result of a
database request.
I don't want to use an explicit call like a form submit or link.
The database request should be made on the fly and the result encapsulated
in a bean which is added to the request context.

Does anyone know a technique ???

Thanks, Stefan

Reply via email to