[opencms-dev] something wierd with forms and jsp
Aleksandra
aleksandra84 at mail.net.mk
Wed Aug 24 22:58:16 CEST 2005
Now my problem is that
method in CmsJspActionElement getParameter() it is not
working.
Does maybe OpenCms is deleting information from the forms .
take a look of my jsp
<%@ page import="org.OpenCms.mail.CmsSimpleMail" %>
<%@ page import="org.OpenCms.jsp.CmsJspBean" %>
<%@ page import="org.OpenCms.jsp.*" %>
<%@ page import="org.OpenCms.file.*" %>
<%@ page import="javax.mail.*" %>
<%@ page pageEncoding="UTF-8" %><%@ page session="false" %>
<%@ taglib prefix="cms"
uri="http://www.OpenCms.org/taglib/cms" %>
String to = "aleksandra at eteg.com.br";
String email = request.getParameter("email");
....
sm.setMsg("email :" + email +"\n" + "nome :"+nome+"\n" +
"mensagem :"+mensagem);
sm.addTo(to);
sm.setFrom("***");
sm.setSubject(assunto);
if (request.getParameter("email")!=null &
request.getParameter("mensagem")!=null){
sm.send();
out.println("<td class=\"content_title\" valign=\"top\">Sua
mensagem foi enviada!</td>");
}
else out.println(new java.util.Date());
...
i mean why it does not want to take anything from the form
=========================================================
Zastedi 70% na razgovorite so stranstvo.
15 denari minuta za bilo koja zemja vo svetot.
http://www.ozone.net.mk
info telefon (02)3100.800 24h na den
=========================================================
More information about the opencms-dev
mailing list