[opencms-dev] Problem including an XML form generated by "OAMP webform" in JSP files

Bozidar Ilievski bozidar.ilievski at netcetera.com.mk
Wed Mar 12 20:48:15 CET 2008


Hi.

Why do you need to include this XML file into your JSP page?

If you only need to display the form,
there is already a JSP file that ships with the module,
and is specially designed for displaying Webforms.

You can find this file in this folder:
/system/modules/com.alkacon.opencms.formgenerator/pages/form.jsp

Regards,
Bobi.

Territorio Jordan-V. wrote:
> Hi
> 
> I have created a form using formgenerator module. here is the code 
> generated :
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <AlkaconWebForms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <http://www.w3.org/2001/XMLSchema-instance%22> xsi:noNamespaceSchemaLocation="opencms://system/modules/com.alkacon.opencms.formgenerator/schemas/form.xsd">
> 
> 
>   <AlkaconWebForm language="en">
>     <MailFrom/>
>     <MailTo/>
>     <MailSubject/>
>     <MailText name="MailText0">
>       <links/>
>       <content><![CDATA[<p><b>Mail Text</b></p>
> 
> 
> <p>ldqsfvbgmlsqdbfvuvbzsvbmseuvbpzeuvbpzubzmeujbzev zeujv zep zm zuj zpmr zru rziu zrpmu zpmru zrpmubpzutb mrztb rzoub zrpub zmjtb ztptub zpmb mprzubt zutb mzjubt mqj bcvfb zteub ztujb pmtoubnzmb mtb mtubzpmb rzmtjb mrzubt t'zmob:ztkb zpmutnbâhgnjhg majngàâ"(n"ja( h'zmounb '-h z'mj hbmozunhzsmhn</p>]]></content>
> 
> 
>     </MailText>
>     <FormText name="FormText0">
>       <links/>
>       <content><![CDATA[<p><b>Form Text</b></p>
> <p>ldqsfvbgmlsqdbfvuvbzsvbmseuvbpzeuvbpzubzmeujbzev zeujv zep zm zuj zpmr zru rziu zrpmu zpmru zrpmubpzutb mrztb rzoub zrpub zmjtb ztptub zpmb mprzubt zutb mzjubt mqj bcvfb zteub ztujb pmtoubnzmb mtb mtubzpmb rzmtjb mrzubt t'zmob:ztkb zpmutnbâhgnjhg majngàâ"(n"ja( h'zmounb '-h z'mj hbmozunhzsmhn</p>]]></content>
> 
> 
>     </FormText>
>     <FormFooterText name="FormFooterText0">
>       <links/>
>       <content><![CDATA[<p>Be sure you correctly named it...</p>]]></content>
> 
> 
>     </FormFooterText>
>     <InputField>
>       <FieldType><![CDATA[text]]></FieldType>
>       <FieldLabel><![CDATA[Name your color]]></FieldLabel>
>       <FieldMandatory>true</FieldMandatory>
> 
> 
>       <FieldValidation><![CDATA[[a-z]+]]></FieldValidation>
>       <FieldErrorMessage><![CDATA[I said name it, stupid geek !!]]></FieldErrorMessage>
>     </InputField>
> 
>     <FormConfirmation name="FormConfirmation0">
> 
>       <links/>
>       <content/>
>     </FormConfirmation>
>   </AlkaconWebForm>
> </AlkaconWebForms>
> 
> 
> 
> But the is a problem when i try to include in a JSP file.
> This is what i try to use these commands in my JSP file but i 
> encountered problems :
> 
> <%@ include file="coucou.html" %> works but display has problem. The 
> only things that appear on screen are texts. Box and TextArea are not 
> displaying and i don't know why. Even the label are not diplaying. I can 
> only see <p></p> balises.
> 
> <jsp:include page="coucou.html" flush="true" /> nullpointer exception
> <cms:include file="coucou.html" element="body" /> sometimes work with 
> diplay problems somentimes don't work
> 
> <cms:contentload collector="singleFile" param="coucou.html" /> Problem :
> javax.servlet.jsp.JspException: Error reading resource from path 
> "/coucou.html".
> 
> Is there someone to help me?
> 
> thank you
> 
> -- 
> TERRITORIO Jordan-Victor
> Projet Asterisk - Ingénieur d'Intégration
> TEAMLOG – Ingenieurs 2000
> 
> 
> ------------------------------------------------------------------------
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev

-- 
Bozidar Ilievski | bozidar.ilievski at netcetera.com.mk
phone +389 -2- 30 64 532 | fax +389 -2- 30 79 495
Netcetera | 1000 Skopje | Macedonia | http://netcetera.com.mk



More information about the opencms-dev mailing list