• Post Reply Bookmark Topic Watch Topic
  • New Topic

moving variables from one page to an other  RSS feed

 
Aris Doxakis
Ranch Hand
Posts: 136
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

i have a question.how can i move 2 variables from one page to another using the URL?For the first variable its just using the "?".what character gets between the one variable and the other.and one more thing how can i get a textfield value(name.value())?

thnx in advance..
 
Jass Singh
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello,

i have a question.how can i move 2 variables from one page to another using the URL?For the first variable its just using the "?".what character gets between the one variable and the other


For ist variable use "?" and for all subequent variables use "&"


and one more thing how can i get a textfield value(name.value())?


Its not clear if you want this value in javascript or in next JSP.

For javascript use: document.formName.textfiledname.value

For JSP use: request.getParameter("textfiledname");

Hope that helps

Regards,
Jass
 
Kia Phia Ben
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aris Doxakis

Using request.setAttribute(name,value) or session variable
 
Aris Doxakis
Ranch Hand
Posts: 136
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thnx guys for help..
for jsp sorry didnt mention it at first post..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!