Question about back button and Onload function in a jsp

Hi All,
I am having two jsp pages, say a.jsp and b.jsp. I had a javascript onload function which refreshes all the fields in a.jsp. When i enter some values in a.jsp, based on those values i will be getting the results in b.jsp. Now when i click the back button in b.jsp, it will go to a.jsp again. The problem i am facing is when i click this back button, because of the onload function in a.jsp all the fields in a.jsp are getting refreshed but i want the values which i entered previously in that page. Is there a way that i can do this such that the onload function will not run when i come to that jsp by clicking the back button.
Also i would like to know why a.jsp is reloading when we click the back button in b.jsp and coming to a.jsp. Is this way how back button will function. I am not sure of it. Plz clarify my doubts..
Thx.....

Normally it is not advisable to use the browser back button rather if there is a need we should
implement the back button functionality.
For e.g
In b.jsp
<head>
</head>
<script language="Javascript">
function fnBack()
  document.frmHeader.action = "a.jsp";
  document.frmHeader.submit();
</script>
<form name="frmHeader" method= "post">
<input type="hidden" name="hdCheckFromB" value="Y">
<p>
<input type="button" name="btnBack" value="Back" onClick="javascript:fnBack();">
</p>
</form>
</body>---------------------------------------
Now , in a.jsp
<%
String strBackParameter = requst.getParameter("hdCheckFromB");
%>
// Now if strBackParameter is carrying a value "Y" , then we know its from B else body onLoad refresh-------------------------------------
Hope this helps.
Thanks

Similar Messages

  • Question about BACK BUTTON on MIC

    My back button is a thick arrow, not the arrown shown on the pictures of the zen micros. Does that mean I have the old or newer micro.

    The original silk screening used finer graphics; the thick back arrow indicates this is the second generation of face plate. That still could go back to Feb or March when the AC adapter and cradle was still included, so that does not necessarily mean your Micro was made last week.
    Not sure if that helps ...
    cheers,
    jake

  • One question about the MouseListener and Copy function.

    Hola,
    I want my program to activate a method when the user press left mouse button, but in other window, in other program. I can make it with the Listener, but only when the window of my java program is active. I want to my program to listen for pressing a mouse in other window. And my second question is that I want to make the function like copy - the same, if I am in other window. For example if I have marked one fail to generate copy to the clipboard. Is that possible.
    Thanks.

    Tersit wrote:
    I want my program to activate a method when the user press left mouse button, but in other window, in other program. I can make it with the Listener, but only when the window of my java program is active. I want to my program to listen for pressing a mouse in other window. Your best bet to listen for activities in other non-Java programs is to use a programming language that gets closer to the OS such as C/C++.
    And my second question is that I want to make the function like copy - the same, if I am in other window. For example if I have marked one fail to generate copy to the clipboard. Is that possible.I'm not clear on this. What do you mean by "marked one fail"?

  • Qosmio X300-14F - Question about illumination buttons and XP downgrade

    Hello,
    I've got 2 questions concerning the laptop I bought 3 weeks ago.
    _*Question1*_
    There are 9 buttons above the F-keys. They're being lit. In the beginning they all worked fine, but recently I've found that only the buttons designed to work in a mediaplayer work (meaning: pause/play, stop, previous, next). The other buttons (mediacenter, (un)mute, illumination on/off, webcam, DOLBY) refuse to do anything except for making beeping noises.
    I'd like to be able to decide when to turn the illumination off/on without dragging the wireless flashcardsized-controller with me everywhere I go.
    Any leads on how to solve this are welcome!
    I tried this already:
    Start > all programs > TOSHIBA > utilities > Toshiba Assist > optimize > Toshiba Button Support
    But there's 2 problems with that. First of all I don't know where the executable is that dims/turns on the lighting. Second of all it still doesn't work for e.g. the dolby button. All it does is beep - loud.
    _*Question2*_
    I've been thinking about 'downgrading' from Windows Vista Home Premium to Windows XP since I'm tired of getting weekly BSODs and *daily* displaydriverfailures. I was concerned about not being able to find the drivers once I got XP on this laptop. I've looked on the official Toshiba website (this one :P), but there's only Windows Vista drivers?
    Thanks in advance!

    Hi
    1) The program that turns on and off the illumination is called dimmer.exe. That you should find in the Toshiba folder (C:\program files\Toshiba).
    If you assign this exe file with the button it should work again. If not, try to reinstall the Toshiba Value Added Package.
    On the Dolby button its the same, you must assign the right .exe file with the key.
    2) The point is that only Windows Vista is supported on this notebook and there are no XP drivers available. You can collect the drivers on external website but if you have problems with XP you should downgrade to Vista. The notebook is really fast enough for Vista. ;)

  • Back button and bookmarks

    will you implement the back button and bookmarks functions in
    spry?

    Hi Petrus,
    It is on our list of enhancement requests.
    --== Kin ==--

  • A few questions about the ka790gx and dka790gx

    i have a few questions about the ka790gx and dka790gx , how much better is the dka790gx compaired to the ka790gx ? . how much difference does the ACC function make to overclocking etc , i plan on getting a phenom II 940BE or 720BE . i already have the ka790gx so would it be worth building another system using the dka790gx mobo , or should i keep what i already have and just change the cpu ?

    It's largely irrelevant what other boards had VRM issues other than the KA790GX - the fact is it died at stock settings. Since there is little cost difference between the more robust DKA790GX (or Platinum if you really need 1394) why bother with the proven weakling? There are other examples around of the KA not having a robust power section.  There's no way I would use even a 95W TDP CPU in the KA and absolutely not O/C.....!
    As for the credentials of Custom PC, I have generally found their reviews accurate and balanced, and echo my own findings where applicable. If a little too infrequent.
    The fact that the KA has such a huge VRM heatsink leads me to my other comments on the Forum, particularly regarding the "fudge" aspect:
    """Henry is spot on - the notion that adding a heatsink to the top of the D2PAK or whatever MOSFETS is effective is virtually worthless. The device's die thermal junction is the tab on the device back - which is always against the PCB pad. The majority of heat is therefore dissipated in to the board, and the fact that the epoxy plastic encapsulation gets hot is simply due to the inability of the heat to be conducted away from the device die via the tab. Not sure when Epoxy become an effective conductor of heat.... Good practice is to increase the size of the PCB pad (or "land" in American) such that the enlarged PCB copper area acts as an adequate heatsink. This is still not as effective as clamping a power device tab to an actual piece of ali or copper, but since the devices used are SMD devices, this is not possible. However, the surface area required to provide sufficient PCB copper area to act as a heatsink for several devices isn't available in the current motherboard layouts. Where industrial SBC designs differ in this respect is to place the VRM MOSFETs on the back of the PCB on very enlarged PCB pads - where real estate for components is not an issue.
    Gigabyte's UD3 2oz copper mainboards sound like a good idea, on the face of it. However, without knowing how they have connected the device tabs to where and what remains a mystery. I suspect it is more hype than solution, although there will be some positive effect. From an electrical perspective, having lower resistance connecting whatever to whatever (probably just a 0V plane) is no bad thing.
    The way the likes of ASUS sort of get round the problem is to increase the sheer number of MOSFET devices and effectively spread the heat dissipation over a larger physical area. This works to a degree, there is the same amount of heat being dissipated, but over several more square inches. The other advantage of this is that each leg of the VRM circuit passes less current and therefore localised heat is reduced. Remember that as well as absolute peak operating temperature causing reduced component life, thermal cycling stresses the mechanical aspects of components (die wire bonds for example) as well as the solder joints on the board. Keeping components at a relatively constant temperature, even if this is high (but within operating temperature limits), is a means of promoting longevity.
    For myself, the first thing I do with a seperate VRM heatsink is take it off and use a quiet fan to blow air on to the VRM area of the PCB - this is where the heat is. This has the added benefit of actively cooling the inductors and capacitors too....
    Cooling the epoxy component body is a fudge. If the epoxy (and thus any heatsink plonked on top of it) is running at 60C, the component die is way above that.....
    It's better than nothing, but only just."""

  • Browser Back Button and form navigation

    Some times when you use browser back button and adf-taskflow navigation buttons, validation on form fails, witout having made any change even with enabled token validation.
    Reproduction steps on HR schema:
    1. Create QueryDepartment and EditDepartment Views and navigation rules in adfc-config.xml
    2 Create ADF view only table page for QueryDepartment selectable, and add navigation button to go to EditDepartment
    3. Create EditDepartment form with navigation buttons and button to navigate back to QueryDepartment
    test:
    1.Run QueryDepartment and select a department
    2.Go to Edit Department using navigation button
    3.Navigate to next department pressing the 'Next' button
    4.Navigate back using the Browser Back button.
    5.Try to navigate back to QueryDepartment using the navigation button.
    My result is validation error on DepartmentId field 'Error: JBO-25013: '
    Is this a bug or am i doing something wrong?

    Hi,
    maybe I don't get it, but as I understood you have problem with focus on select button. So why don’t you set focus onLoad on another element of your page?
    Something like onload=”$x(‘ELEMENT_NAME’).focus()”;
    Regards,
    Przemek

  • Where to post question about backing up new G580 laptop

    I'm new to Lenovo products and this forum and would like to know where I am to post a question about backing up a new G580 laptop.
    I would appreciate any help.
    Solved!
    Go to Solution.

    Hi kec234, welcome to the forum,
    the best place would probably be in the Lenovo 3000 & Essential notebooks board; it's the correct board for your system and who knows after searching through it you may find an existing thread on the same subject??
    Regards
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • Please delete my question about backing up. I already found my answer.

    Hi,
    Please delete my question about backing up. I already found my answer. Just wanted to make sure that it was okay to backup the iPod_Control folder. I've read that other people have done this and re-imported back to iTunes. Here's the question I submitted. When I get my iPod back in order I am gonna backup the iPod_Control folder .
    https://discussions.apple.com/message/15836196#15836196
    Thanks,
    Liz

    No urgent reason to delete it. Just reply to yourself as above, if you care to, and then mark your own answer as correct. You won't get any points, but it will be clear you are closing out the topic.

  • A question about item "type and release" of  source system creation

    Hello expert,
    I have a question about item "type and release" of  source system creation.
    As we know,when we create a web servie source system,there will display a pop-up which includes three items as "logical system","source system"and "type and release".
    About the item "type and release",when we push "F4" button,there will be three default selections as below:
    "ORA 115     Oracle Applications 11i
    TLF 205     Tealeaf 2.05B
    XPD 020     SAP xPD".
    Who can tell me when and how should I use the three selections.
    And also I attempted to input the item by some optional letters except the default three selections and it seems that I can input it freely.
    Thank you and Best Regards,
    Maggie

    Hello DMK,
    Thank you very much for your answer.It is very helpful for me.
    Can I ask you further about it?
    I got that it is a semantic description item.
    You said the default selections are set by our basis people.Would you like to tell me how should we creat a new value except the default ones for item "type and release"?Only by inputing the value in the item directly?But you see we canot see the new value item we created by ourself when we push "F4" button next time ,is that ok?Or do we have to ask basis people to define one new value item just like the default seletions before we use it.
    Also if possible would you like to describe detail about "This becomes important when you are troubleshooting certain issues especially when RFC connection problems."
    Thank you and Best Regards,
    Maggie
    Message was edited by: Maggie

  • Few Questions About Backing Up Files

    Okay, I'm pretty new to this, and have checked the support pages, but I do have some questions about backing up my files.
    I'm running out of room on my computer's hard drive, and am wondering if burning the library to CDs will allow me to quickly restore my library on my computer when I sync my iPod.
    I know that when an iPod syncs with a comp, it will lose any songs that aren't on the library list. (If I deleted some songs to free up room, I'd lose those songs on my iPod when I synced it up.) Is there a way to prevent that from happening? Some way to save a headache continuously restoring my iPod's library every time I want to add a new song or recharge it?
    I'm on Windows XP, if that matters.

    Best and easiest solution is to buy an external hard drive. Then simply drag and drop your iTunes folder from your internal onto the external and copy the entire library.
    Patrick

  • My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is a

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [/forum/1/688252]
    Thanks - c</blockquote>
    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is always closed. I need one on one help. Please reply with resolution.
    == This happened
    ==
    Every time Firefox opened
    == two or three months ago
    ==
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 (BT-canvas) Firefox/3.6.3 GTB7.0 (.NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-npdnu
    *npdnupdater2
    *Coupons, Inc. Coupon Printer DLL
    *Coupons, Inc. Coupon Printer Plugin
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *6.0.12.448
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *RealJukebox Netscape Plugin
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *BrowserPlus -- Improve your browser! -- http://browserplus.yahoo.com/
    *Shockwave Flash 10.0 r45
    *Yahoo Application State Plugin version 1.0.0.7
    *3.0.50106.0
    *My Web Search Plugin Stub for 32-bit Windows
    *Google Updater pluginhttp://pack.google.com/
    *Google Update
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Npdsplay dll

    * If the menu bar is hidden then press and hold the Alt key down, that should make the Menu bar appear (Firefox 3.6 on Windows) (see [[Menu bar is missing]]).
    * Make sure that you have the ''Navigation Toolbar'' and other toolbars visible: View > Toolbars .
    * If items are missing then see if you can find them in the View > Toolbars > Customize window.
    * If you see the item in the Customize window then drag it back from the Customize window to the Navigation toolbar.
    * If you do not see that item then click the Restore Default Set button in the View > Toolbars > Customize window.
    See also [[Back and forward or other toolbar buttons are missing]] and [[Navigation Toolbar items]]
    See http://kb.mozillazine.org/Toolbar_customization

  • Why do i get redirected when I click on search link If I hit the back button and click on the link again It was allow me to go there

    I use Google to search I click on the link and I get redirected to some other page I click on my back button and re click on the link and it will the allow me to go the link. it does this to me 40% of the time and I know the links that I'm click on a a known good link cause I used them before I just have not save them to my bookmarks

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Radio button and associated functionality is not working!

    Hi Pros,
    I am facing the following problem:
    1.I have an interactive PDF created in Acrobat 9 Pro.
    2.PDF have few radio buttons, each radio buttons ahave assigned valus(eg: 1,2,3 etc)
    3.I have a text box in which the value of selected radio button is displayed.
    4.PDF is working fine on my machine.
    5.Client is having Internet Explorer version 7.0.5 and Adobe reader:8.2.6
    6.The radio buttons and associated functionality is not working on client's machine.
    7.The text box shows '0' even if we a radio button with value 2 or 1 is selected.
    What will be the problem? How can I fix this issue?
    Please help.

    Thanks alot for helping me on this.
    Thanks to u also ~graffiti

  • Question About Color's and Gradients

    Hi all,
    I have a question about color swatches and gradients.
    I am curious to know, if I have 2 color swatches that I make into a gradient color, is it posible to change the tint of each indivdual color in that gradient and have that applied to the gradient without having to adjust the gradients opacity.
    The reason that I'm asking this is because in creating a project I found that the colors that I chose for to make my gradient from my swatches were to dark, and while I can adjust each one's tint to my liking (if the object they were applied to was going to be a solid color) but that doesn't seem to apply to the overall gradient.
    I hope that makes sense, I know that this was something that was able to be accomplished in quark and was wondering if I can do something similar.

    If you double click your gradient swatch (after adding it to the swatches)
    Then click a colour stop in the gradient, and then change the drop down menu to CMYK (or rgb)
    And you can alter the percentages there. It's not much use for spot colours but it's a start.
    But making tint swatches would be a good start anyway.
    At least then when you double click the gradient (in the swatches) to edit it you can choose from CMYK, RGB, LAB, or Swatches and adjust each colour stop to your liking.

Maybe you are looking for

  • FILE NOT FOUND IN PREVIEW IN A BROWSER?

    I CREATED A NEW PAGE IN cc AND ATTEMPTED TO VIEW IN A BROWSERBUT THE FILE WAS NOT FOUND. THE PAGE IS IN MY ROOT FOLDER AND NAV SETPUP.

  • How to close a POP UP SCREEN

    Hi, Im calling a pop up screen (which contains and editable alv grid) when pressing a button on a status of a OO alv grid. Then, i write something on this alv grid from pop up screen and finally, when i want to close the window, i clic on the x thats

  • If I upgrade to Lion from Leopard will I need to reinstall all my programs?

    I have a bunch of photo & video editing software as well as some other things such as parallels on installed on my computer. I really don't want to have to reinstall everything all over again. I've tried to search this question, but I'm having one of

  • Upgrading from 5.0.2 to 6.1.5

    HelloCould anyone provide me with the steps involved in upgrading from 5.0.2 P11 to 6.1.5? Any help would be appreciated. Thanks.

  • I need help getting AOL to connect on internet w/new Powerbook G4 please!!

    I just purchased a Powerbook G4. I can connect to the internet @ school through ethernet & wireless yet @ home cannot log on to AOL! I even purchased a belking wireless router. It recognizes and accepts the network through network diagnostics but whe