This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can i control iframe using servlet

 
chain singh
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello

can i control iframe using servlet?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64985
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use complete sentences and explain what you mean by "controlling" an iframe.
 
chain singh
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry,,,,

actually i have an jsp page which have iframe tag.

i want to call another jsp page in that iframe when user click on jsp page, which having iframe tag.

when user click that button on jsp page i call servlet on that so i want to get page from servlet but in iframe.

please understand my question

and tell me this can be happened?
 
Neeraj Dhiman
Ranch Hand
Posts: 68
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you can do this by passing the path of your JSP in src of iframe or you can also use a Servlet which redirect to a jsp as per your requirments.
 
chain singh
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for reply,

this will work thanks

but that servlet which redirect me ,can redirect me to on that same iframe also?


thanks
 
Neeraj Dhiman
Ranch Hand
Posts: 68
IBM DB2 Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes,if you are calling a servlet from i-frame src which redirect to jsp, it will open in your iframe.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic