Re: File Not Found Exception
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Friday, February 6, 2009, 4:42:00 AM, Archana D Patange wrote:
> Hi all,
>
> I'm newbie to FreeMarker, I've created a template but it is
> throwing FileNotFoundException. Can anyone please let me know
> whether my template is syntatically correct as I want to confirm. Below is the template
>
> [#ftl]
> <MODULE>
> <HEADER>
> <LABEL>
> <IMAGE HREF="${doc.Module.header.label.image.href}"></IMAGE>
> ${doc.Module.header.label.label}
> </LABEL>
> </HEADER>
> <#list doc.Module.containers as x>
> <CONTAINER type="${x.Container.type}">
> <FORM HREF="${x.Container.formDO.href}"
> SUBMIT_TEXT="${x.Container.formDO.submit_text}">
> <FIELD TYPE="${x.Container.formDO.field.type}"
> NAME="${x.Container.formDO.field.name}"></FIELD>
> </FORM>
> </CONTAINER>
> </#list>
> </MODULE>
At the first glance the template itself looks correct. But if it
weren't, you sill shouldn't get a FileNotFoundException, but a
ParseException. Furthermore the error message would describe where and
what syntactical error you did. So most certainly the problem is that
the template file itself is not found, not that its content is wrong.
> This email message and its attachments may contain CONFIDENTIAL AND
> PRIVILEGED INFORMATION intended for the sole use of the
> addressee(s). If you have received it in error, please contact the
> sender by return email, notify your system manager and destroy the
> original message and any copies thereof. Any review, use, disclosure
> or distribution is unlawful. Please check this email and any
> attachments for the presence of viruses. The Company accepts no
> liability for any damage caused by any virus transmitted by this
> email. The views or opinions presented in this e-mail are solely
> those of the author and do not necessarily represent those of the company.
> The Company reserves the right to monitor, review and store the
> content of all messages sent to or from this e-mail address.
>
> www.aztecsoft.com
--
Best regards,
Daniel Dekany
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com