File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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