jQuery in Action, 2nd edition*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
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: 4727

Why are you trying to do this???


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