• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about display tag

 
happybaobao happybaobao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

when I wrote in the jsp:

<%@taglib uri="http://displaytag.sf.net" prefix="display"%>
<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen, print"/>

<display:table requestURI="manageContact.do?task=List" pagesize="20" class="isis" name="contacts" id="contact" export="true" >
<display:column title="Name">${contact.lastName},${contact.firstName}</display:column>
<display:column property="title"/>
<display:column property="gender"/>
<display:column property="phoneNumber"/>
<display:column property="email" autolink="true"/>
<display:column property="country.phonePrefix" title="Country"/>
<display:column property="birthdate"/>
<display:setProperty name="export.pdf" value="true" />
</display:table>

There are Export | CSV | EXCL |xmL for users to export the table.

But when I click the CSV, there are nothing to do, I mean there is not pop out another window to download it , just display the source view.

I added the filter in the web.xml

<filter>
<filter-name>ResponseOverrideFilter</filter-name>
<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>

And there is a very strange thing: ifi added :

<taglib>
<taglib-uri>http://displaytag.sf.net</taglib-uri>
<taglib-location>/WEB-INF/displaytag-12.tld</taglib-location>
</taglib>

When i clicked the CSV, there is something wrong: can not find the /WEB-INF/displaytag-12.tld. However, i have that in my project.

Maybe I have missed something important.


How can I do that?

thanks all,

happybaobao
[ September 29, 2005: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"happybaobao happybaobao",

There aren't may rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
happybaobao happybaobao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Bear edit: re-post of original topic removed]
[ October 03, 2005: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"happybaobao happybaobao",

My request that you change your display name to conform to JavaRanch standards was not a suggestion. Accounts with invalid display names are removed.

Please follow the instructions in my previous post to change your display name before your next post.

bear
Forum bartender
[ October 03, 2005: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic