I have written the following javascript function
function getval(sel)
{
window.location.href = "Posts?Category=<%= sel %>";
}
but the value of sel variable is not considered in querystring..
Instead of it, it takes value like following.
...../Post/Posts?Category=%3C%=%20sel%20%%3E
Can anyone help me???
Because javascript does not understands jsp scriptlet,
Try,
window.location.href = "Posts?Category=" + sel;
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments