Hi Moises,
Just some tips:
When you are declaring your display tag component, you dont need to use
c:set to put your component inside the context. i.e.:
<display:table
name="srvVotingList" <!-- THIS REPRESENTS YOUR DATA LIST ALREADY
SAVED PREVIOUSLY IN REQUEST OR SESSION!!! -->
requestURI="/reqVoting.do?method=listVoting"
uid="voteBean" <!-- THIS REPRESENTS ONE SINGLE INSTANCE INSIDE YOUR
LIST!!! -->
>
After, when you are declaring your columns you can use:
<display:column
title="Voting Name"
property="attrVotingName" <!-- IT MEANS THAT "voteBean" has
DECLARED "getAttrVotingName" TO BE RENDERED!!! -->
/>
So in my example I have got:
public class VotingBean implements Serialziable {
private String attrVotingName;
//... loads of attr??? fields...
public String getAttrVotingName() {return this.attrVotingName;}
//... loads of getters and setters...
}
Try first to clean your code. After I extremelly recomend you reading
some basic usage tutorials. If the problem persists post it here again.
Sorry but I dont have any additional clue what is going on.
Best Regards,
José Renato.
Moises Augusto Martins de souza escreveu:
2007/7/9, José Renato <[EMAIL PROTECTED]>:
Hi Moises,
Place somes code snipets here to help us to identify the problem. How
are you using both together?
Best Regards,
José Renato.
Ok José Renato,
it follows the codes :
body.jsp*Code:
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html" %>
*
<c:set var="lDisc" value="${lista_de_Disciplinas}"/>
<h1><b>:: Disciplinas ::</b></h1>
<display:table pagesize="5" excludedParams="*" name="${lDisc}"
decorator="br.unime.cronow.utils.Decorador" class="dataTable">
<display:column property="nome_Disciplina" title="Nome da
Disciplina" />
<display:column property="carga_Horaria" title="Carga Horária"/>
<display:column property="link" title="Manutenção" />
<display:setProperty name="paging.banner.placement"
value="bottom" />
</display:table>
layout.jsp*Code:*
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"
prefix="tiles" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- **** layout css **** -->
<link rel="stylesheet" type="text/css" href="css/estilo.css" />
<title><tiles:getAsString name="tituloGerente" /> </title>
</head>
<body>
<div id="links_container">
<tiles:insert name="banner" />
</div>
<div id="menu">
<tiles:get name="menus"/>
</div>
<div id="content">
<div id="column1">
<tiles:get name="colunaDireita" />
</div>
<div id="column2">
<tiles:get name="body" />
</div>
</div>
<div id="rodape">
<tiles:get name="rodape" />
</div>
</body>
</hmtl>
tiles.xml*Code:*
<definition name="professorGerente" page="/layout/layoutGerente.jsp" >
<put name="tituloGerente" value="Cronow" />
<put name="banner" value="/layout/banner.jsp"/>
<put name="menus" value="/layout/professor/menuProfessor.jsp" />
<put name="colunaDireita" value="/layout/colunaDireita.jsp" />
<put name="body" value="/layout/professor/bodyProfessor.jsp" />
<put name="rodape" value="/layout/rodape.jsp" />
</definition>
struts-config.xml *Code:*
<action path="/layoutGeral"
scope="request"
type="br.unime.cronow.view.action.Geral_Action"
validate="false"
parameter="metodo">
<forward name="professor" path="professorGerente"/>
<forward name="fail" path="/Erro.jsp"/>
</action>
Tank's
Moisés
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
------------------------------------------------------------------------
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user