My problem is this:

I want to call a pege by javascript (the page where I am but with different parameter)
onchange="window.location.replace('utenti.jsp?mese=3')"

But tomcat don't allow me to do this and give me this error

HTTP Status 404 - /CosentinoDiFederico/utenti.jsp
type Status report
message /CosentinoDiFederico/utenti.jsp
description The requested resource (/CosentinoDiFederico/utenti.jsp) is not available.

I'm starting to think that it's impossible to call jsp page and send parameter by javascript, please somebody help me .... TNX

Try

onchange="javascript:changeLocation();"
<script>
function changeLocation() {
          window.location.href = 'utenti.jsp?mese=3';
}
</script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.