[forge-dev] Resource File Path

Luca Masini luca.masini at gmail.com
Thu Dec 6 05:51:04 EST 2012


Hi guys, I need to write a resource into the src/main/resources file that
is related to a class MyForm.

I'm using this code but it smells:

resource.getResource(viewBean.getQualifiedName().replace('.',
File.separatorChar)+".html")

Suggestions about the best way to do that ??

Thank you.

-- 
****************************************
http://www.lucamasini.net
http://twitter.com/lmasini
http://www.linkedin.com/pub/luca-masini/7/10/2b9
****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20121206/c44ecee6/attachment.html 


More information about the forge-dev mailing list