• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
p hasini
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i use constructor in Action Class?If yes how?
 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)...
 
p hasini
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts1.2
 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well isn't initial allowed for first name according to the policy
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, yeah, looks like it is.
 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic