<%@ page import="ejb.*" %> <%@ page import="util.*" %> <%@ page import="xml.*" %> <% String senderName = TextProcessor.normStr(request.getParameter("senderName")); String senderEmail = TextProcessor.normStr(request.getParameter("senderEmail")); String text = TextProcessor.normStr(request.getParameter("text")); String action = "sendMessage"; String error = null; boolean isMessageSent = false; if (action.equals(request.getParameter("action"))) { TellFriendCtrl ctrl = EJBGetter.getTellFriendCtrlHome().create(); try { ctrl.sendMessage(request); isMessageSent = true; } catch (ControlException ex) { error = ex.getMessage(); } finally { ctrl.remove(); } } %> <% String ct = "Tell A Friend"; %> <%@ include file="header.jsp" %> <% if (isMessageSent) { %>

Your message has been successfully sent!

<% } else { %>

Tell a friend about AI Agent

Know a co-worker who may require AI Agent Application for solving some business tasks? Have a friend or relative who may be interested in playing and working with smart agents? Take this opportunity to tell them about it:
<% if (error != null) { %> <% } %>
Error: <%=error%>

Your Name:
Your E-mail:
Friend Name:
Friend E-mail:
Your comments:
For security reasons, your IP Address (<%=request.getRemoteAddr()%>) will be logged.

<% } %> <%@ include file="footer.jsp" %>