aspose file tools
The moose likes Servlets and the fly likes can i control iframe using servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "can i control iframe using servlet" Watch "can i control iframe using servlet" New topic
Author

can i control iframe using servlet

chain singh
Ranch Hand

Joined: Feb 28, 2012
Posts: 116
hello

can i control iframe using servlet?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56548
    
  14

Please use complete sentences and explain what you mean by "controlling" an iframe.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
chain singh
Ranch Hand

Joined: Feb 28, 2012
Posts: 116
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

Joined: Dec 19, 2011
Posts: 63

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.


Correct Me if i am wrong
chain singh
Ranch Hand

Joined: Feb 28, 2012
Posts: 116
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

Joined: Dec 19, 2011
Posts: 63

Yes,if you are calling a servlet from i-frame src which redirect to jsp, it will open in your iframe.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: can i control iframe using servlet
 
Similar Threads
how to pass field value in an IFrame to its parent
Is it possible?
Display the picture in [object HTMLImageElement] using PHP
iFrame and struts
iframe with backward and forward navigation arrows, open new window from iframe