Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

How can i pass Text field values from one page to another page.

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can i pass Text field values from one page to another page through onClick(), onBlur(), onChange(),onMouse,OnMouseOver & onMouseDown. I am new for JavaScript. Kindly give me the detailed code. Plz..
 
Sheriff
Posts: 67620
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean by "pass"?

What relationship do the pages in question have with each other?

If you want answers to your questions, you need to provide enough details for an answer to be forumlated.
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I understand from your question is you want to retrieve text field value in the other jsp

so in your jsp create a button and write a onclick function "forwardTo()"

and in the javascript just write a function
function forwardTo() {
document.forms[0].action="kkk.jsp";
document.forms[0].submit();
}

in the kkk.jp
just use request.getParameter("nameoftexfield");
 
reply
    Bookmark Topic Watch Topic
  • New Topic