aspose file tools
The moose likes Struts and the fly likes No Way to Put the init() Method Inside the ActionForward Execute() Method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "No Way to Put the init() Method Inside the ActionForward Execute() Method" Watch "No Way to Put the init() Method Inside the ActionForward Execute() Method" New topic
Author

No Way to Put the init() Method Inside the ActionForward Execute() Method

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
We cannot put a method inside another method.

When using the Struts, we start with:


I have a void init( ...) { ... } method shown below. Of course, I cannot put this init( ... ) inside the ActionForward Execute( ... ) { ... }

What am I supposed to do? Do I put this void init( ... ) { ... } method before the ActionForward Execute( ... ) { ... } begins?

Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4725

Why are you trying to do this???


A good workman is known by his tools.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: No Way to Put the init() Method Inside the ActionForward Execute() Method
 
Similar Threads
Initialization for a JSP
Overriding both versions of init() method
getServletConfig() does not work
Compile error: class file contains wrong class, bad class file???
Why does it die after init()?