• Post Reply Bookmark Topic Watch Topic
  • New Topic

Pass data between JSP pages

 
aron tay
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,
I would like to know whether is it possible to pass data between two jsp pages (open concurrently) . So basically what I have to achieve is that I have two JSP
Pages(Page 1 and 2) , Page 1 consists of Button which have values indicate on it . So when I click on the Button , Page 2 will automatically know that button clicked and display the data .

Thanks & Regards
Aron
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the relationship between these pages?
 
aron tay
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear , thanks for the reply.
So basically for Page 1 it act as a trigger button for page 2 to change display . But I need both pages to be open at the same time before I press the button to trigger it to update the display on page 2

Thanks & Regards
Aron
 
aron tay
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've attached an image . I'm not sure this help with the understanding of what I am asking.

Thanks & regards
Aron
S.png
[Thumbnail for S.png]
 
Paul Clapham
Sheriff
Posts: 21872
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So the two pages are displayed in different tabs in the browser?

Or in two different copies of the browser, or in two different browsers (e.g. IE and Chrome)?

Or in browsers in two different computers?

In other words, what kind of scenarios are you envisioning, and do you care about all of those possibilities?
 
aron tay
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul, Thanks for the reply .
two pages are displayed in different tabs in the browser.

Hi allen, Thanks for the reply too .
For session wise , I would be able to use . But my teacher does not want that .. Thanks for the help anyway :D

Thanks & Regards
Aron

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, since it is now clear that this is an artificial academic exercise, what will your teacher allow? It'd be a complete waste of time to suggest ways for doing this in the real world that your teacher will not allow.

In the future please lets us know when it's a school exercise.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!