•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 456,234 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,762 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 625 | Replies: 2
![]() |
•
•
Join Date: Aug 2007
Posts: 40
Reputation:
Rep Power: 2
Solved Threads: 0
Hi, I'm basically just trying to submit this whole page into an email when I press submit at the bottoM...any suggestions?
<%@ page language="java" %>
<%@ page import="trader.webservices.util.Utils" %>
<%@ page import="trader.webservices.data.UserInfoDAO" %>
<%@ page import="trader.webservices.data.UserDataVO" %>
<%@ page import="java.util.*" %>
<%@ page import="java.text.*" %>
<%
String theAcctName = UserInfoDAO.getAcctFromAgentId(request.getParameter("agentId"));
String username = theAcctName;
UserDataVO userData = null;
userData = UserInfoDAO.getUserInfo(username);
Date date = new Date();
SimpleDateFormat sdf;
sdf = new SimpleDateFormat("E, MMM. dd, yyyy");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Home Seller proof template 1</title>
</head>
<body>
Use this page to proof reports before you send them. Email or printed reports will appear exactly as they do in the box below.<BR><BR>
<table width="675" border="0" cellspacing="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0">
<tr>
<td width="13%" align="center" valign="middle" rowspan="2"><IMG SRC="http://cdn-317.homes.com/c1/cgi-bin/readimage/173533317" WIDTH="90" HEIGHT="67" BORDER="0"></td>
<td width="41%" rowspan="2" align=center>
<p><font face="Arial,Helvetica,Sans-Serif" size="4"><b><%=userData.getName()%></b><br>
<font size="2"><%=userData.getStreet()%> <br>
<%=userData.getCity()%>, <%=userData.getState()%> <%=userData.getZip()%><br>
<%=Utils.splitPhone(userData.getPhone(),1) + "-" + Utils.splitPhone(userData.getPhone(),2) + "-" + Utils.splitPhone(userData.getPhone(),3)%><br>
<A HREF="<%=userData.getEmail()%>"></A></font><%=userData.getEmail()%></font><br>
<a href="http://<%=userData.getAcctName()%>" target="_new"></A></font><%=userData.getAcctName()%></font></p>
</td>
<td width="45%" align="center" valign="middle"><IMG SRC="http://cdn-798.homes.com/c1/cgi-bin/getimage/06912798" BORDER="0" HEIGHT="65"></td>
</tr>
<tr>
<td width="45%" align="center" valign="middle"><font face="Arial,Helvetica,Sans-Serif" size="2"> <b>Virtual Office - Southern BrokerDemo</b><br>
333 main street <br>
Your Hometown, FL 33333</font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0">
<tr>
<td width="3%" align="left" valign="top"> </td>
<td width="56%" align="left" valign="top"><font face="Arial,Helvetica,Sans-Serif" size="2"><br>
<br>
<%=request.getParameter("location")%></font></td>
<td align="center" valign="middle" width="45%"><font face="Arial,Helvetica,Sans-Serif" size=2><%=sdf.format(date)%>"</font></td>
</tr>
<tr>
<td width="3%" align="left" valign="middle">
<p> </p>
</td>
<td width="56%" align="left" valign="middle">
<p><font face="Arial,Helvetica,Sans-Serif" size="2">Dear
,<%=request.getParameter("homeseller")%><br>
<br>
In the month of October 2007 I received the<br>
following information requests in regards to:</font></p>
<p><font face="Arial,Helvetica,Sans-Serif" size="4"><%=request.getParameter("location")%></font></p>
</td>
<td width="45%" align="center" valign="middle"><IMG SRC="http://cdn-080.homes.com/c1/cgi-bin/readimage/218559080" BORDER="0" WIDTH="240" HEIGHT="180"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" height="130">
<tr>
<td align="left" valign="middle" width="20%"><font face="Arial,Helvetica,Sans-Serif" size="4">Received<br>
<br>
</font></td>
<td align="left" valign="top" width="80%" colspan=2><font face="Arial,Helvetica,Sans-Serif" size="2"><br>
<ul>
<li><b>inquiries:</b><%=request.getParameter("inquiries")%></li><br>
<li><b>advertising calls:</b><%=request.getParameter("ad_calls")%></li><br>
<li><b>sign calls:</b><%=request.getParameter("sign_calls")%></li>
<li><b>other agent calls:</b><%=request.getParameter("other_agent_calls")%></li><br>
<li><b>Web Visits:</b><%=request.getParameter("web_visits")%></li>
<li><b>Web Inquiries:</b><%=request.getParameter("web_inquiries")%></li>
<li><b>Was Shown/Previewed:</b><%=request.getParameter("web_inquiries")%></li>
</ul>
</font></td>
</tr>
</table><br>
<table width="100%" border="2" cellspacing="2" cellpadding="6">
<tr>
<td width="50%" align="left" valign="top" height="64"><b><font face="Arial,Helvetica,Sans-Serif" size="2">Comments
from Other Buyers/Agents:<br>
<br>
</font></b><font face="Arial,Helvetica,Sans-Serif" size="2"><%=request.getParameter("bcomments")%></font><b></td>
<td width="50%" align="left" valign="top" height="64"><b><font face="Arial,Helvetica,Sans-Serif" size="2">Suggestions:<br>
<br>
</font></b><font face="Arial,Helvetica,Sans-Serif" size="2"><%=request.getParameter("suggestions")%></font></td>
</tr>
<tr>
<td width="50%" align="left" valign="top" height="50%"><b><font face="Arial,Helvetica,Sans-Serif" size="2">Overall
Comments:<br>
<br>
</font></b><font face="Arial,Helvetica,Sans-Serif" size="2"><%=request.getParameter("overall")%></font></td>
<td width="50%" valign="top" height="50%"><b><font face="Arial,Helvetica,Sans-Serif" size="2">Activities
Planned:<br>
<br>
</font></b><font face="Arial,Helvetica,Sans-Serif" size="2"><%=request.getParameter("activities")%></font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0">
<tr>
<td align="left" valign="middle"><font face="Arial,Helvetica,Sans-Serif" size="2"><br>
If you have any questions regarding the information presented in this report, or would like to discuss the status of your property in general, please call or send me an email. I look forward to hearing from you and thank you again for your patronage.<br>
</font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0">
<tr>
<td align="left" valign="middle">
<font face="Arial,Helvetica,Sans-Serif" size=2><p><br>
Sincerely,<br>
<i><%=userData.getName()%><br>
<A HREF="<%=userData.getEmail()%>"></A></font><%=userData.getEmail()%></A><br>
</i></p></font>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0">
<tr>
<td align="center" valign="middle"><font face="Arial,Helvetica,Sans-Serif" size="1">All information contained within believed to be accurate, but not guaranteed</font></td>
</tr>
</table>
</td>
</tr>
</table>
<CENTER><TABLE><TR><TD ALIGN="CENTER">
<INPUT TYPE="SUBMIT" NAME="finish" VALUE="EMAIL"> To: <INPUT TYPE="TEXT" NAME="emailTo" VALUE="">
</TD></TR><TR><TD ALIGN="CENTER">
<INPUT TYPE="SUBMIT" NAME="finish" VALUE="PRINT TO SCREEN">
</TD></TR></TABLE></CENTER>
</TD></TR></TABLE>
</TD></TR></TABLE>
</TD></TR></TABLE>
</TD></TR></TABLE>
</TD></TR></TABLE>
</body>
</html>
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,626
Reputation:
Rep Power: 12
Solved Threads: 311
Simple functonality provided by HTML
example from w3scools.com
example from w3scools.com
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, JAVAWUG (Java Web User Group), Coding the Architecture
Publilius Syrus
(~100 BC)
LJC - London Java Community, JAVAWUG (Java Web User Group), Coding the Architecture
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- CDOSYS Form to Email Formatting (ASP)
- Autoresponder when submit form (PHP)
- Is it possible to submit form values using JavaScript? How? (JavaScript / DHTML / AJAX)
- Simple Email Form (PHP)
- Please help with email form script (PHP)
- dreamweaver, PHP and submit form query (PHP)
- form-to-email in Dreamweaver (Community Introductions)
Other Threads in the JSP Forum
- Previous Thread: Java Hosting
- Next Thread: How to Pass data from JSP page to action class



Linear Mode