1 package org.apache.turbine.modules.actions; 2 3 56 57 import org.apache.turbine.Turbine; 58 import org.apache.turbine.RunData; 59 60 82 public class TemplateSecureSessionValidator 83 extends TemplateSessionValidator 84 { 85 96 public void doPerform( RunData data ) 97 throws Exception 98 { 99 data.populate(); 101 102 if ( (data.getUser() == null) || (! data.getUser().hasLoggedIn()) ) 104 { 105 if (data.getMessage() == null) 108 { 109 data.setMessage(Turbine.getConfiguration().getString( 110 Turbine.LOGIN_MESSAGE)); 111 } 112 113 data.setTarget(Turbine.getConfiguration() 115 .getString(Turbine.TEMPLATE_LOGIN)); 116 117 data.setAction(null); 120 } 121 122 if (!data.hasTarget()) 124 { 125 setTarget(data); 126 } 127 else if (data.getParameters().containsKey(COUNTER)) 132 { 133 processCounter(data); 134 } 135 } 136 } 137 | Popular Tags |