Solved

carrying values frome one page to another

Posted on 2008-06-10
3
335 Views
Last Modified: 2010-05-18
I have two pages products.jsp and price.jsp, I have some variables in the products.jsp  that I want to carry there values through a link.

out.print("<TD><TR><TD><a href=\"#\"" + title+"</a>");

How can I carry these variables to the price.jsp page?

0
Comment
Question by:COMPUTER_SC_STUDENT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Expert Comment

by:mukundha_expert
ID: 21751754
add it as a parameters to the request itself (construct the link with the params)
http://mysite.com/price.jsp?p=v&p1=v1
0
 

Author Comment

by:COMPUTER_SC_STUDENT
ID: 21756903
but in jsp how to assign the variable value, I did this and it didn't work:

out.print("<TD><TR><TD><a href=\"price.jsp?isbn=isbn\"" + title+"</a>");

where the isbn is the variable name in both the product.jsp and the price.jsp, and both of them it is a string.
0
 
LVL 10

Accepted Solution

by:
mukundha_expert earned 50 total points
ID: 21758533
but why is't that possible
this should be fine if you have a variable isbn
out.print("<TD><TR><TD><a href=\"price.jsp?isbn=" + isbn + \"" + title+"</a>");
0

Featured Post

Containers and Docker for Everyone

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question