return javascript function in JSP form -


I have a JavaScript function (get_deviceprint ()) which gives IIP data, such as IP, resolution, device, etc. . I need to return it as part of a form in the servlet, I know that the function works because console.log (get_deviceprint ()); displays information correctly in the web console.

So the problem is going to return it as a string server. I tried

  & lt; Input type = "hidden" name = "deviceprint" value = "& lt; script type =" text / javascript "& gt; get_deviceprint () & lt; / script & gt; />  

but type and

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -