Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there a way to pass data to next page without using submit button  RSS feed

 
Rajesh Veluchamy
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Is there a way to pass data to next page without using submit button.
i have heard something about "request.send Redirect()" can we use this.


Thanks in advance to all
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure what you mean by pass data. However, you can use the requestDispatcher object to transfer control to another JSP/servlet.
 
Rajesh Veluchamy
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i click submit the value(123) is passed to next page.
but, what i want is
as soon as i reach this page the value should be passed to next page(12.Jsp)


is the "requestDispatcher" does the same thing
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The nature of your question suggests that there may be some confusion about what happens on the server and what happens on the client.

Do you have a particular book or tutorial that you're working with now?
If so, which is it?

This article by Bear Bibeault might help:
http://www.javaranch.com/journal/200510/Journal200510.jsp#a1
[ March 03, 2008: Message edited by: Ben Souther ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!