When I try without the reference to struts-tags I get this error-message: [ WARN] 15:12:36 Can't generate HTML subscription mail; nested exception is freemarker.core.InvalidReferenceException: Expression s is undefined on line 1, column 12 in mail-html.ftl. [] at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.doLog(Ex ceptionMappingInterceptor.java:230) org.springframework.mail.MailPreparationException: Can't generate HTML subscription mail; nested exception is freemarker.core.InvalidReferenceException: Expression s is undefined on line 121, column 88 in mail-html.ftl. Caused by: Expression s is undefined on line 1, column 12 in mail-html.ftl. The problematic instruction: ---------- ==> user-directive s.url [on line 1, column 10 in mail-html.ftl]
Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: Expression s is undefined on line 1, column 12 in mail-html.ftl at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java: 134) My code: <a href="<@s.url action="frontpage" namespace="/myprofile/frontpage"/>">Frontpage</a> Thank you so much in advance for you assistance! ALM -----Opprinnelig melding----- Fra: Dave Newton [mailto:[EMAIL PROTECTED] Sendt: 11. oktober 2007 15:41 Til: Struts Users Mailing List Emne: Re: Trouble with using struts tags in freemarker files --- [EMAIL PROTECTED] wrote: > My problem is that I don't know what's the correct > way to reference the struts taglib. > > My code: > > <#assign s=JspTaglibs["/META-INF/struts-tags.tld"]> I'm not sure if you need to define a reference to the struts-tags to use them; have you tried it without it? (Although I'm not sure why that wouldn't work.) d. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]