Dear Sir,
How can I call jsp page in another frame.
Upendra
Was this answer helpful ?
Yes No
Three whole minutes before you get impatient? Impressive...
You'd "call" a JSP in another frame the same way you would any other resource; specify the URL in the src attribute.
Was this answer helpful ?
Yes No
Dear All,
I have doubt in frame,form action,frameset.My question is that how can i show the out put from one frame to another frame ie when I will press the button Ping ATMIP then the called jsp page "pingatmip.jsp" should be executed in another frame ie right side frame.
Secondly there is two button in left hand side frame.how can I adjust the code in index.jsp so that after pressing the button "Ping ROUTERIP" then the called jsp "pingrouterip.jsp" should be exicuted in right hand frame.
But When I enter the both the button then only pingatmip.jsp is called in left hand side of frame
Please suggest me.
See the following code,
1)
index.jsp
<HTML>
<center>
<FRAMESET BORDER=3 COLS="20%,*">
<FRAME NAME="F1" SRC="index1.jsp" SCROLLING="yes">
</FRAMESET>
</center>
</HTML>
2)index1.jsp
<HTML>
<HEAD>
<center><H1>Enter The Station ID<H1></center>
</HEAD>
<BODY bgcolor=pink>
<center>
<table border =1 cellpadding=0>
<form action="http://localhost:8100/pingatmip.jsp" >
<form action="http://localhost:8100/pingrouterip.jsp" >
<TR bgcolor=dddop45>
<TD><H5><CENTER><br>ATM-ID :</center></H4><input type="text" name ="a"></TD>
</TR><BR></table><br>
<INPUT TYPE="submit" value="Ping ATMIP" STYLE="COLOR:BLUE" align = centre>
<INPUT TYPE="submit" value="Ping ROUTERIP" STYLE="COLOR:BLUE" align = centre>
</form>
</center>
</BODY>
</head>
</HTML>
3)pingatmip.jsp
.
.
.
code
4)pingrouterip.jsp
.
.
code
.
.
-----------------------
Upendra

Was this answer helpful ?
Yes No
Any update on this,please
Quote:
| Originally Posted by upendrabhole Dear All,
I have doubt in frame,form action,frameset.My question is that how can i show the out put from one frame to another frame ie when I will press the button Ping ATMIP then the called jsp page "pingatmip.jsp" should be executed in another frame ie right side frame.
Secondly there is two button in left hand side frame.how can I adjust the code in index.jsp so that after pressing the button "Ping ROUTERIP" then the called jsp "pingrouterip.jsp" should be exicuted in right hand frame.
But When I enter the both the button then only pingatmip.jsp is called in left hand side of frame
Please suggest me.
See the following code,
1)
index.jsp
<HTML>
<center>
<FRAMESET BORDER=3 COLS="20%,*">
<FRAME NAME="F1" SRC="index1.jsp" SCROLLING="yes">
</FRAMESET>
</center>
</HTML>
2)index1.jsp
<HTML>
<HEAD>
<center><H1>Enter The Station ID<H1></center>
</HEAD>
<BODY bgcolor=pink>
<center>
<table border =1 cellpadding=0>
<form action="http://localhost:8100/pingatmip.jsp" >
<form action="http://localhost:8100/pingrouterip.jsp" >
<TR bgcolor=dddop45>
<TD><H5><CENTER><br>ATM-ID :</center></H4><input type="text" name ="a"></TD>
</TR><BR></table><br>
<INPUT TYPE="submit" value="Ping ATMIP" STYLE="COLOR:BLUE" align = centre>
<INPUT TYPE="submit" value="Ping ROUTERIP" STYLE="COLOR:BLUE" align = centre>
</form>
</center>
</BODY>
</head>
</HTML>
3)pingatmip.jsp
.
.
.
code
4)pingrouterip.jsp
.
.
code
.
.
-----------------------
Upendra  |
Was this answer helpful ?
Yes No
Unfortunately, I'm no expert whatsoever, more like a Java amateur in both senses. And I always tried to avoid iframes and use scrollable DIV's. Which works fine for now.
But your question seemed so fascinating I tried to look how long it would take to find an interesting article. And here's a link http://javaadvisor.com/doc/11901.
This seems like a good introduction about JSP's and iframes.
The rest of the answers will be for the true experts, I'm afraid.
Was this answer helpful ?
Yes No
Quote:
| Originally Posted by Yawmark Three whole minutes before you get impatient? Impressive...
You'd "call" a JSP in another frame the same way you would any other resource; specify the URL in the src attribute. |
Thanks Yawmark,
I want what could be the changes in index1.jsp so that my purpose will solve,
Please make the changes in index1.jsp
Upendra
Was this answer helpful ?
Yes No