Falaaa galera, blz??
to com uma duvida que ta dificil de resolver
bem, tenho o seguinte jsp
<html:form action="configGuias.do">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="8" colspan="2" align="center"></td>
</tr>
<tr>
<td height="15" colspan="2" align="right" valign="top"></td>
</tr>
<tr>
<td width="33%" height="25" align="right"><strong>Convênio</strong></td>
<td width="67%" valign="top" align="left">
<html:select property="convenioSelecionado">
<html:option value="0"> Selecione</html:option>
<html:optionsCollection property="listConvenio" label="nome" value="id"/>
</html:select>
 
<c:if test="${ConfiguracaoGuiasForm.convenioSelecionado.id eq 0}">convenio id = 0</c:if>
<a ><img ></a>
<a ><img ></a></td>
</tr>
<tr>
<td height="15" colspan="2" align="right" valign="top"></td>
</tr>
</table>
</html:form>
meu buscaAction
@Override
public ActionForward processa(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, Session hibernateSession) {
ConfiguracaoGuiasForm configForm = (ConfiguracaoGuiasForm) form;
Convenio v = (Convenio) hibernateSession.load(Convenio.class, configForm.getConvenioSelecionado().getId());
System.out.println("*******************");
System.out.println(v.getBairro());
configForm.setBairro(v.getBairro());
return mapping.findForward("sucesso");
}
e por fim o struts config
<action path="/configGuias" validate="false" name="ConfiguracaoGuiasForm" scope="request" type="br.com.tecnoarte.drtools.controller.configuracaoguia.ConsultaConfiguracaoGuiaAction" >
<forward name="sucesso" path="/configGuias.jsp" redirect="false" />
</action>
<action path="/insere-convenio-guias" validate="true" name="ConfiguracaoGuiasForm" input="/configGuias.do" scope="session" type="br.com.tecnoarte.drtools.controller.configuracaoguia.InsereConvenioConfiguracaoGuiaAction">
<forward name="sucesso" path="/configGuias.do" redirect="false"/>
</action>
<action path="/buscar-convenio-guias" validate="true" name="ConfiguracaoGuiasForm" input="/configGuias.do" scope="request" type="br.com.tecnoarte.drtools.controller.configuracaoguia.BuscaConvenioConfiguracaoGuiaAction">
<forward name="sucesso" path="/configGuias.do" redirect="false"/>
</action>
os problemas sao os seguintes, nao sei nem se o buscarAction ta funcionando, ja que em momento nenhum ele passa nele.
nao consigo definir o id do ConfiguracaoGuiasForm.convenioSelecionado.id
e nao… consigo fazer as buscas
sou completamente ruim em struts, cai de cabeça no projeto, fazer o insert eu consigo normal… mas o buscar nao to conseguindo
SOCORRO