Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes Frame,Form action,Frameset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Frame,Form action,Frameset" Watch "Frame,Form action,Frameset" New topic
Author

Frame,Form action,Frameset

Upendra Bhole
Greenhorn

Joined: Dec 05, 2004
Posts: 22
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

[ February 22, 2005: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Moving to the HTML/Javascript forum since inter-frame stuff needs to happen at the client level.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Frame,Form action,Frameset
 
Similar Threads
How to connect JSP and MS-dos
Help Needed For JSP code
Add a link to submit button
The requested method POST is not allowed for the URL
Help Needed