This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes method calling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "method calling" Watch "method calling" New topic

method calling

sandeep chalishazarwala

Joined: Dec 28, 2008
Posts: 25
Hello everyone,
Can we call a method inside validate method in validator form of struts .12
If yes, then please guide me properly

Thanking You
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684


Yes of course you can call method from validate method...

But the make sure that method can not return any thing.

Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
Bilal A. Siddiqui
Ranch Hand

Joined: Sep 14, 2008
Posts: 53

Hi Sandeep

yes you can call methods from validate method, but what kind of method you want to call from validate method, i mean what is the purpose of it ??

Cheers!!! Bilal
Handsome Android||@bilal_speed||LinkedIn
I agree. Here's the link:
subject: method calling
Similar Threads
NX: When should I throw DuplicateKeyException?
Changin font in a JTextArea
Finalization Method
Sharpen your Pencil - Page 323 in HFEJB
garbage collection