[Yanel-dev] Forms and Annotations and Boost

Michael Wechner michael.wechner at wyona.com
Wed Feb 23 14:01:35 CET 2011


Hi

I have added now also a tag to the contact form

svn diff 
src/contributions/resources/contact-form/src/java/org/wyona/yanel/impl/resources/contactform/ContactResource.java 

Index: 
src/contributions/resources/contact-form/src/java/org/wyona/yanel/impl/resources/contactform/ContactResource.java
===================================================================
--- 
src/contributions/resources/contact-form/src/java/org/wyona/yanel/impl/resources/contactform/ContactResource.java   
  (revision 56917)
+++ 
src/contributions/resources/contact-form/src/java/org/wyona/yanel/impl/resources/contactform/ContactResource.java   
  (working copy)
@@ -117,8 +117,11 @@
                      throw new Exception("there is no spamblock 
implemented in the form.");
                  }
                  if 
(request.getParameter("spamblock_hidden").equals("TRyAg41n") && 
request.getParameter("spamblock_input").equals("8989890")) {
+                    // TODO: Maybe add contact subject, etc. to tags?!
+                    String[] tags = new String[1];
+                    tags[0] = "Contact";
                      logAccess.info(
-                        
org.wyona.yanel.servlet.AccessLog.getLogMessage(request, 
getRealm().getID()) +
+                        
org.wyona.yanel.servlet.AccessLog.getLogMessage(request, 
getRealm().getID(), tags) +
                          
org.wyona.yanel.servlet.AccessLog.encodeLogField("e-mail", 
request.getParameter("email")));
                      javax.servlet.http.Cookie cookie = 
org.wyona.yanel.servlet.AccessLog.getYanelAnalyticsCookie(request);
                      String cookieValue = null;

but thinking some more about it, it's not clear to me if we should also 
add the rest of the contact information
to the tags.

WDYT?

Thanks

Michael


More information about the Yanel-development mailing list