<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=124580320-19102005><FONT face=Arial size=2>I am trying to
modify the fields available in emailform type. I have made a copy of the module
templateone.form and I can now edit my version called form_builder, which means
my XSD file is correct. I cannot view the file in a browser by clicking on it. I
get the following errors:</FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2></FONT></SPAN> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2>When I click on the file I get:</FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2>Unable to compile class for JSP</FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2>An error occurred at line: 6 in the jsp file
/WEB-INF/jsp/offline.system/m,odules/com.purplemonkey.harvest.form/pages/form.html.jsp</FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2>Generated servlet error:<BR>CmsFormHandler cannot be resolved
or is not a type</FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2></FONT></SPAN> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2></FONT></SPAN> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2>Here is the contents of form.html in the pages
folder:<BR><<A href="mailto:%@page">%@page</A> buffer="none" session="false"
%><BR><<A href="mailto:%@page">%@page</A> import="org.opencms.i18n.*"
%><BR><<A href="mailto:%@page">%@page</A>
import="com.purplemonkey.harvest.form.*" %><BR><<A
href="mailto:%@page">%@page</A> import="java.util.*" %></FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2><%<BR>// initialize the form handler<BR>CmsFormHandler cms
= new CmsFormHandler(pageContext, request, response);</FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2>// get the localized messages to create the
form<BR>CmsMessages messages = cms.getMessages();</FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2>// get the template to display<BR>String template =
cms.property("template", "search",
"/system/modules/com.purplemonkey.harvest/templates/popup");</FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2>// include the template head<BR>cms.include(template,
"head");<BR>out.println("<div class=\"element\">");</FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2>boolean showForm = cms.showForm();</FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2>if (! showForm) {<BR> // form has been submitted with
correct values, decide further actions<BR> if (cms.showCheck())
{<BR> // show optional check
page<BR> request.setAttribute("formhandler",
cms);<BR> cms.include("../elements/check.jsp");<BR> } else
{<BR> // try to send a notification email with the submitted form
field values<BR> if (cms.sendMail()) {<BR> //
successfully sent mail, show confirmation end
page<BR> request.setAttribute("formhandler",
cms);<BR> cms.include("../elements/confirmation.jsp");<BR> }
else {<BR> // failure sending mail, show error output
%><BR> <h2><%=
messages.key("form.error.mail.headline")
%></h2><BR> <p><%=
messages.key("form.error.mail.text") %></p></FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2> <!--<BR> Error
description: <%= (String)cms.getErrors().get("sendmail")
%><BR> //--><BR><%<BR> }<BR> }<BR> <BR>}
else {</FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2> // get the configured form elements<BR> CmsForm
formConfiguration = cms.getFormConfiguration();<BR> List fields =
formConfiguration.getFields();<BR> <BR> // show form
text<BR> out.print(formConfiguration.getFormText());<BR> <BR> //
show global error message if validation failed<BR> if
(cms.hasValidationErrors())
{<BR> out.print("<p>");<BR> out.print(messages.key("form.html.label.error.start"));<BR> out.print(messages.key("form.error.message"));<BR> out.print(messages.key("form.html.label.error.start"));<BR> out.println("</p>");<BR> }</FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><SPAN class=124580320-19102005><FONT
face=Arial size=2> // create the form head <BR> %> <form
name="emailform" action="<%= cms.link(cms.getRequestContext().getUri())
%>" method="post" style="margin-top: 14px; margin-bottom: 0; padding:
0;"><BR> <input type="hidden" name="<%=
CmsFormHandler.PARAM_FORMACTION %>" value="<%=
CmsFormHandler.ACTION_SUBMIT %>"><BR> <%=
messages.key("form.html.start") %><%=
formConfiguration.getFormAttributes() %>></FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"> </DIV><SPAN
class=124580320-19102005><FONT face=Arial size=2>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><BR> <%<BR>// create the
form foot <BR> if (formConfiguration.hasMandatoryFields())
{<BR> %><%= messages.key("form.html.row.start")
%><BR> <%= messages.key("form.html.button.start")
%><%= messages.key("form.message.mandatory") %><%=
messages.key("form.html.button.end") %><BR> <%=
messages.key("form.html.row.end")
%><BR> <%<BR> }<BR> // create the html output to
display the form fields<BR> Iterator i =
fields.iterator(); <BR> while (i.hasNext())
{<BR> <BR> // loop through all form input fields
<BR> CmsField field = (CmsField)i.next();<BR> String
fieldType = field.getType(); <BR> String fieldLabel =
field.getLabel(); <BR> // get the error message and mandatory
marker for the current field<BR> String errorMessage =
(String)cms.getErrors().get(field.getName());<BR> String mandatory =
"";<BR> if (errorMessage != null) {<BR> // create
the error message for the field<BR> if
(CmsFormHandler.ERROR_MANDATORY.equals(errorMessage))
{<BR> errorMessage =
messages.key("form.error.mandatory");<BR> } else
{<BR> errorMessage =
messages.key("form.error.validation");<BR> }<BR> errorMessage
= messages.key("form.html.error.start") + errorMessage +
messages.key("form.html.error.end");<BR> fieldLabel =
messages.key("form.html.label.error.start") + fieldLabel +
messages.key("form.html.label.error.end");<BR> } else
{<BR> errorMessage = "";<BR> }<BR> if
(field.isMandatory()) {<BR> mandatory =
messages.key("form.html.mandatory");<BR> }<BR> <BR> //
generate the input field<BR> %><%@ include
file="../jsptemplates/inputfields.txt"
%><%<BR> }<BR> <BR> <BR> %><%=
messages.key("form.html.row.start") %><BR> <td
class="buttons" colspan="2"><input type="submit" value="<%=
messages.key("form.button.submit") %>"
class="formbutton"> <input
type="reset" value="<%= messages.key("form.button.reset") %>"
class="formbutton"></td><BR> <%=
messages.key("form.html.row.end") %><BR> <%=
messages.key("form.html.end")
%><BR> </form><%<BR> <BR>}</DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px">out.println("</div>");<BR>//
include the template foot<BR>cms.include(template,
"foot");<BR> <BR>%><BR></FONT></SPAN></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Arial
size=2></FONT> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Arial
size=2></FONT> </DIV><!-- Converted from text/rtf format -->
<P dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Verdana size=2>--</FONT>
<BR><FONT face=Verdana size=2>Michael Rollberg, Jr.</FONT> <BR><FONT
face=Verdana size=2>Senior Programmer</FONT> <BR><B><FONT face=Verdana
color=#800080 size=2>Purple Monkey Studios, Inc.</FONT></B> <BR><FONT
face=Verdana size=2>T: 708 386 3086</FONT> <BR><FONT face=Verdana size=2>F: 708
386 7589</FONT> <BR><FONT face=Verdana size=2>mike@purplemonkey.com</FONT>
<BR><FONT face=Verdana size=2>www.purplemonkey.com</FONT> </P>
<P dir=ltr style="MARGIN-RIGHT: 0px"><I><FONT face=Verdana color=#800080
size=2>Interactive media. We get creative; you get results.</FONT></I> </P>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"> </DIV></BODY></HTML>