This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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