Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet pass a variable(friends name) through a hyperlink in to another jsp.

Have Programming Question? Ask it here!
 
 
 


ankur kumar agarwal
pass a variable(friends name) through a hyperlink in to another jsp.
0 Answer(s)      3 years and a month ago
Posted in : JSP-Servlet


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.


Advertisement
View Answers

Related Tutorials/Questions & Answers:
pass a variable(friends name) through a hyperlink in to another jsp.
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
pass a variable(friends name) through a hyperlink in to another jsp.
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
Advertisements
how to pass class variable to another class
how 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-Servlet
onclick 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 pass the mutiple values from <Ui:datagrid hyperlink - JSP-Servlet
how to pass the mutiple values from    I am getting the error when passing the values from this way emp2=${employee.lastName1} & name=${employee.firstName.How to pass the values from hyperlink in column
How to pass javascript variable in Scriplet of JSP?
How to pass javascript variable in Scriplet of JSP?  How can I assign the value of a javascript variable to a variable declared in jsp scriplet? Is it possible
how to pass the mutiple values from <Ui:datagrid hyperlink - JSP-Servlet
how to pass the mutiple values from      Hi Friend, Please post your full code. Thanks
how to pass an array from one jsp to another jsp - JSP-Servlet
how to pass an array from one jsp to another jsp  hi friedns, can any One tell me how to send an array from one jsp to another jsp,pls any one send the code for this.also porvid the code how to retrive the arry in another jsp
How many ways we can pass the variable through the navigation between the pages?
How many ways we can pass the variable through the navigation between the pages?  How many ways we can pass the variable through the navigation between the pages
how to call jsp variable through servlet
how 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"); when i
how can we pass parameters from jsp href to another servlet
how can we pass parameters from jsp href to another servlet  how can we pass parameters from jsp href to another servlet
passing values between jsp file through hyperlink in div tag
passing values between jsp file through hyperlink in div tag  <...;script src="js/AdminHeader.js"&gt;&lt;/script&gt; &lt;jsp:include page="/jsp/admin/Adminmenu.jsp" &gt; &lt;/jsp:include&gt
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
how to pass arraylist data from one jsp to another jsp - JSP-Servlet
how to pass arraylist data from one jsp to another jsp  hi to all iam not able to pass the data which is stroed in arraylist, actually i need... the following >XXX/ ? is required to send a value from one jsp to another
how to get multiple hyperlink values from a table column to another jsp file?
how to get multiple hyperlink values from a table column to another jsp file... i copy the hyperlink value to that third jsp file "table2", or if you have another way in JSP please share. these are my codes: ***index.jsp*** <html>
JSP Variable in Javascript
you to pass jsp variable to javascript. The JavaScript include a function... are going to pass the jsp variable to javascript. You can see in the given example... JSP Variable in Javascript   
eclips hyperlink - JSP-Servlet
eclips 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
How do you pass a variable by value?
How do you pass a variable by value?  How do you pass a variable by value
Parent child windows relationships when webpage is accesssed through a hyperlink.
the same webpage is accesssed through a hyperlink the time out functionality... is accessed through a hyperlink...Parent child windows relationships when webpage is accesssed through
Passing value in hyperlink - JSP-Servlet
Passing 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
Connecting to Database from a hyperlink in JSP - JSP-Servlet
Connecting to Database from a hyperlink in JSP  How can I connect to database by clicking on a hyperlink in a JSP Page.Can you please give me sample...://www.roseindia,net/jsp/ http://www.roweindia.net/jdbc/ Thanks.   http
hyperlink
hyperlink  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
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
Passing Parameters to Another JSP Page
Passing Parameters to Another JSP Page      By using the include action we can pass the parameters to another jsp page..." > <jsp:param name="name2" value="James"
how to assign javascript variable value to a jsp variable
how to assign javascript variable value to a jsp variable  how to assign javascript variable value to a jsp variable
Pass values from form to form
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
Pass a dom object from jsp to servlet
Pass 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
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 <%! %>
Passing Parameter Values to another jsp in Query Strings
Passing Parameter Values to another jsp in Query Strings  HI ALL, I m trying to pass a variable value to another JSP using query string... even though some values* stored in the variable loginid. Can any one suggest
Pass parameters from JSP to Servlet
Pass 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
PHP Variable Functions
PHP Variable Functions: Learn PHP Variable Function means that if a variable name has a format like this $var(), PHP will consider this as a variable function and will look for a function with a name which is assigned to it, and will try
variable for cookie.setDomain - JSP-Servlet
variable 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
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 query as parameter? - JSP-Servlet
How to pass query as parameter?  Hi Friends, I have a real tough..... String qry1="select id from table1"; String qry2="select name from table2"; String qry3="select age from table13"; string q=Insert into emp values
i want to pass Javascript value to JSP scriptlet..
i want to pass Javascript value to JSP scriptlet..  i am having a problem that, i am having a combo box in the JSP page when i select an item from... now i want to pass this value to JSP scriptlet
How to pass the value from controller to jsp page ?
How to pass the value from controller to jsp page ?  HI I need to pass the value from controller to jsp. I use the way like this Controller request.setAttribute("msg", "Successfully Login"); In jsp ${msg} and then i
calling one jsp from another jsp page
calling one jsp from another jsp page  need coding for calling one jsp from another jsp including the xml file.Its urgent
How to pass parametes from JSP page to HTML page? - JSP-Servlet
How to pass parametes from JSP page to HTML page?  Hi all, In my project I have one JSP page and one HTML page. In JSP page I have created HTML... to pass the values from my JSP page to HTML page. Pls help me out. Hitendra 
Pass value from JSP to JavaScript
Pass value from JSP to JavaScript       We can also pass the value from a JSP page to the java... and then shows it through the alert(). Here is the example code of the JSP page
Redirecting the output of an expression to a variable - JSP-Servlet
' file: Create another jsp file 'get.jsp' to get the output: Thanks...Redirecting the output of an expression to a variable  I want to redirect the output of to a variable defined in variable.jsp. What is the syntax
variable setting for servlet - JSP-Servlet
variable setting for servlet  how to set environment variable and class path variable for servlet and to compile servlet files i am using tomcat 6.0  Hi Friend, Please visit the following links: http
Show Hyperlink in HTML Page
Show Hyperlink in HTML Page       HTML is a HyperTextMarkupLanguage.The HTML uses a hyperlink to connect from one page to another page of the web. The anchor (<a>...<
Sending query with variable - JSP-Servlet
database and query should have a variable at the end. While using this variable we... page here userno--> variable which contains no. that is retrieved from
passing from 1 jsp to another - JSP-Servlet
passing from 1 jsp to another  Hi Sir, What are the ways and means of passing from 1 jsp page to another page.what are the different types of methods?  Hi Friend, You can use tag,sedRedirect() method
Creating a Local Variable in JSP
Creating a Local Variable in JSP          In jsp when we have to create a method or variable we usually declare it inside the declaration tag. If we declare
uploading a file at another system in lan using jsp
uploading a file at another system in lan using jsp  Thanks for the code at "http://www.roseindia.net/jsp/fileupload/Sinleupload.xhtml.shtml... to save or upload the file at another system in lan at location "http
JSP Include Param
;       JSP Include Param is used to pass parameter in the include directive. The example uses <jsp:param> clause to pass the parameter name and value to the dynamic jsp page. This clause is only used
Advertisements
 

 

 

DMCA.com