|
|
|
@ -24,7 +24,8 @@ public class siprpServlet extends HttpServlet
|
|
|
|
public static final String msgLogin = "Login";
|
|
|
|
public static final String msgLogin = "Login";
|
|
|
|
public static final String msgNovaPasswordErrada="Erro ao criar a nova password, nova password inv\u00E1lida";
|
|
|
|
public static final String msgNovaPasswordErrada="Erro ao criar a nova password, nova password inv\u00E1lida";
|
|
|
|
public static final String msgButtonNotSuported = "funcionalidade ainda n\u00E3o suportada" ;
|
|
|
|
public static final String msgButtonNotSuported = "funcionalidade ainda n\u00E3o suportada" ;
|
|
|
|
public static final String msgSessionTimeout = "Sess\u00E3o expirou, por favor fa\u00E7a login de novo";
|
|
|
|
public static final String msgSessionTimeout = "ERRO Por razões de segurança o tempo da sua sessão expirou<br>"
|
|
|
|
|
|
|
|
+ "Por favor efectue novamente o seu login.<br>";
|
|
|
|
|
|
|
|
|
|
|
|
// Templates - Nomes e valores
|
|
|
|
// Templates - Nomes e valores
|
|
|
|
//public static final String loginTemplate = "login.html";
|
|
|
|
//public static final String loginTemplate = "login.html";
|
|
|
|
@ -275,7 +276,6 @@ System.out.println( "DIR: " + TEMPLATE_DIR );
|
|
|
|
|
|
|
|
|
|
|
|
public String mergeTemplate (String msg, String template ) // #1
|
|
|
|
public String mergeTemplate (String msg, String template ) // #1
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
VelocityContext context = new VelocityContext();
|
|
|
|
VelocityContext context = new VelocityContext();
|
|
|
|
StringWriter output = new StringWriter();
|
|
|
|
StringWriter output = new StringWriter();
|
|
|
|
|
|
|
|
|
|
|
|
|