•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 456,488 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,738 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 3819 | Replies: 0 | Solved
![]() |
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)
as you can see here 4 is just an example. it can be any. please help me out...thankz
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
Last edited by apontutul : Sep 13th, 2007 at 5:47 pm.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- ASP.NET Registration Page (ASP.NET)
- Open In New Window Php (PHP)
- how to read data from database page by page, please it is urgent... (JSP)
- heeeeeeeeeelllllp! (Window and Desktop Managers)
- unmountable_boot_volume & Set-up Issues (Troubleshooting Dead Machines)
- Can't Get Flash To Work (Windows 9x / Me)
- problem passing parameter to crystal from .net (VB.NET)
- This ought to be simple - extra spaces (PHP)
- newbie: need help setting up my network, router + firewall problems (Networking Hardware Configuration)
Other Threads in the JSP Forum
- Previous Thread: Allow User To Upload A Picture
- Next Thread: can anybody guide me


Linear Mode