# Using HTML template file with servoy bean element

**URL:** <https://forum.servoy.com/t/using-html-template-file-with-servoy-bean-element/18960>\
**Category:** Classic Servoy\
**Created:** [August 31, 2016, 8:16am UTC](https://forum.servoy.com/t/using-html-template-file-with-servoy-bean-element/18960 "2016-08-31T08:16:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![10joan90](https://avatars.discourse-cdn.com/v4/letter/1/0ea827/32.png) [@10joan90](https://forum.servoy.com/u/10joan90)\
**Post date:** [August 31, 2016, 8:16am UTC](https://forum.servoy.com/t/using-html-template-file-with-servoy-bean-element/18960/1 "2016-08-31T08:16:52Z")

</div>

Hello,

just asked myself if there is a possibility in servoy mobile filling the servoy mobile bean with data out of a imported HTML file directly.  
Currently I store all the HTML data in a variable and pass it to the servoy bean like that:

elements.beanTest.innerHTML=beanContent //beanContent contains the HTML data

Instead of this solution I want to file the bean with data of an imported HTML-file directly.

I really appreciate any kind of advice.

Greetings
