aspose file tools*
The moose likes JSP and the fly likes about display tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "about display tag" Watch "about display tag" New topic
Author

about display tag

happybaobao happybaobao
Greenhorn

Joined: Sep 29, 2005
Posts: 2
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

Joined: Jan 10, 2002
Posts: 61437
    
  67

"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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
happybaobao happybaobao
Greenhorn

Joined: Sep 29, 2005
Posts: 2
[Bear edit: re-post of original topic removed]
[ October 03, 2005: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

"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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about display tag