Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.frb.kc.assp.util;
- import javax.servlet.jsp.JspException;
- import javax.servlet.jsp.JspWriter;
- import javax.servlet.jsp.PageContext;
- import javax.servlet.jsp.tagext.Tag;
- import javax.servlet.jsp.tagext.TagSupport;
- public class TiffTestTag extends TagSupport {
- private static final long serialVersionUID = 4933359213494071699L;
- private File pdf;
- public int doEndTag() throws JspException {
- JspWriter out = pageContext.getOut();
- try
- {
- FileGeneratorUtilities fileGenUtil = new FileGeneratorUtilities();
- fileGenUtil.convertPdfToTif(getPdf, out);
- }
- catch(Exception e)
- {
- out.print(e);//Do not keep this here, it will print the error on the page if one exists, was just for ease of seeing
- }
- return 0;
- }
- public File getPdf(){
- return pdf;
- }
- public void setPdf(File pdf){
- this.pdf = pdf;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement