amrut sabade wrote:hiiiii i am new to java i have one boolean function where i have to check return type of method in if condition how can i do that please help me
please make it clear so that some one can help you try giving that code snippet and ask where you want exact help ..
VIJINDAS
amrut sabade
Ranch Hand
Joined: Aug 16, 2010
Posts: 90
posted
0
hi i have this method
so how can i determine that this method returns true in if condition?
Avishkar Nikale
Ranch Hand
Joined: Aug 06, 2010
Posts: 173
posted
0
Can you elaborate what you are trying to accomplish?
There could be a lot of catches in what you are asking & we can lead you to the solution(not provide it).
Please use the code tag if you are trying to paste the code.
so, you want to call a method inside if statement ?
amrut sabade
Ranch Hand
Joined: Aug 16, 2010
Posts: 90
posted
0
sure iam trying to access a field of form using bean n chech where name is less than 3 characters if it is less than that return false...... check this condition in a actionclass n accordingly redirect the page.. so i just need how the return type of the method can be checked so as to redirect page