I am transporting over a web framework action over to a session bean to use in 
Seam.   The webframework action transformed either a Velocity template or a 
XSLT into an email that I can send out.   Now that my service is on the session 
bean instead of a web framework action, how do I get a velocity template or 
XSLT template into the session bean for transformation.  Before as a web action 
I used to do something like this:

 Properties properties = new Properties();
 String realPath = servletContext.getRealPath("WEB-INF");
 properties.put("file.resource.loader.path", realPath);
 Velocity.init(properties);

This would retrieve all the velocity templates from the WEB-INF directory.  Now 
there is no dependency of the WEB-INF or servletContext.  Does anyone have any 
strategy for something like this?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948528#3948528

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948528


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to