1 23 package org.infoglue.cms.workflow.taglib; 24 25 import javax.servlet.jsp.JspException ; 26 import javax.servlet.jsp.JspTagException ; 27 28 32 public class SetPropertySetTag extends WorkflowTag 33 { 34 37 private static final long serialVersionUID = -4937344683246274243L; 38 39 42 private String key; 43 44 47 private String value; 48 49 52 public SetPropertySetTag() 53 { 54 super(); 55 } 56 57 63 public int doEndTag() throws JspException 64 { 65 try 66 { 67 getPropertySet().setDataString(key, value); 68 } 69 catch(Exception e) 70 { 71 e.printStackTrace(); 72 throw new JspTagException (e.getMessage()); 73 } 74 return EVAL_PAGE; 75 } 76 77 82 public void setKey(final String key) 83 { 84 this.key = key; 85 } 86 87 92 public void setValue(final String value) 93 { 94 this.value = value; 95 } 96 } 97 | Popular Tags |