why my bean method is not get called?

I use jboss with jsf1_1. I am new in JSF.

why my bean method is not get called?

my jsp:

<h:commandButton value="Modify" action="#{mybean.modify}" />

my method of bean:

public void modify(){

System.out.println("in modify method");

return "modify";

}

my faces-config.xml

<navigation-rule>

<from-view-id>/mypage.jsp</from-view-id>

<navigation-case>

<from-outcome>modify</from-outcome>

<to-view-id>/mypage.jsp</to-view-id>

</navigation-case>

</navigation-rule>

[626 byte] By [sh_sadraia] at [2007-11-26 23:53:11]
# 1
Most likely cause is that a conversion or validation error has occurred. Add <h:messages /> to the bottom of your form to see if any error message will show up.
BalusCa at 2007-7-11 15:33:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

"<h:commandButton value="Modify" action="#{mybean.modify}" />

my method of bean:

public void modify(){

System.out.println("in modify method");

return "modify";

}

my faces-config.xml

<navigation-rule>

<from-view-id>/mypage.jsp</from-view-id>

<navigation-case>

<from-outcome>modify</from-outcome>

<to-view-id>/mypage.jsp</to-view-id>

</navigation-case>

</navigation-rule>

"

The return type for the method modify should be String. Currently, it is void.

Seshu_Varanasia at 2007-7-11 15:33:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Im sorry . I typed wrong . The method returns String not voidand I added <h:messages/> to the end of my form, but still no good.
sh_sadraia at 2007-7-11 15:33:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
I think you have to declare the bean in the configuration file.
chicoa at 2007-7-11 15:33:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Thank you allI solved the problem. I had some scripts and some other stuff in the jsp.When I got rid of them, my modify method works now.
sh_sadraia at 2007-7-11 15:33:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...