Prezados,
estou criando um formulario que serve para incluir e alterar dados com o struts, entretanto quando uso o mesmo para fazer inclusão ele me diz que não localizou um bean. Este conceito de usar o mesmo form para editar e incluir no struts é correto? tenho que criar 2 formularios? segue o meu código para avaliacao.
<%@ include file="import.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html:html locale="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Cadastro de Usuários</title>
<script language="JavaScript" type="text/javascript" src="javascript/functions.js"></script>
<link type="text/css" rel="StyleSheet" href="css/style.css" />
</head>
<body>
<div id="mae">
<div id="topo">
topo
</div>
<div id="divmenu">
<%@ include file="menu.jsp" %>
</div>
<div id="conteudo">
<div id="form">
<html:form action="usuariocad" method="post">
<fieldset>
<html:errors />
<legend>Cadastro de Usuários</legend>
<label for="nome">Nome</label>
<html:text property="nome" name="editUsuario" style="width:280px;" /> <br /><br />
<label for="login">Login</label>
<html:text property="login" name="editUsuario" style="width:200px;" /><br /><br />
<label for="perfil">Perfil</label>
<html:select property="perfil" name="editUsuario">
<tag:MontaComboPerfil codigo="${editUsuario.perfil.codigo}" />
</html:select><br /><br />
<c:if test="${empty carregarUsuario}">
<label for="senha">Senha</label>
<html:password property="senha" style="width:200px" /><br /><br />
<label for="confirmacaosenha">Confirmação de Senha</label>
<html:password property="confirmacaosenha" style="width:200px" /><br /><br />
</c:if>
<br />
<html:hidden property="codigo" name="editUsuario" />
<input type="submit" value="salvar" />
</fieldset>
</html:form>
</div>
</div>
</div>
<div id="rodape"></div>
</body>
</html:html>