Send a request without leaving the current page?

Hi,
I got a question here:
In a jsp page, when the user changed a option in a drop down box, I want the page to send a request to the server doing some operations on the database(probably use a bean) but still stay at the current page. How can I do that?
Another simple question is:
There're 10 elements/components in a FORM, and the user is changing the options in a drop down box (one of the 10 elements/components). Is there any way I can know which elements/components the user is playing with ?
Thanks in advance!

it is your own risk to your applets to communicate with DBs because nobody suggests that. I agree with the Javascript story and the frames. It can be done but i thought he wanted to do that in one single page. And finally, i dont trust frames that much. I have seen many times the 404 error found on pages and because i use dynamic pages i have to make connection for each frame. and with throusands users being online it is bad for my server (traffic).

Similar Messages

  • Can we send a request without knowing the actual url..

    Tomcat is running at the back.
    I know the port no on which the server is running now.
    Can we send a request to the server even if we dont know the exact url
    for example I developed a form which authenticates the user, after authenticating the url will be some thing like this
    http://localhost:8090/temp/AdminRegister?uname=user?pass=user123now can the user login even without knowing the exact username and password by manipulating the url..

    it is your own risk to your applets to communicate with DBs because nobody suggests that. I agree with the Javascript story and the frames. It can be done but i thought he wanted to do that in one single page. And finally, i dont trust frames that much. I have seen many times the 404 error found on pages and because i use dynamic pages i have to make connection for each frame. and with throusands users being online it is bad for my server (traffic).

  • Button click without "refresh" the current page. Please help

    Hi everyone:
    Here is my code:
    Code:
    <HTML>
    <HEAD>
    <TITLE>Parallel Port</TITLE>
    </HEAD>
    <BODY>
    <H1 ALIGN="CENTER">On/Off Bit0 of server's parallel port</H1>
    <form name="myform" action="robotcontrol.jsp" method="POST">
    <input type="hidden" name="action" value="<%=action%>">
    <INPUT TYPE="SUBMIT" VALUE="set/reset">
    <jsp:include page="./VideoToApplet/htmlroot/index.html" flush="true" />
    </form>
    </BODY>
    </HTML>
    everytime i click the button, it will perform (set/reset) parallel port, and i have include a html page which consist a video streaming applet.Maybe cause of this:
    <form name="myform" action="robotcontrol.jsp" method="POST">
    So.. please help !! Thanks in advance.
    but unfortunately, everytime i click on the button, it will likely refresh the page, and the applet will auto reconnect to camera,(it take time to reconnect)..

    Inside the body of JSP/HTML page, at the end of <BODY>, paste this small script.It will refresh your page automatically after 20 seconds, that is nothing but the value assigned to V.You can assign the time interval as you wish.
    <SCRIPT language="javascript">
         var ONESEC = 1000 ;                    // One second (in ms)
         var V = 20 * ONESEC ;
         var ONEMIN = 60 * ONESEC ;     // One minute (in ms)
         var INTERVAL = 1 * ONEMIN ;               // How often is page refreshed (in ms)
         window.setTimeout(function(){
                                            window.location.reload() ;
                                            },V) ;
    </SCRIPT>

  • In the middle of writing an e-mail, a pop-up occurred asking me whether I really wanted to leave the current page. I kept clicking on the stay-on-page answer, but it wouldn't respond.

    After trying MANY times to get it to work, I tried to shut down my computer. Firefox prevented this and shot me back to their pop message (which wasn't responding to my attempted answer). It wouldn't accept any answer (stay or leave).

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Sending the current page in a mailto link

    I want to create a mailto link that will attach the url of the current page to the body of the e-mail message.
    I have created a display only item and added the following code to the default value:
    <anchor href='mailto:?subject=Please Review the attached Lessons Learned&body=Please review the following Lessons Learned: Copy and Paste link here'>Send the Lesson Learned for Review</anchor>
    (I have replaced the a tag with anchor so the code will show up)
    This is working and opening up the mail client with a blank recipient list and the subject and body filled in. Now where I have "Copy and Paste link here", I would like for the URL of the current page to be filled in. Is there a way to do this?
    Thanks,
    MIchelle

    Hi
    I use the following computation for the field, which is used as a parameter of a send_mail procedure.
    SERVER_NAME and DAD NAME are described somewhere in APEX help - they are usefull if you need to switch between development/testing/production environment with different server host names and Oracle database names.
    P50_INTEREST_ID contains the value to be set on the linked page 38, more precisely to it's attribute P38_INTEREST_ID. The value could be reffered also as v('P50_INTEREST_ID') or &P50_INTEREST_ID. instead of :P50_INTEREST_ID.
    IAL_NICKNAME is an application variable containing users nickname.
    Roman
    'Hi,' ||
    CHR(13) || CHR(10) || CHR(13) || CHR(10) ||
    'Please, look at ' || 'http://' || owa_util.get_cgi_env ('SERVER_NAME') || '/pls/' || owa_util.get_cgi_env ('DAD_NAME') || '/' || 'f?p=' || V('APP_ID') || ':38:::NO:38:P38_INTEREST_ID:' || :P50_INTEREST_ID || ' .' ||
    CHR(13) || CHR(10) || CHR(13) || CHR(10) ||
    V('IAL_NICKNAME')

  • How do I stop "Are you sure you want to navigate away from this page? Press OK to continue, or Cancel to stay on the current page." from comeing up. It is new. Just started doing it yesterday morning.

    I have used FireFox to play the Game Kingdoms Of Camelot, a facebook game. I also have Grease Monkey and a 3rd party add on. I leave it running 24/7 to gather food in the game for my army. It has run smoothly for 6 mo. Yesterday 2/04/11 in the morning it started asking for conformation when the page refreshed. i want to know how to stop this Box from comeing up it will not continue without refreshing and will not refresh untill th question is answered. It says "Are you sure you want to navigate away from this page? Press OK to continue, or Cancel to stay on the current page."

    You're not going to stop it, and out here, what's illegal?
    What it boils down to is a matter of ethics, and it's wrong. But the web
    techies build this feature into their sites because they know somebody
    is going to fly in off an engine like Google or MSN. And take something,
    like a picture. Without stopping in and signing up or something else.
    But what if I or you is out collecting stamps or avatars or wallpapers,
    and have already taken a quiz, or signed up for a product? I've already
    done that...but the site developers who use this ingenious(hijacking)
    software don't see it that way, and don't care if you just got a computer
    and want to pick up something here or there. Those sites don't get
    anything when you visit and don't leave your number. I don't what
    these 19 tracking cookies are for, do you?
    "A liar should have a good memory" Scottish saying

  • How to remove Bean from session upon leaving the web page?

    Hi...
    I got the following problem
    I promote a user with a Datatable filled with data, each time the user enters the webpage with the table I go the DB and retrieve all relevant data again (so each time the user gets an OnLine representation of the DB)
    to archive that I defined the bean that pulls data from DB in Request scope. and it worked well... but now i added an option to export the table into Pdf made by a servlet.... now to be able to get the bean from the servlet i had to change the scope of the Bean to Session Scope... and all works fine.. BUT... now the page not showing OnLine representation of the DB.. cause its only created once , cause its inside Session Scope...
    My question is how can I remove the Bean from Session scope upon the user leaving the page (I don't want to remove the bean from session scope on the next called bean of the other page) i want to remove the Bean upon leaving the current web page... Or maybe force the constructor to be executed each time the Page is loaded (as if it was a Request scope bean)....
    Any ideas?
    Thanks ahead!
    Daniel.

    Hi,
    When you are moving to another page, you are performing an action right ?
    (i mean the request moving to Server side), if you do so, then clear the bean object values list.
    for example :
        private List<Integer> intList = new ArrayList<Integer>();
      public void clear()
       intList.clear();
    or
    store a new object in session, when ever u moved to the second page, so that the old object will be no longer
    in use, so it will be garbage collected.Regards,
    Sathya.

  • How can I get the current user and the current page?

    Hi everyone
    Question..
    It is possible to get the current user (from the user's database on apex) and the current page? (I mean, if I'm in page 4 be able to query a variable / function or something which could give me the current displayed page)
    Thank you very much... I'd been researching without success :-S so I'll appreciate your help
    Regards,
    Fury

    Fury,
    If the user has authenticated, :APP_USER is the name that was used. The current page id is in :APP_PAGE_ID.
    Although I showed bind variable notation for those, & substitution format and v() notation are also available for referencing developer-defined items or built-in names. See the User's Guide for more details.
    Scott

  • In version 8 the "stop loading the current page" icon is missing. How do I get it back?

    I just installed version 8, and even though the features page says that the "stop loading the current page" will be a part of the default navigation toolbar, that icon is not on the toolbar. How do I get it to be there

    In Firefox 4 and newer versions, the Go, Stop and Reload buttons are combined in one button at the right end of the URL or Address bar. The button changes depending on the activity:
    *green Go arrow when typing in the address bar
    *red Stop ("X") button while page is loading
    *gray Reload (circular arrow) when page is finished loading.
    See image at the bottom of this reply
    Separate buttons are possible:
    #Open Customize Toolbar window by clicking Firefox button > Option > Toolbar Layout '''''OR''''' clicking View > Toolbars > Customize if using the Menu Bar '''''OR''''' right-click in an empty space on a toolbar and choose Customize
    #<u>While the Customize window is open</u>, Stop and Reload buttons will show separated between the address bar and the search bar
    #<u>While the Customize window is open</u>, drag the buttons anywhere on the Navigation toolbar
    #*order Reload-Stop will combine into one button
    #**leaving in this order between URL/Location/Address bar and Search bar will cause it to re-combine with the "Go" button at the right end of the URL/Location/Address bar
    #**leaving in this order elsewhere, the Reload and Stop buttons will combine into one button
    #*order Stop-Reload will remain separate buttons
    #*or drag a "Separator" from the Customize window between Reload-Stop and they will remain separate
    #click Done at bottom right of Customize window to finish
    See: https://support.mozilla.com/en-US/kb/how-do-i-customize-toolbars
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Back button doesn't work due to multiple history entries for the current page. How can I fix this problem?

    This problem started February 2015. I have noticed it mostly while searching ebay. When I hit the back button it did not work. I right clicked the back button and found at least 2 and sometimes up to a dozen duplicate history entries for the current page I am on, meaning I would have to click the back button a dozen times to get to the previous page. I am using Firefox 35.0.1 on a Vista computer. I have not found any fix for the problem after searching the internet for hours. I have seen similar issues with people using IE and some say the duplicate entries are caused by banner ads but still no one has provided a good answer or fix for the problem. Please help.

    I will leave further answers to users of ebay. Script or adblockers may ease the problem.
    * Try this add-on search [https://addons.mozilla.org/en-US/firefox/search/?q=blocker&platform=windows&appver=35.0&sort=users blocker] (Windows)

  • Return url for the current page

    Hi,
    I would like to know how to return the url for the current page?

    These are my preferred choices:
    request.getRequestURI() will give you the relative path from root. For example:
    /mypages/thepageIamon.jsp
    request.getRequestURL().toString() will give you the full path. For example:
    http://www.mysite.com/mypages/thepageIamon.jsp
    Hope this helps.

  • Can Skype send contact requests without your knowl...

    My daughter received a contact request from a man that I know. He is denying any knowledge or that he sent it. Does skype ever send contact requests without your knowledge? For example, could it access your email contacts and then search for linked skype accounts and send them contact requests without you knowing? Need to know if this is possible before reporting this person. Thank you.

    Mjm28 wrote:
    1. Does skype ever send contact requests without your knowledge?
    2. For example, could it access your email contacts and then search for linked skype accounts and send them contact requests without you knowing?
    Hello
    1. Absolutely NOT!
    2. No. These are private to the users. You should consider reporting this matter to the Police without delay.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • I am trying to print all the PDF pages in a range of 5 pages but can only print one page at a time . . . It will print the current page, but not all or pages 1-5.  Can this be overcome?

    I am trying to print all the PDF pages in a range of 5 pages but can only print one page at a time . . . It will print the current page only, but not all or pages 1-5.  I need to go to the next subsequent page and command to print current page; continuing with this procedure until all pages are printed one at a time. Can this be overcome?

    You can use printPages(1, 5), however I need to know how you print current page.

  • I have an iphone 4 and after updating it to the ios5 software, it will not allow me to activate nor allow me to leave the setup page. i cannot even restore it. does anyone know what to do?

    i have an iphone 4 and after updating it to the ios5 software, it will not allow me to activate nor allow me to leave the setup page. i plugged it into itunes and it is stuck there too... i cannot even restore it. does anyone know what to do?

    I have had this same issue but thankfully fixed it. Follow he steps below:
    Sync your iPhone with you iTunes therefore your info is backed up. Unplug your phone.
    Go to Settings > Reset > Erase All Content and Settings
    Once your phone has reset and come back on answer the question until it asks if you want to back up from itunes Click this then plug your phone in.
    After everything has sync'd back to your phone everything should work fine.
    Hope this helps.

  • How do I determine whether the current page in Forms is the last page.

    I have a requirement of printing amount in words using SPELL_AMOUNT Funtion Module, in SAP Scripts.
    When I have only one Item Line, I am able to successfully, print the amount.
    The moment i have line items pouring to the next page, I see that the I am unable to retrieve the spelled amount from the Function Module.
    I think may be i need to find out if the current page is the last page, and if it is so, print the amount on the last page, .i.e., the page where the item lines have overflowed to. How do i find this out.
    Can anybody, suggest something.
    Regards,
    Owais...

    I wonder if you could do something like this.  Wrap your logic with this IF statement.
    /: IF &PAGE& = &SAPSCRIPT-FORMPAGES&
    /: ENDIF
    Regards,
    Rich Heilman

Maybe you are looking for

  • APPLE DOCKING STATION NO LONGER WORKS WITH TOUCH 3G and 4G after ios 4.2.1

    APPLE DOCKING STATION NO LONGER WORKS WITH TOUCH 3G and 4G after ios 4.2.1 update. I have both of these touches. I updated both 3g and 4g to ios 4.2.1 and poof...no docking station support other than charging, no audio and no remote function. My av/c

  • E mail not retained on server

    My partner has Iphone 4 and e mails received on her phone are not being received on her PC in MS Outlook.  I checked her settings (mail & contacts, account, advanced, incoming settings) and she does not have the 'delete messages from server' option. 

  • Datagrid and a remotteobject

    I have a datagrid which I bind all of the data I return from my remotteobject fine. One of the fields I return is a unique key. I would like to take that key ( on each row in my grid) use another call in my remotteobject and set that result to anothe

  • Loading a movie clip loses my script function

    I have an art gallery that is in three parts. The Flash movie used to load everything before opening, but the gallery has grown too large. So now I've divided it up into three sections. The first section loads the first set of pics with the movie. Th

  • Charge cord too short for Lumia 900.

    The charge cord for the Lumia 900 should be a little longer.  Even with the plugin right off the side of my bed the charge cord is not long enough for me to be able to read off of my Lumia 900 without needing to unplug my phone from the charger.  (To