aspose file tools*
The moose likes Struts and the fly likes Can i use constructor in Action Class?If yes how? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Can i use constructor in Action Class?If yes how?" Watch "Can i use constructor in Action Class?If yes how?" New topic
Author

Can i use constructor in Action Class?If yes how?

p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
Can i use constructor in Action Class?If yes how?
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17

Did you try to create a constructor in an Action class?? Do you think there will be any problems if you create a constructor. Try to create a constructor in your action class and then see what happens (whichever version of struts you are talking about)...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
Struts1.2
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17

Ankit Garg wrote:Did you try to create a constructor in an Action class?? Do you think there will be any problems if you create a constructor. Try to create a constructor in your action class and then see what happens.

Did you try any of this or do you not want to write some code and want others to tell you the answer and you'll memorize it??
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please read the ShowSomeEffort and SearchFirst FAQ entries.

Also, unless your first name is actually the single letter "p", the JavaRanch naming policy may be mentioned to you by those with more power than myself.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17

Well isn't initial allowed for first name according to the policy
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Oh, yeah, looks like it is.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17

David Newton wrote:the JavaRanch naming policy may be mentioned to you by those with more power than myself.

Oh, yeah, looks like it is.

Maybe that's why there are others with more powers than you (of course I'm not one of them)...
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Man, I sure *hope* there's people with more power, and especially more knowledge, than me--otherwise we're doomed! ;)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can i use constructor in Action Class?If yes how?