User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Nov 2006
Posts: 38
Reputation: apontutul is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
apontutul's Avatar
apontutul apontutul is offline Offline
Light Poster

how to get (from URL) & then set parameter....

  #1  
Sep 13th, 2007
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
Last edited by apontutul : Sep 13th, 2007 at 5:47 pm.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 3:11 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC