We're not receiving any type of error message. The problem is that the button that I set the defaultCommandChild to is just not being executed.
We're specifying the attribute in the jato form tag of the jsp as follows:
<jato:form name="Login" defaultCommandChild="/Submit">
The html that is rendered for this page appears as follows:
<html>
<head>
<title>Login</title>
</head>
<body>
<form name="Login" method="post" action="../module1/Login;jsessionid=525185F36523B4A3F02214C8B6622571">
<h1></h1>
<p>
Login:<input type="text" name="Login.login" value="" maxLength="20" size="20">
<p>
Password:<input type="password" name="Login.password" value="" maxLength="20" size="20">
<p>
<input type="submit" name="Login.reset" value="Reset">
<input type="submit" name="Login.submit" value="Submit">
<input type="hidden" name="jato.defaultCommand" value="/Submit">
<input type="hidden" name="jato.pageSession" value="">
</form>
<!-- Add content here -->
</body>
</html>
NOTE: This is using JATO 1.2.1 .
Well, I've verified that the defaultCommandChild attribute is working as expected in 2.0, and I don't know of any reasons it wouldn't be working the same in 1.2.1. Have you confirmed that your Button is registered via a call to registerChild()? Have you tried your test case in a different browser?
If all else fails, maybe you can send a simple test case based on your app in WAR format for us to test here. If nothing else, send your ViewBean and JSP sources. Send all to jatoteam@sun.com.
Todd