ciao a tutti
non riesco a cliccare un bottone javascript onclick dentro una pagina jsp ed ottenere il risultato che voglio (nello specifico un aumento del valore UP nel db). NOn capisco cosa sbaglio sto diventando pazzo!
ecco il codice
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:useBean id="question" scope="request" class="com.qapro.entity.Question"> </jsp:useBean>
<jsp:useBean id="answer" scope="request" class="com.qapro.entity.Answer"> </jsp:useBean>
<c:set var="question.text" value="${question.text}" />
<c:set var="question.id" value="${question.id}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta property="og:title" content="<cut value="${question.text}"/>" />
<meta property="og:type" content="company" />
<meta property="og:url" content="http://www.fewcharts.com/DisplayQuestion?qId="<cut value="${question.id}"/>" />
<meta property="og:image" content="http://www.fewcharts.com/assets/img/bannerfb1200x630.png" />
<meta property="og:site_name" content="Fewcharts" />
<meta property="og:description" content= "Fewcharts is a ranking system focused mainly on music that allows you to find out who is the best. Through Fewcharts you can add your own preferences in 50 characters and create topic by voting with your friends. It's 100% free and will always be."/>