i want to get a request parameter in a jsp document (xml style jsp page) but it does not work. i wrote the below statement:
<img onclick="window.alert(<%=request.getParameter(\"name\")%>);"/>
after execution, the above code produces the below statement in html page:
<img onclick='window.alert(<%=request.getParameter("name")%>);'/>
the problem is that the expression does not execute and is put in the result page without execution.