Dear All,

finally I found the solution for my struts pdf creation problem,
actually it was a scope matter problem.

I has a request set attribute in the Action Class then I rendered it
in the jsp it was OK, but in the pdf exporting it sows only the
columns and no data;  now I'm using a session attribute which it's
inserted in the request and exporting it contains all the data
creating the pdf file.

<!-- the "display_tag" attribute it generated at action class time -->
<% request.setAttribute("clientes",
request.getSession().getAttribute("display_tag"));%>

thanks for your help.

German Gonzalez



On 10/24/05, German Gonzalez <[EMAIL PROTECTED]> wrote:
> well, still it's not working.
> attached it's the pdf file that my application is creating.
>
> cheers,
>
> German
>
>
>
> On 10/21/05, German Gonzalez <[EMAIL PROTECTED]> wrote:
> > thanks for your help, but still it doesnt show me any data.
> > I'll post the final PDF ASAP, anyway somebody knows something else I may 
> > try?
> >
> >
> > On 10/21/05, Guillaume Drot <[EMAIL PROTECTED]> wrote:
> > > you must add the media parameter to the column tag you want to appear in
> > > your pdf file.
> > >
> > > Example :
> > >
> > >
> > > <display:column media="html pdf" property="cli_rut" title="Rut"/> ==> the 
> > > column appears in html code and in pdf file
> > >
> > > <display:column property="cli_rut" title="Rut"/> ==> the column appears 
> > > only in html code
> > >
> > >
> > > German Gonzalez wrote:
> > >
> > > >Dear All,
> > > >
> > > >I have a question about exporting the table generated by displaytag to
> > > >PDF Format.
> > > >
> > > >
> > > >In my class I created a List in the request:
> > > >
> > > >List lista_cliente = null;
> > > >ClienteDAO cliente_dao = new ClienteDAO();
> > > >Cliente clienteDTO = new Cliente();
> > > >PropertyUtils.setProperty(clienteDTO, "cli_rut", new Integer(0) );
> > > >lista_cliente = cliente_dao.viewCliente( clienteDTO );
> > > >request.setAttribute("clientes", lista_cliente);
> > > >
> > > >
> > > >and I have in the jsp:
> > > >
> > > ><display:table name="clientes" export="true" id="currentRowObject">
> > > >  <display:column property="cli_rut" title="Rut"/>
> > > >  <display:column property="cli_nombres"  title="Nombres" />
> > > >  <display:column property="cli_apellidos"  title="Apellidos" />
> > > >  <display:column property="cli_telefono"  title="Telefono" />
> > > >  <display:column property="cli_email"  title="Email"  autolink="true"/>
> > > >  <display:setProperty name="export.pdf" value="true" />
> > > ></display:table>
> > > >
> > > >well, the displaytag is display ok in the jsp (I mean the final html
> > > >it shows all the element form the clientes attribute, but when I try
> > > >to export to any format (excel, pdf, etc.) only it shows me the titles
> > > >of the table with no data on it at all.
> > > >
> > > >anyone knows what I'm doing wrong?
> > > >
> > > >thanks fory your help.
> > > >
> > > >
> > > >German Gonzalez
> > > >
> > > >
> > > >-------------------------------------------------------
> > > >This SF.Net email is sponsored by:
> > > >Power Architecture Resource Center: Free content, downloads, discussions,
> > > >and more. http://solutions.newsforge.com/ibmarch.tmpl
> > > >_______________________________________________
> > > >displaytag-user mailing list
> > > >[email protected]
> > > >https://lists.sourceforge.net/lists/listinfo/displaytag-user
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by:
> > > Power Architecture Resource Center: Free content, downloads, discussions,
> > > and more. http://solutions.newsforge.com/ibmarch.tmpl
> > > _______________________________________________
> > > displaytag-user mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/displaytag-user
> > >
> >
> >
> > --
> > Atte.
> >
> > German Gonzalez
> >
>
>
> --
> Atte.
>
> German Gonzalez
>
>
>


--
Atte.

German Gonzalez


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to