FRAMES in JSP

How can i put my detail-records in a frame so the user can scroll through details whilst the master is shown above.

How can i put my detail-records in a frame so the user can scroll through details whilst the master is shown above.

Similar Messages

  • How to create OA Frame Work Jsp through JDeveloper9i

    Hi,
    any one can help me,
    how to create OA Frame Work Jsp through JDeveloper9i.
    and how to depoy that jsp page into oracle application server.
    plse help me,
    Regards
    ravi

    I am also having the same problem.
    can anyone help me out......?

  • Can we use frames and jsps together..

    Is it good to use frames with jsps.performence wise..bcos when iam calling jsps in frames it taking more time..to laod..
    regards,

    Remember, 2 frames == 2 HTTP requests. 3 frames == 3 requests, etc.
    It will take longer of course. To think otherwise is crazy. However there are times when the benefits are there. I've used them, expecially if it's a situation where taking a little longer on the initial load makes all other accesses faster. This is particularly the case when I've got a fancy UI that uses lots of graphics. I don't need to load the graphics more than once so I put them in separate frames and only have one frame (which is mostly text) change content.

  • Create frames using JSP tags

    I am trying to create two frames in my JSP page . However it just displays a blank page on execution.
    I am using following code to create frames:
    <hbj:content id="myContext" >
          <hbj:document>
         <hbj:documentHead>    
         <frameset cols="100,*" border=1 frameborder="1">
                     <frame name="frame1"
                            src ="http://www.yahoo.com">
                     <frame name="frame2"
                            src= "http://www.google.com">
                </frameset>
         <hbj:documentHead>            
        </hbj:document>   
    </hbj:content>
    Thanks

    Neeti,
       Just get rid of JSP tags and put the frameset html on jsp page. It should work without JSP tags.
    <html>
    <frameset cols="100,*" border=1 frameborder="1">
    <frame name="frame1"
    src ="http://www.yahoo.com">
    <frame name="frame2"
    src= "http://www.google.com">
    </frameset>
    </html>
    Message was edited by: Prakash  Singh

  • Linking to a specific frame from JSP page

    I am trying to link to site that has frames. I want to load a specific jsp in frame 3. Does anyone know how to pass the target and source values? I have been looking for tutorials unsuccessfully.

    You can not point to a specific frame ina document from an external document.Your best bet might be to pass the parameters using URL and on the recieving end write some javascript to parse the url adn if it has a parameter then process that else just load standard document.
    Khalid

  • Problem in Frame and JSP

    hi all,
    i built an web application and now i want to add a menu using frame in HTML or javascript. The problem is all my JSP pages are data dependant from one another that means sometimes i am sending the data using input boxes and sometimes using HIDDEN values in HTML. Now i tried this followig way to use frame and to send my data to other pages but it is not working can anyone please help me.
    "DOES ANYONE KNOW WHETHER I CAN USE FRAME IN THE JSP PAGE OR NOT"
    LOGIN.HTML
    <form action="startframe.html" method="post">
    <center><h2>Employee Number:</h2></center>
    <center><input type="text" name="emplno" maxlength="4"size="4"></center></br>
    <center><h2>Password:</h2></center>
    <center><input type="password" name="pass" maxlength="6" size="6"></center></br>
    <center><input type="submit" value="SUBMIT YOUR INFO"></center>
    </form>
    </body>
    </html> DATA are GOING FROM LOGIN.HTML TO VARIFYLOGIN.JSP
    Now in between these two i used an HTML file to place a frame so that i can use the frame and the code is:
    <HTML>
    <HEAD>
    <TITLE> </TITLE>
    <frameset cols="15%,85%">>
    <frame name="frame1" src="buttons.html">
    <frame name="frame2" src="varifylogin.jsp?emplno=<%=emplno%> &pass=<%=pass%>" >
    </frameset>
    </HEAD>
    <BODY>
    </BODY>
    </HTML> "DOES ANYONE KNOW WHETHER I CAN USE FRAME IN THE JSP PAGE OR NOT"
    and then it should go to VARIFYLOGIN.JSP which is:
    String empl_no = request.getParameter("emplno");
       String password=request.getParameter("pass");
       Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
       Connection con = DriverManager.getConnection("jdbc:odbc:finalmp" );
       Statement stmt = con.createStatement();
       ResultSet rs = stmt.executeQuery("SELECT StaffID,FirstName,LastName,Password FROM StaffDetails");...................................................etc.
    i am getting this error on the RIGHT hand side frame meaning it showing the buttons on the left but this error on the right:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:367)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    root cause
    java.lang.NullPointerException
         org.apache.jsp.varifylogin_jsp._jspService(varifylogin_jsp.java:83)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:320)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856Can anyone please help me.
    Cheers

    i am working in jubuilder
    and have made there three forms,and
    calling s-aots and st_aots in fs_aots
    but when i compile
    it takes fiel,d text on seprate page display result on other window
    why it dosent use frame here
    2nd thing
    i want to enable scrolling
    how i can do
    or how can i display required no of records in second row
    if i mention page size in any check box
    <html>
    <head>
    <title>
    fs_aots
    </title>
    </head>
    <jsp:useBean id="fs_aotsBeanId" scope="session" class="s_aots.fs_aotsBean" />
    <jsp:setProperty name="fs_aotsBeanId" property="*" />
    <body>
    <FRAMESET Rows="30%" Framespacing="0">
    <Frame Name ="Header" SRC="s_aots.jsp" Frameborder="0" Scrolling="no">
    <FRAMESET Rows="70%" Framespacing="0">
    <Frame Name="data" SRC="st_aots.jsp" Frameborder="0" Scrolling="yes">
    </frameset>
    </frameset>
    </BODY>
    </html>
    <html>
    <head>
    <title>
    s_aots
    </title>
    </head>
    <jsp:useBean id="s_aotsBeanId" scope="session" class="s_aots.s_aotsBean" />
    <jsp:setProperty name="s_aotsBeanId" property="*" />
    <body>
    <p>update database content
    <form action="st_aots.jsp" method="post">
    Region<input type=text name=Regionparam><br>
    Bill Month From :<input type=text name=BmonthFparam><br>
    Bill Month To:<input type=text name=BmonthTparam><br>
    Connection Type:<input type=text name=Conntypeparam><br>
    Exchanges:<input type=text name=Exchparam><br>
    Phone No:<input type=text name=PhoneNoparam><br>
    <input type=Submit value="Retrive from DB">
    </form>
    </BODY>
    </HTML>
    <html>
    <head>
    <title>
    st_aots
    </title>
    </head>
    <jsp:useBean id="st_aotsBeanId" scope="session" class="s_aots.st_aotsBean" />
    <jsp:setProperty name="st_aotsBeanId" property="*" />
    <%@ page language="java" import="java.util.*"%>
    <table border=1 cellpadding=0 cellspacing=0 >
    <tr><td> Phone No: </td>
    <td> Current Bill: </td>
    <td> Net Payable: </td>
    <td>Net Arrers:</td>
    <td>customer Name:</td>
    <td>Customer Address:</td>
    <td>Connection Type:</td>
    </tr>
    <%
      Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
      java.sql.Connection connection = java.sql.DriverManager.getConnection("jdbc:odbc:AOTS4");
      java.sql.Statement statement = connection.createStatement();
      Enumeration parameters = request.getParameterNames();
        if(parameters.hasMoreElements()){
        String REGION = request.getParameter("Regionparam");
        String BILL_MONTH_FROM = request.getParameter("BmonthFparam");
        String BILL_MONTH_TO = request.getParameter("BmonthTparam");
        String CONN_TYPE = request.getParameter("Conntypeparam");
        String EXCHANGES = request.getParameter("Exchparam");
        String PHONE = request.getParameter("PhoneNoparam");
       //String q;
       // statement.executeUpdate("INSERT INTO updatephonebook (LAST,FIRST,PHONE) VALUES ('"+LastValue+"','"+FirstValue+"','"+PhoneValue+"')");
    // q= " SELECT PHONE_NO,GROSS_CURRENT_BILL,AMOUNT_PAYABLE,NET_ARRERS_AMOUNT,NAME,ADDRESS_1,ADDRESS_2,ADDRESS_3,ADDRESS_4,CONNECTION_TYPE FROM AOTS WHERE REGION_CODE='" +REGION+ "' AND BILL_PERIOD BETWEEN '" + BILL_MONTH_FROM + "' AND '"+BILL_MONTH_TO+"' AND CONNECTION_TYPE='"+CONN_TYPE+"' AND EXCHANGE_CODE='"+EXCHANGES+"' AND PHONE_NO='"+PHONE+"'";
       // System.out.println(q);
         java.sql.ResultSet columns = statement.executeQuery
        (" SELECT PHONE_NO,GROSS_CURRENT_BILL,AMOUNT_PAYABLE,NET_ARRERS_AMOUNT,NAME,ADDRESS_1,ADDRESS_2,ADDRESS_3,ADDRESS_4,CONNECTION_TYPE FROM AOTS4 WHERE REGION_CODE='" +REGION+ "' AND (BILL_PERIOD BETWEEN '"+BILL_MONTH_FROM+"' AND '"+BILL_MONTH_TO+"') AND CONNECTION_TYPE='"+CONN_TYPE+"' AND EXCHANGE_CODE='"+EXCHANGES+"' AND PHONE_NO='"+PHONE+"' ")  ;
        //(" SELECT PHONE_NO,GROSS_CURRENT_BILL,AMOUNT_PAYABLE,NET_ARRERS_AMOUNT,NAME,ADDRESS_1,ADDRESS_2,ADDRESS_3,ADDRESS_4,CONNECTION_TYPE FROM AOTS4 WHERE REGION_CODE='" +REGION+ "' AND CONNECTION_TYPE='"+CONN_TYPE+"' AND EXCHANGE_CODE='"+EXCHANGES+"' AND PHONE_NO='"+PHONE+"' ")  ;
         // java.sql.ResultSet columns = statement.executeQuery(q);
       // String sql =  ("SELECT BILL_PERIOD,REGION_CODE,EXCHANGE_CODE,PHONE_NO,GROSS_CURRENT_BILL,AMOUNT_PAYABLE,NET_ARRERS_AMOUNT,NAME,ADDRESS_1,ADDRESS_2,ADDRESS_3,ADDRESS_4,CONNECTION_TYPE FROM AOTS WHERE REGION_CODE ='"+REGION+"' AND (BILL_PERIOD BETWEEN '"+BILL_MONTH_FROM+"' AND '"+BILL_MONTH_TO+"') AND CONNECTION_TYPE='"+CONN_TYPE+"' AND EXCHANGE_CODE = '"+EXCHANGES+"' AND PHONE_NO='"+PHONE+"') " );
         //System.out.println("THE SQL QUERY = " + sql);
          //java.sql.ResultSet columns = statement.executeQuery(sql);
                                while(columns.next()){
                                String Phone_No = columns.getString("PHONE_NO");
                                String G_C_Bill = columns.getString("GROSS_CURRENT_BILL");
                                String Amount_Payable= columns.getString("AMOUNT_PAYABLE");
                                String N_A_Amount= columns.getString("NET_ARRERS_AMOUNT");
                                String Name= columns.getString("NAME");
                                String Address1= columns.getString("ADDRESS_1");
                                String Address2= columns.getString("ADDRESS_2");
                                String Address3= columns.getString("ADDRESS_3");
                                String Address4= columns.getString("ADDRESS_4");
                                String C_Type= columns.getString("CONNECTION_TYPE");
    %>
                                <TR>
                                <TD> <%=Phone_No %></td>
                                <TD> <%=G_C_Bill %></td>
                                <TD> <%=Amount_Payable%></td>
                                <TD> <%=N_A_Amount %></td>
                                <TD> <%=Name %></td>
                                <TD> <%=Address1 %>,<%=Address2%>,<%=Address3%>,<%=Address4%></td>
                                <TD> <%=C_Type %></td>
                                </tr>
                                <%}
    }%>
                                </table>
                                </body>
                                </html>

  • Regarding using frames in jsp

    Hello
    I am a graduate student developing a web project. I want to use frameset and make frames in my page. I have got two frames in my page, leftFrame and rightFrame.
    Now I want to give the src to leftframe as src="myhtml.htm" and to right one as src="myjsp.jsp". Now when I run the program, then i find that the html page is seen finely in the page but the jsp part of the frame gives an error which is something like this .
    " The requested resource (/Atlantis/myjsp.jsp) is not available."
    Is it that in a frameset we can referr to only the html pages. Cant I work with referring to .jsp pages in a frame.
    Please help.
    thanks.

    Thanks
    @BalusC
    Hello sir,
    I have used the jsp:include function , and am getting the jsp pages included in my jsp page.
    but then the thing which I finally want, is that on the click of a button which is present in one of the included pages, i want to get
    another jsp page opened, but the new page should be opened only a part of the mother page.
    where as what is happening is that the whole page is refreshed and the new page replaces the parent page.
    actually my code is something like this :
    ***********************Parent page ***********************
    <table align="center">
    <tr>
    <td width="25%" bgcolor="WhiteSmoke">
    <table ><tr>
    <td><jsp:include page="DeleteCopies.jsp" flush="true" /></td></tr></table>
    </td>
    <td>
    <table frame="box"><tr>
    <td bgcolor="LavenderBlush">
    <jsp:include page="AddNewTitle.jsp" flush="true" /></td></tr></table></td>
    </tr>
    </table>
    Now
    in the delete copies. jsp page i have put a submit button and on the click of submit i am going to another page
    calles "SuccesfullyDeleted.jsp"
    but the problem what i am having is that that SuccesfullyDeleted.jsp page is coming in a new page.
    Can I have any mechanism by which i get this final page i.e. SuccesfullyDeleted.jsp page only restricted to the parent page's table's cell
    where the DeleteCopies.jsp page was lying.

  • HTML-FRAMES with jsp as sorce

    Hi,
    I use a HTML with 5 FRAMES, 2 of them with jsp-files as src.
    How can I pass data to these jsp-files before the servlet calls the HTML?
    Is this possible at all?
    Thanks a lot

    you can reference and set hidden input values inside another frame by referencing them in javascript function. afterwards, submit the form ...
    function submitInfo() {
    top.frames["frameName"].document ... // branch for NS and IE
    document.forms["currentForm"].submit();
    }

  • IllegalStateException whit Frames using JSP

    Hi friends!
    I have a huge problem. I have 2 servlets and 2 JSPs, my first servlet (QueryServlet) forward normally. but in the second Servlet (PersDataServlet) not. appears an Exception like this: IllegalStateException: Cannot forward after response has been committed
    here, attach the source of my two servlets and how i forward.
    Query Servlet :--------------------------------------------------------------------------------------------------------
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    try{//obtendo la data del ResultSet y la paso al ResultBean
    QueriesManager qm = new QueriesManager();
    ResultSet rs = qm.obtenerBuscar(request.getParameter("valor"),Integer.parseInt(request.getParameter("Criterio")),request.getParameter("stat"),request.getParameter("ubicFis"));
    Collection beanList = new ArrayList();
    while(rs.next()){
    ResultBean rb = new ResultBean();
    rb.setDni(rs.getString("cod_dni"));
    rb.setNomCmpl(rs.getString("completo"));
    rb.setCod_stat(rs.getString("cod_stat_pers"));
    rb.setStatus(rs.getString("txt_status_pers"));
    rb.setUbic(rs.getString("txt_ubicacion_fisica"));
    beanList.add(rb);
    ResultBean list = new ResultBean();
    list.setBeanList(beanList);
    //almacenar resultBean en el Request
    request.setAttribute("resultBean",list);
    catch(SQLException se){
    System.out.println("Error al manipular el ResultBean, "+se);
    try{
    //redireccionar el request al JSP para mostrar
    getServletConfig().getServletContext().getRequestDispatcher("/resultado_busca.jsp").forward(request, response);
    catch(IOException io){
    System.out.println("Error al redireccionar el resultado, "+io);
    PersDataServlet :------------------------------------------------------------------------------------------------------------
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    try{
    QueriesManager qm = new QueriesManager();
    ResultSet rs = qm.obtenerPersona(request.getParameter("id"),request.getParameter("opt"));
    rs.next();
    //storingResultSet in the Request
    request.setAttribute("per",rs);
    catch(SQLException se){
    System.out.println("Error al manipular el ResultSet, "+se);
    try{
    String req = request.getParameter("req")+"?stat="+request.getParameter("stat")+"&param="+request.getParameter("param");
    //forwaring the request to the JSP
    getServletConfig().getServletContext().getRequestDispatcher("/"+req).forward(request, response);
    catch(IOException io){
    System.out.println("Error al redireccionar el resultado, "+io);
    ================================================================================
    In both cases, the servlets implements SingleThreadModel, even without it crash anyway.
    Please, help me.
    ThaDark

    In a servlet output is via the Writer or outputStream
    Writer out = response.getWriter()
    out.println("Hello World!");
    In a JSP, any of the HTML (ie non JSP scriptlet code) is counted as output.
    ie all the template HTML stuff, output from any custom tags, anything that writes to the output stream.
    <html>
    <body>
    All of this stuff counts as being output
    <%
    // This stuff here does not, because we are just executing java code
    String s = request.getParameter("testParam");
    %>Basically - anything that shows up on your HTML page at the end of the day is "output"
    When you forward a page, any output already buffered has to be cleared, for the new page to send the response fully.
    If you output more than the buffer of the page, or the buffer gets flushed, then you can't cancel the output, and it is invalid to forward (Illegal State Exception)
    Does that clear things up?

  • Adding a link into a frame in jsp

    Hello all,
    Please see below code, which will give me a frame in a page and frame source will be previous page url.
    CAN I ADD A LINK OR BUTTON AT LINE NO: 5
    <script language="JavaScript">
         var self= window.opener.location.href;
         function fillFrame() {
              parent.frame1.location.href = self;
    // CAN I ADD A BUTTON AFTER THIS LINE NO: 5
    </script>
    <frameset rows="100%" onload="fillFrame();">
         <frame src="" name="frame1" id="frame1" />
    </frameset>
    WHEN I AM WRITING
    parent.fame1.document.writeln(" Text here ");
    it shows only Text here in the page and it doesn't show the previous page.
    Any help??????????????

    If you are a developer then you will be better off asking in the developer forums : https://devforums.apple.com/index.jspa

  • Error in accessing pageContext or current session for JSP/servlet in frames

    I am creating a web application on iPlanet application server (ver 6.0 SP4) and display a page
    consists of frames in web browser (IE6). The framset and the content of each frames are
    JSPs or servlets. There where no problem to display each content frames individually at all.
    However, when the overall page (the frame set and the 3 frames) is displayed, the following
    problem occurs.
    Only the outermost frameset and just one or two of the frame contents displayed successfully
    in browser. Others have either 1 of the following errors:
    1. When accessing pageContext object in _jspService routine when displaying the JSP page, Null
    Pointer Exception occurs:
    java.lang.NullPointerException
    Exception Stack Trace:
    java.lang.NullPointerException
    at jsp.APPS.intl.acct_type_option._jspService(acct_type_option.java:653)
    2. When calling the req.getSession method in doGet() method for servlets, the following
    exception occurs:
    Exception in doGet(): This session has already been invalidated
    The occurance of error is random among all the frames. With the frame on top or left size
    having the most chance to be displayed successfully.
    It seems that the Application server cannot entertain 3 or 4 requests simultaneously (which
    happens when displayed a page consists of frames), having some of them throw an exception.
    Are they any tuning or setting for iPlanet server to overcome this problem?

    I'll give you the same advice as I have been given regarding the use of frames.
    Don't use them at all. Use scrollable DIV's instead.
    The use of frames is such that you would have different JSP's who cannot collaborate together since each is in his own frame and does not know about the others.
    In case I'm mistaken, I'd like to hear about it, but the combination of JSP's and frames is an unhappy one.

  • JSP Frames

    Hi,
    How do you manage Frames with JSPs.
    By definition you have the following structure:
    Page1 = FRAME Page - Defining the two pages
    Page2 = Header
    Page3 = Details
    Basically, what I am trying to do is when the user clicks on a link a popup window appears with more details. This is working so far, however, I would like to have a static header to the popup window - hence frames.
    At the moment I am implementing the following:
    window.open(customerdeatils.jsp?cust=1234, 'fullPopup', features)
    How would I manage this with Frames and I would have to pass a value to the frame page(Page1) which in turn would pass a value to the Details page (Page3).
    Thanks
    Angus

    to pass parameters between frames you to define one hidden frame(means width=0 and heigth=0) and to declar there variables. you can access to any frame using it's parent frame and so on

  • FORM and JSP in the same page

    Hello All
    Is it possible to pass variable from a html textbox to a JSP? but they both are in the same page.
    For this purpose, I have a created a index.html, which contain two frames, top.html and bottom.jsp. There is a textbox in the top.html, it collects 2 variables and use form action "POST" to call bottom.jsp to display a graph.
    However after I run this page on Tomcat, it gave me error message in the bottom.html:
    The server encountered an internal error () that prevented it from fulfilling this request.
    Can anyone teach me how to solve this problem? Thanks a lot
    Viola
    index.html
    ===============================
    (FRAME) top.html
    <form action="bottom.jsp" method="post">
    <input type="text" name="apple">
    <input type="text" name="orange">
    ===============================
    (FRAME) bottom.jsp
    String apple = request.getParameter("apple");
    String orange = request.getParameter("orange");
    use those two variables to do something
    and display a graph

    The problem is that both pages are loaded @ the same time so when the getParameter gets executed the parameters are null and this is the probable cause of your error. Another problem is the action in form will cause the bottom to go into tops frame and not have anything to do with the other frame. If you want data to go from one frame to another while the user still sees them look @ DHTML, JavaScript and IFrames.
    HTH,
    J.Clancey

  • Need a fast answer... passing javascript variable to jsp page (how to use)

    This test application has 3 frames.
    I'm assigning a value "stuff" to a variable ("testfield1") in a javascript function ("getTest") that exists inside an html frame (testpage1.html)
    Then, I click on the "test submit" hypertext link to pass the value of "testfield1" to the JSP frame (testpage2.jsp) by invoking a function ("getData") in "testpage2".
    In function ("getData"), I am passing the variable "testfield1" as a parameter to the "getData" function in "testpage2".
    In "testpage2" - in the ("getData" function) I try to assign the value of the variable "testfield1" to another variable called "testfld1".
    Then, I try to extract the value of "testfld1" into a variable called "tstfld1" in a JSP scriptlet
    ....I.E. [ String tstfld1  = request.getParameter("testfld1");  ]
    But, the value is apparently not passed successfully, as tstfield1 appears to be "null".
    Can anyone explain what I'm doing incorrectly?
    The code for this test app is below...
    ********testpage0 - the parent frame*********
    <HTML>
    <HEAD>
    <TITLE>GlobalView Reports and Trending Menubar</TITLE>
    </HEAD>
    <FRAMESET FRAMEBORDER="0" ROWS="15%,85%">
    <FRAME SRC="testpage0.html" NAME="testhtmlparent">
    <FRAMESET FRAMEBORDER="0" COLS="23%,77%">
    <FRAME SRC="testpage1.html" NAME="testhtml">
    <FRAME SRC="testpage2.jsp" NAME="testjsp">
    </FRAMESET>
    </FRAMESET>
    </HTML>
    *******testpage1.html********
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <html>
         <head><title>testpage1</title>
         <link rel="stylesheet" type="text/css" href="./standard.css">
              <script LANGUAGE="JavaScript">
              parent.frames[2].location = "blank.html";
              function getTest(reportType)
                   testfield1 = "stuff";
                   alert("testpage1.html...testfield1=" + testfield1 + ", reportType=" + reportType);
                   parent.frames[2].location = "testpage2.jsp";
                   parent.frames[2].getData(testfield1);
                   return;
              </script>
         </head>
         <body bgcolor="#FFFFFF" text="#000000">
              <form name="reportRange">
                   <center>
                        <fieldset style="padding: 0.5em" name="customer_box">
                        <table cellpadding="0" cellspacing="0" border="0">
                             <tr class="drophead">
                                  <td valign="top" height="0" ><span class="drophead">
                                       test submit
                                  </td>
                             </tr>
                        </table>
                        </fieldset>
                   </center>
              </form>
         </body>
    </html>
    *******testpage2.jsp*********
    <%@ page language="java" import="java.io.*, java.util.*" errorPage="error.jsp" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <html>
         <head>
         <title>testpage2</title>
         <script language="JavaScript">
              function getData(testfield1)
                   alert("testpage2.jsp...testfield1=" + testfield1);
                   document.pageData.testfld1.value = testfield1;
                   document.pageData.submit();
         </script>
         </head>
         <body>
              <%
                   String error;
              %>
              <div id="HiddenForm">
                   <form name="pageData" method="post" action="testpage2.jsp" target="_self">
                   <input type="hidden" name="testfld1" value="0">
              </form>
              </div>
              <%
                   String tstfld1 = request.getParameter("testfld1");
              %>
              <P> testfld1 = <%= tstfld1 %> </P>
         </body>
    </html>

    parent.frames[2].getData(testfield1); is in testpage1.html
    so in the document.pageData.testfld1.value = testfield1; document = testpage1.html( not testpage2.html)
    modifying the getData to accept the document object, and refering this object to parent.frames[2].document may help you.
    good Luck ....

  • How to display RTF File in Browser Using Servlets/JSPs

    Hi All,
    I have some RTF Files, which contains some data.
    The data needs to be displayed in the frame of jsp page .
    How i can display the RTF File Content using either servlets/jsps
    Can any body have idea on this.
    Help me out on this.
    With Regards
    Hari

    If you only need to display it, consider your HttpServletRequest just as byte stream. :) Just read from ServletInputStream and write it back into ServletOutputStream of HttpServletResponse.
    If you want to process incoming XML, please give some details first, what exactly you want to do. :)

Maybe you are looking for

  • How do I get the Itunes Music Library to stop showing and asking me to purchase the songs I have drug in for playlist?

    How do I get the Itunes Music Library to stop showing and asking me to purchase the songs I have drug in for playlist?

  • Read PI table during mapping

    Hi All I have requirement where i need to read custom table created in SAP PI ABAP stack during the mapping. Can you please tell me how to do it? Thanks for your inputs. Cheers AN

  • IP address change in Solaris 10

    Hello Friends while installing solaris I gave some ip address to computer say 192.168.100.x .. , now after installation I have been asked to change the Ip address to some other series say 172.168.100.x , and this IP address should reflect even if reb

  • Fast XML parser for java 1.1.8

    Hello! I have to following problem. I am using at the moment kxml2 to parse XML data and it could be faster. The data is parsed in a application running on different digiboxes, which use java version 1.1.8(IIRC). Anybody here who knows of a smallish

  • New feature suggestion:  Graphic Pitch Adjustment

    Hey all -- Digital Performer user here, but soon to make the move to Logic (as soon as the new desktops come out in 2008). There is just one major time-saving feature I am missing in Logic, and I thought I'd post it here. I've also sent this suggesti