Erro chato em jsp

Alguém sabe o que pode ser esse erro:

    [ServletException in:/views/software/cadSoftware_delete.jsp] Cannot find bean softwareVO in any scope' 

[]'s

Seu jsp não está achando sua classe softwareVO.
Verifique o caminho da mesma e a forma na qual você está chamando, e se possível posta o jsp.

Não está achando o bean softwareVO. Alguma action que vai cair nessa jsp estava setando este bean e agora não está mais.

Para chamar a página, eu to setando ela no struts-config.xml e no tiles-defs.xml. O estranho, é que ela tava funcionando e parou do nada rsrs

Aqui vai o jsp:

<%@include file="/componentes/jsp/include.jsp" %>
<TR>
	<TD width="100%" align="center" class="ttltab1">Exclusão</TD>
</TR>

<TABLE class="tab1" width="100%" border="0" cellpadding="1" cellspacing="1">

  <TR class="lbl1">
  	<TD width="201">C&oacute;digo:</TD>
  	<TD width="201"><html:text maxlength='6' size='10' name="softwareVO" property="id" styleClass="frmTxt1" /></TD>
  </TR>	
  <TR class="lbl1">
    <TD width="201">Software:</TD>
    <TD colspan="3"><html:text maxlength='30' size='72' name="softwareVO" property="soft" styleClass="frmTxt1"/></TD>
  </TR>
  <TR class="lbl1">
    <TD>Descri&ccedil;&atilde;o:</td>
    <TD colspan="3"><html:text maxlength="70" size="72" name="softwareVO" property="descricao" styleClass="frmTxt1"/></TD>
  </TR>
  <TR class="lbl1">
    <TD>C&oacute;digo do Fabricante: </TD>
    <TD width="198"><html:text styleClass="frmTxt1" size="6" maxlength="5" name="softwareVO" property="fabricante"  /></TD>
    <TD width="162">Vers&atilde;o:</TD>
    <TD width="174"><html:text styleClass="frmTxt1" size="10" maxlength="10" name="softwareVO" property="versao"  /></TD>
  </TR>
  <TR class="lbl1">
    <TD>Pacote:</TD>
    <TD><html:text styleClass="frmTxt1" size="10" maxlength="3" name="softwareVO" property="pacote"  /></TD>
    <TD>C&oacute;digo Linha de Neg&oacute;cio: </TD>
    <TD><html:text styleClass="frmTxt1" size="8" maxlength="40" name="softwareVO" property="negocio"  /></TD>
  </TR>
  <TR class="lbl1">
    <TD>N&uacute;mero de Licen&ccedil;a: </TD>
    <TD><html:text styleClass="frmTxt1" size="10" maxlength="3" name="softwareVO" property="licenca"  /></TD>
    <TD>Fase de Desenvolvimento: </TD>
    <TD><html:text styleClass="frmTxt1" size="8" maxlength="25" name="softwareVO" property="desenvolvimento"  /></TD>
  </TR>
  <TR class="lbl1">
    <TD>Vers&otilde;es nos &uacute;ltimos 12 meses:</TD>
    <TD><html:text styleClass="frmTxt1" size="10" maxlength="3" name="softwareVO" property="versoes" /></TD>
    <TD>Plataforma: </TD>
    <TD><html:text styleClass="frmTxt1" size="10" maxlength="3" name="softwareVO" property="plataforma" /></TD>
  </TR>
  <TR class="lbl1">
    <TD>Chamados nos &uacute;ltimos 12 meses: </TD>
    <TD><html:text styleClass="frmTxt1" size="10" maxlength="3" name="softwareVO" property="chamados" /></TD>
    <TD>&nbsp;</TD>
    <TD>&nbsp;</TD>
  </TR>


  <TR class="lbl1">
    <TD colspan="4">Observa&ccedil;&otilde;es:<BR /><html:textarea name="softwareVO" readonly="true" property="observacao" rows="4" cols="79" /></TD>
  </TR>
  <TR class="lbl1">
    <TD colspan="4">O que faz o software?<BR /><html:textarea name="softwareVO" readonly="true" property="oquefaz" rows="4" cols="79" /></TD>
  </TR>
  <TR class="lbl1">
    <TD colspan="4">Quais os benef&iacute;cios que o software traz ao banco?<br /><html:textarea readonly="true" name="softwareVO" property="beneficios" rows="4" cols="79" /></TD>
  </TR>
  <TR class="lbl1">
    <TD colspan="4">Quais os sistemas que atende?<BR /><html:textarea name="softwareVO" readonly="true" property="sistemas" rows="4" cols="79" /></TD>
  </TR>
  <TR class="lbl1">
    <TD colspan="4">Qual benef&iacute;cio da renova&ccedil;&atilde;o da licen&ccedil;a do software?<BR /><html:textarea name="softwareVO" readonly="true" property="renovacao" rows="4" cols="79" /></TD>
  </TR>
  <TR class="lbl1">
    <TD colspan="4">No caso da n&atilde;o renova&ccedil;&atilde;o da licen&ccedil;a, quais as impli&ccedil;&otilde;es que isso traria para o banco?<BR /><html:textarea name="softwareVO" readonly="true" property="implicacao" rows="4" cols="79"/></TD>
  </TR>
</TABLE>

<TABLE border=0 cellpadding=0 cellspacing=0 width=100%>               
  <TR>
    <TD valign="bottom" align="right">
       <html:button property="" value=" excluir " styleClass="bto1" onclick="submitTo(window.document.softwareForm, '/cadSoftware.do', 'delete', '');" />
       <html:button property="" value=" voltar " styleClass="bto1" onclick="submitTo(window.document.softwareForm, '/cadSoftware.do', 'showAction', '', 'true');" />
    </TD>
  </TR> 
</TABLE>

struts-config.xml

    <action path="/cadSoftware" scope="request" name="softwareForm" type="gpbr.web.blankproject.view.action.cadastros.cadsoftware.SoftwareAction" parameter="metodo">
      <forward name="showCadSoftware" path="showCadSoftware" />
      <forward name="insCadSoftware" path="insCadSoftware" />
      <forward name="detailCadSoftware" path="detailCadSoftware" />
      <forward name="deleteCadSoftware" path="deleteCadSoftware" />
    </action>

e o tiles-defs.xml

	<definition name="showCadSoftware" extends="mainLayout">
    <put name="action" value="/cadSoftware" />
    <put name="titleViewParent" value="Cadastros" />
    <put name="titleViewMain" value="Informações Software" />
		<put name="body" value="/views/software/cadSoftware_show.jsp" />
	</definition>
  <definition name="insCadSoftware" extends="mainLayout">
    <put name="action" value="/cadSoftware" />
    <put name="titleViewParent" value="Cadastros" />
    <put name="titleViewMain" value="Informações Software" />
    <put name="body" value="/views/software/cadSoftware_ins.jsp" />
  </definition>
  <definition name="detailCadSoftware" extends="mainLayout">
    <put name="action" value="/cadSoftware" />
    <!-- put name="ONLOAD" value="javascript:exibirMensagem();" /-->
    <!-- <put name="titulo" value="/cadastros/alcada/includes/i_titulo.jsp" /> -->
    <put name="titleViewParent" value="Cadastros" />
    <put name="titleViewMain" value="Informações Software" />
    <put name="body" value="/views/software/cadSoftware_detail.jsp" />
  </definition>
  <definition name="deleteCadSoftware" extends="mainLayout">
  <put name="action" value="/cadSoftware" />
  <put name="titleViewParent" value="Cadastros" />
  <put name="titleViewMain" value="Informações Software" />
  <put name="body" value="/views/software/cadSoftware_delete.jsp" />
  </definition>

O estranho, é todas as outras chamadas funcionam, menos ela!

Alguma idéia amigos?

[]'s

E aqui está como eu chamo a ‘deleteCadSoftware’

    public ActionForward showDelete(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws GpbrPersistException, WebActionException {
    	try {
    		SoftwareVO softwareVO = (SoftwareVO) getBusinessDelegate().findById(((PersistentObjectGenerate)form).getPersistentObj());
    		request.setAttribute("softwareVO", softwareVO);
    		} catch (GpbrPersistException e) {
    			throw new GpbrPersistException("Erro ao fazer consulta de Software.", e);
    		}
    		return mapping.findForward("deleteCadSoftware");
    }

Amigos,

Já achei o problema. Na página que eu estava chamando o página de delete, o campo id estava ‘disabled’, por isso eu passado um parâmetro nulo para a busca e por isso não conseguia chamar :slight_smile:

Mudei e está funcionando que é uma beleza!!

[]'s

Um ditado de programador…

FAZ CERTO Q FUNCIONA UÉ

=) zuera brincadeiras a parte e parabens por descobrir o erro…

Flws.