pass a variable(friends name) through a hyperlink in to another jsp.
hi friends, i am developing a site in jsp. i have some problem,plz tell me the solution.
problem: in the welcome page where friends name is show i write this code:
while(resultset.next())
{
%>
<a href="home2.jsp?value=friend_name1">
<%=resultset.getString("first_name") %></a>
<% String friend_name1=resultset.getString("first_name"); %>
<%System.out.println(friend_name1);%>
<%}
by this code user friends is shown,and make a link,when i click on a friends name for showing friend profile, there is a error,by this error profile is not showing, i found this error,profile is not showing bcoz when i click on a friends name,all friend name is passed in to the next page,but i want to pass a specific friend name which i was clicked,plz tell me how i do this?
thanks.
View Answers
Related Tutorials/Questions & Answers:
Advertisements
how to pass class variable to another classhow to
pass class
variable to
another class i need to access a
variable from a class to
another class currently running at the same time.
using Classname.variable i got the value. But when i change the value second time i got
onclick pass variable - JSP-Servletonclick
pass variable on button onclick event
pass variable and print in textbox in same page... i want to
pass value of
variable at onclick event of button and also want to print it in textbox in same page.... Hi
how to call jsp variable through servlethow to call
jsp variable through servlet Hi deepak;
i am posting some peace of code.
and i need to call
jsp varable <%=f%>
through servlet so... a
hyperlink to call this downlode page like
out.println("Download document");ADS
you pass a variable by value.you
pass a
variable by value. How do you
pass a
variable by value?
Hi
friends,
Just like in C++, put an ampersand in front of it, like $a = &$b
/*--------------
Pass By value----------------*/
function add
JSP Variable in Javascript you to
pass jsp variable to javascript. The JavaScript
include a function...
In this section, we are going to
pass the
jsp variable to javascript. You can
see...
JSP Variable in Javascript
eclips hyperlink - JSP-Servleteclips hyperlink In my myeclipse if
hyperlink is provided in any application , it's not working when I deploy it.
I also use net at my PC, is there any problem due to IP Address
Passing value in hyperlink - JSP-ServletPassing value in hyperlink How to
pass value in anchor tag or HTML link from one
JSP page to
another JSP page ?and how to retrieve values in
another...;------------------------------------read for more information.http://www.roseindia.net/
jsp Passing Parameters to Another JSP PagePassing Parameters to
Another JSP Page
By using the include action we can
pass the parameters
to
another jsp page...="RetrievingParameters.jsp" >
<
jsp:param
name="name2
use data from database table as hyperlink value - JSP-Servlet as the
hyperlink's value then
pass to the next page and retrieve the complete details of the row...use data from database table as
hyperlink value I'm creating a web... to
hyperlink. I want to use this data as
hyperlink and use it as the value
Pass a dom object from jsp to servletPass a dom object from
jsp to servlet I am creating a dom object in my
jsp page.
now i want to
pass that object in a servlet
through calling servlet in
jsp.
can anyone help me
how to pass a string from one class to another in " +
name);
System.out.println (
name);
// System.out.println("
Another Class...how to
pass a string from one class to another hi all, Good morning. I am trying to develop a coding
pass a string from one class and declare
JSP Create Variable
JSP Create
Variable
JSP Create
Variable is used to create a
variable in
jsp. The scriptlets
include a java code to be written as <%! %>
Pass values from form to form;
Java program to
pass values from one form to
another
form in
JSP
There are many occasions when the programmer need to
pass some value to many... to only
pass values
from one page to
another consecutive page which is being
how to change password into one jsp to another jsphow to change password into one
jsp to
another jsp i have two jsps in one
jsp i give one password and confirm password, in
another jsp i want change my password compare with 1st
jsp how to write code please give me answer?
Pass parameters from JSP to ServletPass parameters from
JSP to Servlet
In this section, you will learn how to
pass parameters from
JSP page to servlet. For this purpose, we have used... is retrieved later in the servlet by passing the request object
through variable for cookie.setDomain - JSP-Servletvariable for cookie.setDomain I want to create a
variable to use inside the following statement:
cookie.setDomain(".mydomain.com");
Users will be hitting different sites using the same code for all.
Any suggestions would
hyperlinkhyperlink I have a .xls file and i want the code to open this .xls file in read only mode when i click on a
hyperlink,it should not not be editable,please send me the code
Extracting variable from jspExtracting
variable from jsp how to Write a java program which...;
<body>
<form
name="userform" method="post" action="excelFile.jsp">
<table>
<tr><td>Enter First
Name:</td><td><
database through jspdatabase
through jsp sir actually i want to retrieve the data from... are there in the database?
thanks
Here is an example of
jsp which retrieves data from...;html>
<body>
<br><br>
<form method="post"
name="form">
jdbc connectivity through jspjdbc connectivity
through jsp my code:
<%@ page language="java...
org.apache.jasper.JasperException: An exception occurred processing
JSP page /mypage.jsp...)
org.apache.jsp.mypage_
jsp._jspService(mypage_jsp.java:105
How to pass an arraylist from servlet to jsp?How to
pass an arraylist from servlet to
jsp? Hello,
Can anyone please tell me how to
pass an arraylist from servlet to
jsp? I have two arraylist... servlet to
jsp?
Thanks in advance
How to pass multiple values from a servlet to JSP?How to
pass multiple values from a servlet to
JSP? hi, I want to
pass multiple values form a servlet to
JSP.
Hw do i do that?
I am able to send one value at a time without any prb, but I am unable to carry multiple (from two
How To Pass data from one GUI to another in java swingHow To
Pass data from one GUI to
another in java swing I'm new to java and part of our assignment is to build a GUI and display a result set from... JLabel ("Item
Name");
JPanel panel2 = new JPanel();
JLabel iOrigPrice = new