How to pass the database column to javascript function in jsp or html
function forumQuestions(questions){
document.getElementById("questions").value = questions;
document.getElementById("questions").submit();
}
<a href="javascript:forumQuestions()"><c:out value="${forumBean.questions}"></c:out></a></td>
<c:out value="${forumBean.questions}"></c:out>but your best bet is to either make sure that it's a valid javascript value, or make it a JSON string and usevar data = JSON.parse(<c:out value="${forumBean.questions}" />);, if it's not a proper javascript value without making it a JSON string, there will most likely be a syntax error in the console