Why can't you call the init() method from inside the execute() method (at the
beginning of it )?
Anna
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Fri 17/09/2004 2:06 PM
To: [EMAIL PROTECTED]
Subject: No Way to Put the init() Method Insid
ginal Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Friday, September 17, 2004 12:40 PM
To: Struts Users Mailing List
Subject: Re: No Way to Put the init() Method Inside the ActionForward
Execute( ... ) Method
I would write a Struts Plug-In (very easy) and initialize the
"sm
I would write a Struts Plug-In (very easy) and initialize the
"smtpServer" variable (and similar variables) there, making the
configured value available to the rest of the application (including
your Actions) by setting an Application scope attribute (this also
abstracts the configuration so th
We cannot put a method inside another method.
When using the Struts, we start with:
public final class MyClass extends Action
{
public ActionForward execute( ActionMapping
mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response )
4 matches
Mail list logo