Hi,
I was really wondering if we can do the following:
I have a Struts FormBean with the following getters and setters:
public String getLogData() {
return logData;
}
public void setLogData(String logData) {
this.logData = logData;
}
I want to set this logData member from JSP page using Java and JavaScript like this:
<%
FormBean form = (FormBean) session.getAttribute("FormBean");
form.setLogData(%> call below JavaScript here!! <%);
%>
<script>
function getTestData(){
return "log data";
}
</script>
I get this data using Javascript, hence is this possible or any way to set Java Bean members through Javascript?
Thanks