I want to get a parameter from the URL to another jsp page. for eg:
hxxp://localhost:8080/vote-0.3/view-poll.jsp?poll_id=4
get this(poll_id=4) in my new jsp & then pass this parameter to its bean & servlet.
the link to the new jsp is in this page. what do I need to do in my new jsp to get the parameter. & after that to its bean & the servlet. this is my current new jsp (viewrst.jsp)
<%@ page import="vote.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.net.*" %>
<%@ include file="code/view-poll.jsp" %>
<html>
<head>
<title>Pie Chart Demo</title>
</head>
<jsp:useBean id="myChart" class="myapp.webwork.beans.votepie" scope="session" />
<jsp:setProperty name="myChart" property="*"/>
<body>
<h2>Vote Results Pie-chart</h2>
<%String chartViewer = myChart.getvoteserve(request, response);%>
<img src="<%=chartViewer%>" border=0 usemap="#imageMap">
</body>
</html>
as you can see here 4 is just an example. it can be any. please help me out...thankz