Template t = tempFactProv.get("admin/EditPageForm.html").createTemplate();
t.setProperty("myGeneratedCode ", getHTMLCode());
t.printTo(resp.getWriter());
but the HTML code I've generated is converted to < etc. which has
been pretty useful in other places, but here I need to just send the
code directly. How can I do this?
Erdinc Yilmazel
unread,
Jul 11, 2012, 12:04:41 PM7/11/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cambridge...@googlegroups.com
Hi Mat,
Use %{myGeneratedCode} instead of ${myGeneratedCode}
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cambridge...@googlegroups.com
It looks safe to me.
Jon Stevens
unread,
Jul 12, 2012, 12:22:26 PM7/12/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cambridge...@googlegroups.com
That is safe, but sane, I don't know. ;-) I try to keep that sort of html out of Java. I've found that spending a lot of effort to write java code to do tools like that is just a bad idea. What happens when you want to generate the form on the client side using something like handlebars? Or... what happens when you want your UX designer to work on the templates and they don't know anything about java?
jon
Mat Jaggard
unread,
Jul 12, 2012, 2:10:17 PM7/12/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cambridge...@googlegroups.com
Yeah, that's fair point. I'm doing a bit of a hack here I know.