• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you trying to do this???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic