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

Similar Messages

  • Form and report on the same page...

    Hi,
    I want to have a form and report on the same page... as soon as user enters the information and submit the form via button then the report should be able to display the addition...
    may I know how to accomplish this...
    Thanks in advance

    Hi
    Can you try like this
    1.First create an empty page and add a html region and template as form region and add the necessary fields to insert into table
    2. create a another region with type as "SQL Query" and template as report region and add the necessary fields for the reports.
    Once u entered the details into form region and created process and insert into table and then automatically the report region query will fetch the recently added row and displays in the report.
    Hopes this might helps you.
    Thanks & Regards
    Srikkanth.M

  • How to do a partial refresh of a form and report on the same page?

    Hi all,
    im trying to make a page where you have a report on top and when you click the link instead going to the form page, the form page is on the bottom of the report. lets say im trying to send an id from the report to the item below so that i could fetch the rest of the item. however when i pass,other items would still refer to this one as null.
    if im not mistaken this could be done with submit,but i want it to be partial refresh..
    i tried steps here but this only worked when the lower part is a also a report:
    https://forums.oracle.com/thread/2345863
    i also tried this,but this actually submits a page..
    Grassroots Oracle: Apex Tutorial - Form &amp; Report sharing the same page
    would it be possible to get a form and report in one page as partial refresh?
    Message was edited by: T101_cyberdyne

    If so, you need to create a dynamic action with a javascript action to set the id of the report row in the id form field, and a subsequent pl/sql action to fetch the record based on the id. You can use this record to set the other form field items.
    For the example in the above link the code looks as follows.
    the javascript action:
    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text()
    $s('P26_EMPNO',empno)
    the PL/SQL action:
    declare
    cursor c_emp is
    select * from emp
    where empno = :p26_EMPNO;
    BEGIN
    for r_emp in c_emp loop
      APEX_UTIL.SET_SESSION_STATE('P26_ENAME',r_emp.ename);
      APEX_UTIL.SET_SESSION_STATE('P26_JOB',r_emp.job);
      APEX_UTIL.SET_SESSION_STATE('P26_MGR',r_emp.mgr);
      APEX_UTIL.SET_SESSION_STATE('P26_HIREDATE',to_char(r_emp.hiredate,'dd-mon-yyyy'));
      APEX_UTIL.SET_SESSION_STATE('P26_SAL',r_emp.sal);
      APEX_UTIL.SET_SESSION_STATE('P26_COMM',r_emp.comm);
      APEX_UTIL.SET_SESSION_STATE('P26_DEPTNO',r_emp.deptno);
      APEX_UTIL.SET_SESSION_STATE('P26_ORDNO',r_emp.ordno);
    end loop;
    END;
    Hi Vincent,
    Yes! im looking for something similar. This looks interesting. I did look into apex_util.set_session_state yesterday but didnt know how to apply. perhaps i was doing it wrong.
    Question though, so basically first use the javascript to send the EMPNO from top report to the EMPNO in the form fields below.
    Then based on the EMPNO received in the form, do a loop to get the rest and put it into session. Correct?
    if i'm not mistaken i did something similar,but when i tried to set session for the rest,it refers to to the p26_EMPNO still as null..does the javascript sets the id of report to the id of the form or does it just send over?
    i'll try it out.
    Thanks.

  • SpryValidation and DependentDropdown in the same page

    hi,
    With "SpryValidation" and "DependentDropdown" in the same page
    SpryValidation, on "Submit" event, doesn't work
    Any solution??
    Thanks
    Gabriele

    Hi Gabriele,
    when checking some code located in some file in the "includes" folder, it seems that the onsubmit event is already "captured" by ADDT´s own clientside form validation routines.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • How to get a form to appear on the same page when a button is clicked?

    Hi,
    I have a report on a page with a create button. When a user clicks the create button, a form should appear on another region in the same page....how do i go about doing this?
    I know how to do this if the form is on a different page, but i'd like the form to appear on the same page as the report and only when the button is clicked.
    Thanks.

    Hi,
    I did the following, but it didnt work....
    1) Created a hidden item on the page, and in the Default Value field, I set the value to N.
    2) Created a button in the report with the following values under "Optional URL Redirect":
    Target is a: Page in this application
    Page: 4
    Set these items: P1_SHOW_FORM
    With these values: Y
    3) Created a form of HTML text type with the following values under "Conditional Display":
    Condition Type: Request=Expression 1
    Expression 1: P1_SHOW_FORM='Y'
    What have I done wrong or have i missed something?
    Thanks.

  • How do I type Hebrew and English on the same page

    How do I type Hebrew and English on the same page in Indesign?

    What version of InDesign are you using? And on what operating system? Switching keyboard ("input methods") is in your OS, not in InDesign. InDesign has had the capability to display right-to-left languages since CS4, but only the Middle East edition has the abilities to actually manipulate Hebrew text. If you're trying to do a bilingual, bidirectional document, you'll need the ME edition. If you are a CC subscriber, it comes with your subscription; if you are not, you'll need to buy another version of ID, or a plugin that will allow you to access those RTL features.

  • How do I combine text and photos on the same page in iPhoto using photobook

    How do I combine text and photos on the same page in iPhoto using photobook?

    You mean while creating a book in iPhoto?  Click on the layout button while viewing a page and select the layout that includes both text and photos.  Most themes will have those options.
    OT

  • Everytime I try to pay with my cc on paypal, I enter all of my infor and after I press the "review and confirm" button the same page reopens but has erased only my cc #, exp date and security cvv number. What could be wrong?

    b.stats.paypal.com : server does not support RFC 5746, see CVE-2009-3555
    This appears on my error page everytime I try to use my credit card through paypal. I enter all of my info (billing, etc..) and after hitting the "review and confirm" button the same page reappears and has erased my cc number and leaving my name and billing info. What can I do to finish my transaction?

    The message about CVE-2009-3555 is meant for webmasters to make them aware that they need to fix their servers.<br />
    Firefox 3.6 versions can detect such a misconfiguration and displays a warning in the "Tools > Error Console".<br />
    * http://wiki.mozilla.org/Security:Renegotiation
    You may have a problem with the PayPal cookies.
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    See also:
    * http://kb.mozillazine.org/Cookies#Removing_cookies
    * [[Cookies]]
    * [[Enabling and disabling cookies]]

  • Can I print before and after on the same page?

    Hi everyone.
    I'm really proud of my editing on a particular image.  I want to print the before and after on the same page, just like I can see the before and after side-by-side in the Develop mode.
    Is this possible?
    Thanks for your help.

    Yes but you will need to make a virtual copy by going to the menu:
    Photo >> Create Virtual Copy
    Then open copy 2 in the Develop module and from the history panel change the setting to the time of import (usually the bottom of the list) or use the re-set button to get back to the original file from camera.
    You can then select copy 1 & 2 and go to the Print module to set up your page with both images.

  • I use "element 12" and want  like in the old PS version due Automating and Contact  II upload multiple filesand print them with any columns and rows on the same page . How does it work?

    I use "element 12" and want  like in the old PS version due Automating and Contact  II upload multiple filesand print them with any columns and rows on the same page . How does it work?

    Can you supply a link?

  • How can I put report parameters and report on the same page?

    I want to have a page that has user input (text fields, checkboxes, radio buttons, etc.) at the top of the page, with a submit button. When the user submits the page, I want the resulting report (returned from a query) to display below the input area.
    With ASP or JSP I would write a page with a FORM at the top, with the ACTION submitting to the same page. If the ASP/JSP detects it was submitted (by looking at the request URL or form parameters), it queries the database and displays the report; otherwise it doesn't query the DB or show any report.
    How would I do this with with portlets?
    Thanks!

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Hui Zeng ([email protected]):
    1. Create a form using the Appbuilder
    2. build a report
    3. create a dynamic page, in this page
    call the form, then query the databse:
    <oracle>
    begin
    portal30.wwa_app_module.new_instance(
    p_moduleid=>1060253649);
    end;
    </oracle>
    <p>
    <oracle>
    begin
    scott.example_report.show(
    p_arg_names=>portal30.wwv_standard_util.string_to_table('_show_header'),
    p_arg_values=>portal30.wwv_standard_util.string_to_table('NO')
    end;
    </oracle>
    4. expose this dynamic page as a portlet <HR></BLOCKQUOTE>
    I tried the above, but it didn't work. The form was displayed, but I couldn't find any way to make it go to the report. Is there something more that needs to be done? I'm new to Portal, so any help you can give me on entering parameters and passing them to a form (preferably on the same physical page) would be appreciated.
    null

  • Master and detail in the same page

    db11xe , apex 4.0 , firefox 24 ,
    hi all ,
    i am trying to insert the master and detail data in one step in the same page :
    i have two tables (clients) and (tests_administered)
    the client table's region contains theses items
    client_id
    client_name
    the other table's region contains these columns -- the tabular region
    row selector
    test_admin_id -- pk,  hidden
    client_id          -- hidden , this is the one i should populate with values
    and more columns
    i've done this :
    1- removed the condition of the tabular region .
    2- Added the request CREATE to the list in condition of the APPLYMRU process -- or :request like ('CREATE')
    3- Added new process with following code : -- with sequence before the applymru process and after process row of clients process
    for i in 1..apex_application.g_f02.count
    loop
    apex_application.g_f02(i) := :p2_client_id ;
    end loop ;
    but nothing happened . why ? what did i miss ?
    thanks

    Hi,
    Create a Master Detail Form through the APEX Wizard 
    Make sure you choose the Primary Keys for the Master Detail as one of your Column and not the ROW ID.
    Selecting an existing Sequence for the Primary Key is preferred.
    Select the option the where your Master and Detail appears in the same page.
    Initially when you run the page your master and detail will not appear at the same time in the page when your Master Detail Form is in the entry form mode. For this you have to go to your Tabular Form(Detail Form) region, and below you will have to remove the Condition for the display of your Tabular form and set it to “No Condition”.
    Now when you run the page both the Master and Detail form will appear together in the create mode but you will not be able to insert or create both master and detail records at the same time when u click the create button. For this the following needs to be done: You need to create a PL SQL Tabular Form process :
    Let's say your master form is based on DEPT and your detail tabular form is based on EMP. Make sure the following things are configured:
    The DEPT insert/update DML process runs before the new tabular form PLSQL process. (ie) the new PL SQL Tabular Form Process that you create should be inbetween Automatic Row Processing(DML) and Multi Row Update Process , so create the new Tabular Form Pl SQL process with a sequence number inbetween these two Processes.
    Make sure you choose Tabular form while creating this PL SQL process.
    The new tabular form PL/SQL process executes the following as the source
       :DEPTNO := :P1_DEPTNO;
    Where DEPTNO is the Foreign Key column in the Tabular Form that links the Primary Key Item P1_DEPTNO of the Master Form.
    Finally this new PL SQL process conditionally runs when DEPTNO is null, so you need to add the following condition to the process:
    The final step to accomplish in creating both the Master and Detail records at the same time is to make a change in the condition of the Multi Row Update Process. :request in ('SAVE','CREATE') or :request like 'GET_NEXT%' or :request like 'GET_PREV%'
    -We make this change so that records get inserted into the Detail table when we click the ‘’Create” button.
    Now you can Run your page and create both the Master and Detail records at the same time.
    Thanks and Regards,
    Madonna

  • LOV SELECTION AND REPORT ON THE SAME PAGE

    Hi Friends ,
    Here is what i am requesting your help ...My requirement is to show one dropdown /lov and a report underneath it ..like if you have selection 1.pa 2.ky 3.ny 4.nj
    in the lov and if user selects nj onchange the report should show up on the same page ??? Is it possible in portal using forms and reports or ?? If so please help ???
    Vis

    Hi,
    You can use javascript to do this. In the onChange event you can call a new url.
    window.open(new_page_url_with_report);
    Thanks,
    Sharmila

  • Parameter screen and report in the same page?????

    Hi Gurus...
    Here is what i am trying to do ..I am trying to show the customization screen and the report in the same page
    1.the user selects some data from the lov ..
    2.Based on the lov selected field the below report should change ..
    like if the user selects PA in the lov the bottom should show all the data in PA ..
    This is possible in pl/sql calling htp calls ,But is there any way to do this in portal ????
    Thanks in advance
    Sing

    Hi,
    Sorry I forgot to give you some sample code of the dynamic page.
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H1>Example of A Dynamic Page</H1>
    <ORACLE>
    begin
    report1.show_parms;
    end;
    </ORACLE>
    </BODY>
    </HTML>
    In the above code this dynamic page is calling the customization form of a report called report1.
    Thanks,
    Sharmila

  • Delete and stay on the same page!!!!

    Hi guys,
    As elaborated in the following Picture:
    http://www.9m.com/upfiles/PlT97853.png
    I have a report and a form on the same page. When press delete I want to delete the checked boxes and refresh "DOWNLOAD" region or stay on the same page.
    NOTE: "The Action" Of delete button is - Submit page.
    I hope my question is clear and look forward to get help.
    Thanks In Advance,
    Fateh

    Hi,
    Can you please create a branching statement under after processing, you can refer the same page itself. So after deleting process it will come to same page.
    Hope this might help you.
    Thanks & Regards
    Srikkanth.M

Maybe you are looking for

  • Proxy settings moved from User to Machine not removing user settings.

    Hi All, I have recently moved our company's proxy settings from User based to Machine based as we were having issues after moving from an internal proxy to a hosted external proxy.  What we found was after turning off the internal some users were no

  • HT1338 How do I view on my TV photos which I have burned to a disc?

    How do I view on my TV photos that I have burned to a disc?

  • DNS Error - Event ID - 4015

    Recently I added a 2012 DC to my existing AD forest. All went well but after somedays when I checked my DNS event logs in the 2012 Domain controller, Saw 4015 event error popping every 30 mnts. I ran DCDIAG /Test:DNS, below are the results. Help requ

  • Can I use "~" in Automator instead of user's home folder?

    I want to create an Automator action that I send to someone that can put a file in their iTunes Folder. If I create it on my computer however, Automator uses the actual file path to MY iTunes Library. Is there a way to use the "~/Music/iTunes/" to ha

  • Problems with JTable

    Hi All, I am facing some problems in JTable : 1) How to remove all lines between cells, neither i should have column nor row lines....there should not be any lines between any cell at all. 2) If i select a perticular cell, complete row is getting sel