Hi Team, I need to develop a export functionality so that i can export the viewed HTML page into word document. I have achieved the same functionality in JSP (below is the code), but unable to develop the same in Tapestry. Can you please help me so that i can develop the same functionality in Tapestry.
-------------------------------------------------------------------- JSP Code -------------------------------------------------------------------- <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!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=ISO-8859-1"> <title>Export to Word - Demo</title> </head> <body> <% String exportToWord; exportToWord = request.getParameter("exportToWord"); if (exportToWord != null && exportToWord.toString().equalsIgnoreCase("YES")) { response.setContentType("application/vnd.ms-word"); response.setHeader("Content-Disposition", "inline; filename=" + "word.doc"); } %> This is the plain text. <p> <i>This is the italic text. </i> <p> <b>This is the bold text. </b> <p> <s>This is the strike text.</s> <p> <font color="green">This is the color text. </font> <p> <a href="#">This is hyperlink. </a> <p> <% if (exportToWord == null) { %> <a href="word.jsp?exportToWord=YES">Export to Word</a> <% } %> </body> </html> ----------------------------------------------------------------- Thanks Siddharth --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org