User clicks one link and goes to other and comes back state maintain prob

1st say 2 links r there,
aaa --> if u click on "aaa" (my requirement) as shown below.
problem : the bean values still maintaining when i go to "bbb" and come back to "aaa".
======
NOTE: when user enters all fields and clicks on button it goes to "second.jsp" their ajax response (1 table) generating. That means page wont get refreshed. (panel is fixed) only down 1 table will generate.
on FROM DATE AND TO DATE basis.
if user presses on F5 also state maintaining with the help of bean object.
i.e, say user in response table clicks on "page 5" then presses on F5 .
but problem is when user goes to "bbb" link or "ccc" or "dddd" (separate interface or link) which is not related to this
(they r nearly 50 interfaces or links) and comes back to "aaa" still old response is there.
NOTE: i can clear the bean object, but if i clear the bean object in "onload" or general i cant handle F5 issue.
bbb
ccc
ddd
sample
=====
first.jsp
=====
<jsp:useBean id="sd" class="TestPage" scope="session">
</jsp:useBean>
<jsp:useBean id="sptb" class="TestPageBean" scope="session">
</jsp:useBean>
<script type='text'/javascript'>
function testfun()
--ajax response.
forwarding to to
"second.jsp"
</script>
<%
HttpSession mdsession=request.getSession(false);
if(mdsession!=null){
String s1=sptb.getTxtname();
String s2=sptb.getTestselect();
%>
<form>
<table>
<tr><td><input type='text' name='fromdate' value='fromdate'></td></tr>
<tr><td><input type='text' name='todate' value='todate'></td></tr>
<tr><td><select name='testselect''><option value=1>aaa</option></select></td></tr>
<tr><td><input type='contains' name='txtname' value=''></td></tr>
<tr><td><input type='button' name='clickname' value='Click' onclick='testfun()'></td></tr>
</table>
</form>
<%
%>
second.jsp (this is ajax response)
=======
<%
String txtname= request.getParameter("txtname");
String testselect= request.getParameter("testselect");
String fromdate= request.getParameter("fromdate");
String todate= request.getParameter("todate");
--storing in bean
sptb.setTxtname(txtname);
sptb.setTestselect(testselect);
sptb.setTxtname(fromdate);
sptb.setTestselect(todate);
---database conn...resultset values retrieved on "fromdate" and "to date" basis
out.println("<table><tr><td>testeno</td><td></testename></td><td>fromdate</td></tr></td>");
while(rs.next())
out.println(rs.getString(3);
%>
output
====
input screen
1 fromdate
1 todate
1 selectbox
1 contains
1 button
-> after clicking on button ajax response displayed below is (with out page refresh)
1 table gets displayed on "FROM DATE" AND "TO DATE" BASIS
with pagination

Michael,
Thanks a lot for the reply.
In the case you have mentioned, how does application has to know the user is 'moving away'[clicking on other role] from the application.
Thanks in advance,
Regards,
Ganga

Similar Messages

  • HOW TO cache user clicks on links with attributes such as "_blank" ?

    HOW TO cache user clicks on links with attributes such as "_blank" in Adobe AIR with JS or MXML or AS3 for creating new costume browser window (AIR) ?

    >This feature is indeed new to 8.5.
    Can you explain a bit more on what is possible in version 8.5? How easy it is to attach events to different sections of the 3D model? How easy it is to handle such events? I assume the events will fire even if the user rotates the 3D model via the camera control, right? Any limitations on the 3D model or what types of events are supported? If you have LV documentation describing this feature then that would be *very* helpful!
    Thanks for your reply
    MZ2

  • Premiere Elements 13 issue with the mouse on When I select a clip of video and move to a different place in my time line, Premiere Elements 13, will not release the clip rom the mouse.    The clip follows my mouse movements and goes to other places in my

    Premiere Elements 13 issue with the mouse on MAC OSX Yosemite 10.10.1
    When I select a clip of video and move to a different place in my time line, Premiere Elements 13, will not release the clip from the mouse.
    The clip follows my mouse movements and goes to other places in my time line.
    I try to delete these extra insertions, but the mouse will not release the clip.
    Action I’ve taken: I’ve re-installed Premiere Elements 13. Problem remains.
    This issue has consumed too much of my time and does not go away.  It ruins my video.
    Help please.
    Thanks

    I tried using the Guest Account on my Mac. In the Guest Account, Illustrator works perfect!
    Then I started wondering what processes (tools/tweaks) I run by default on my account. Turned out the problem was called by a little background tool called RightZoom. RightZoom let's the green 'zoom' button always maximize your current window.
    So thanks! Problem solved!

  • I have four accounts on my mail application. but whenever i send a mail from one account, it goes through other account.

    i have four accounts on my mail application. but whenever i send a mail from one account, it goes through other account.

    Look at Mail / Accounts, then choose the Account icon. See if the Outgoing server box is set to the correct entry for each of your accounts.

  • Goes black and when you tilt it comes back on.

    Macbook model A1342  goes black and when you tilt it comes back on.  Is there a fix?

    If your Mac is off then start up. As soon as you hear the boot chime, hold down the Option key until the Mac and Windows Disks show up. Then click on the Mac disk and the arrow below it. After it boots up in Mac then go to System Preferences>Startup Disk and select your Mac partition as the Startup disk.
    If you are in Windows then look for the Boot Camp icon on the taskbar. It will look like a gray box sitting on one corner. One of the options when you click it is to restart in Mac OS. After it boots up in Mac then go to System Preferences>Startup Disk and select your Mac partition as the Startup disk.

  • Just upgraded to latest iOS and my iPad does not come back up.  It displays a line to an iTunes logo and then goes off and after some minutes comes back on.  I cannot reset it or anything else.

    Just upgraded to latest iOS and my iPad does not come back up - the following appeared as the first thing after turning back on.  It displays a line from the power/USB connector to an iTunes logo and then goes off and after some minutes comes back on.  I cannot reset it or anything else.  It is completely non-functional.

    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    Update and restore alert messages on iPhone, iPad, and iPod touch
    http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
    If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
     Cheers, Tom

  • When I click the Sections button then click on the 1st page I get  a page that is titled "Lorem ipsum dolor sit amet"! Where did it come from and how do I get rid of it. I have tried deleting and "dont save" but it comes back.

    In Pages when I click the 'Sections'  button then click on the 1st page I get  a page that is titled "Lorem ipsum dolor sit amet"!  Where did it come from and how do I get rid of it? I have tried deleting and "dont save" but it comes back. It is a full page in some unknown language. The only thing I can decifer is 'cupy uf cak'.   Rdal

    Roger,
    The icon is +Sections, not just Sections, as in "Add a Section". When you click that icon you get a section break and and a new section template, complete with preformatted text called placeholder text. The reason "Lorem ipsum" is there is so you can see what the format looks like. The reason that it is Latin gibberish is so you won't get hung up on, or distracted by, what it says. It's just a display of format. Select the "Lorem ipsum" text and start typing your content.
    Jerry

  • When I listen to music on my iPhone and pause it, if I come back to it later, the playlist has started over. I have a 4S running on iOS 7.0.4. Is there any way to keep this from happening so that my playlist will start off where I last was?

    When I listen to music on my iPhone and pause it, if I come back to it later, the playlist has started over. I have a 4S running on iOS 7.0.4. Is there any way to keep this from happening so that my playlist will start off where I last was?

    Dear Jody..jone5
    Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
    Goodluck
    Atousa

  • HT201263 well i was listening to music on my iphone and then it just stopped and now it won't come back on.  i tried resetting it alot and nothing i mean nothing comes on!  i tried recharging too and nothing and tried connecting it to itunes and nothing!

    well i was listening to music on my iphone and then it just stopped and now it won't come back on.  i tried resetting it alot and nothing i mean nothing comes on!  i tried recharging too and nothing and tried connecting it to itunes and nothing! Help? what can i do?

    http://support.apple.com/kb/TS3281

  • TS4079 I ask Siri a question, there is a very long pause and then when she does come back she appologises by saying she cannot help me now and I should check back later...anyone experience this??

    I ask Siri a question, there is a very long pause and then when she does come back she appologises by saying she cannot help me now and I should check back later...anyone experience this??

    Yes... a search of the forums would have prevented asking that question.

  • How-to move objects (users) from one ou to another using Powershell and an XLSX

    Hi all,
    I have a spreadsheet that has headers. I need to move all of the objects on this exception report to the proper OU (all going to the same OU).
    The header that validates the need to move is called "Display Name".
    The process now is as follows.
    1) Copy displayname
    2) Open AD search
    3) enter display name in find box
    4) locate object
    5) right click object in results and click move.
    6) move to the OU "Home.test.com/uk Online/Users OU/Business Process"
    --- How can i use Import-CSV to automate this process?
    Thanks for any help, there is about 4K lines on this sheet and it normally takes about 25 days of "busy work" to accomplish this, then 5 days later I have to re-run the report and start over.
    Josh
    Josh Borges

    Hi Josh,
    This assumes that you can save your file as an actual CSV file:
    $skippedUsers = @()
    Import-Csv .\userList.csv | ForEach {
    $displayName = $_."Display Name"
    $user = Get-ADUser -Filter "DisplayName -eq '$displayName'" -Properties DisplayName
    If ($user.Count) {
    $skippedUsers += $displayName
    Else {
    $user | Move-ADObject -TargetPath 'OU=Business Process,OU=Users OU,OU=uk Online,DC=home,DC=test,DC=com' -WhatIf
    If ($skippedUsers) { Write-Host 'The following users could not be moved automatically:' -ForegroundColor Red ; $skippedUsers }
    Do you have to use the display name property? That's not guaranteed to be unique, so you might run into problems. The script above will not attempt to move the user if more than one is returned by the command.
    EDIT: I've also added -WhatIf to Move-ADObject. Now the command won't actually move your users, it will just tell you about it. Remove it if you're happy with the output.
    Don't retire TechNet! -
    (Don't give up yet - 12,420+ strong and growing)

  • Firefox opens a new window every time I click a link. I reset FF and it did not fix the problem.

    When I click on any link, the browser opens a new window. I have searched the browser options to fix this and have not found a place to select a different option. I have reset Firefox and checked all of my plugins and have not found anything that seem to be related to my problem. Sometimes, Firefox will work normally for the first few minutes of use and then start opening a window for everything.
    By normally, I mean that I click a link and it opens the link in the same tab that I'm browsing. Some links will open in a new tab, depending on the type of link. Mostly, they open in new windows no matter what.

    Boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/
    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    *https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware

  • When I click a link that goes to a "gif" file/page, it won't open; how do I fix this?

    Ever since I've used Firefox, when I click on certain links, and the tab shows "gif", the page is blank. This happens with all kinds of web sites: in TripAdvisor when trying to access certain hotel web pages. Just today when on Delta, as I tried to click and access the store links in their SkyMiles shopping program (like Bloomingdales!).
    Here is the tab info from the Delta example: " click (GIF Image, 1x1 pixels)" Some variation of this appears with a blank page. It's frustrating, as these are not suspicious sites! Also I just got Windows 7, so it's happened with both XP and Win-7. What can I do to prevent this and get to the site I want?
    Thanks!

    Some firewalls like Kaspersky can block content and send a 1x1 GIF image instead.
    Kaspersky: Protection > Firewall > Filtration system: disable the "Banner Ad Blocker"
    See [[Configuring Kaspersky Internet Security]] and [[Firewalls]]

  • Since i updated latest version 6.0.2, it keeps getting stuck and goes really slow and the coloured beach ball spins for ages, so all i can do is force-quit - how can i install the version before this version again?

    On a Mac Book pro - running 10.6.8
    Firefox was fine until the last couple of updates that happened without my consent (?).
    Suddenly there were weird errors and crashes of Flash
    and slow loading pages. Now it's gone into rubbish mode where
    the beach ball spins at the slightest fast type or double-click and then all i can do is force quit.
    It's as if it can't cope with anything anymore.
    How do i uninstall and keep my bookmarks etc and re-install an earlier version of it as it was before it got updated?
    Thanks

    Hey Thanks for the link thing!
    So i had tried it in safe mode, and thought that it was still in SMode but then realized that that stopped once i had closed it and reopened in aft/eve/ last night and started up again today, also. So i just tried it again in safe mode and it seems to not be doing it...but then it's so random anyway. But if i'm in safe mode like this there is no toolbar but i guess that's cool if that is what is making it sluggy and beach ball-y. But how do i stay in safe mode all the time? And if it is only in safe mode then does that mean i can't have the 3 addons i use - (java, QT, Flash- all the other vid things like divx etc are 'disabled' ) I thought those add ons were necessary to play/read things on the net?? Forgive my ignorance in this matter. But saying that, when it was going wrong, and i was clicking on audio links sometimes in the 'blank white page scenario' a popup would come and tell me that i would need ' QuickTime to play this track' and i would click 'continue' and it would link me to Apple to get QT...but i already have QT installed in my MBPro so i thought that was a bit weird...! when i just tried it now in safe mode it went straight to the audio link white page with player in the middle and played the track. But then as i said, it was a bit random before so i don't know if this was just a time when it worked...
    Anyway, what do you think about my questions on operating in safe mode...should i have to do that?! i'll stay in Safemode until i hear back from you and see how well it performs.
    Thanks for your help.

  • Creating a link to a pdf and then being able to come back to first pdf

    hi there!
    I want to be able to create a link in my InDesign document to the glossary (another InDesign document). Of course I am exporting as PDFs and then the user would be able to close the glossary and come back to the first document in the place that they were when they left. This seems like it should be easy, but I can't find a way to come back. Acrobat doesn't have a back button, and when you close the glossary you also close the first document.The user can open the document again, but then they have to find their place.
    Is there a way to link to another document and have it open in a new Acrobat window? That's what I really want.
    Any ideas?
    Thanks,
    Tim.

    Hi Steve, thanks very much for that. Wow, I feel lucky to get one of the best. I've seen some of your videos.
    Okay, but javascript, eh? Hmm. Okay, I'm listening. Can you give me a bit more? Point me in the right direction?
    Thanks.

Maybe you are looking for

  • How do you make the font of a link different to the link font in Page Properties?

    In my case, I've designated links as Century Gothic, 16, black in Page Properties. I want most of the links on my page to be like that. However, there is one link that I'd like to look different (I want it to be size 12). How would I change that with

  • Is there a way to interactiv​ely select a worksheet from an Excel workbook in Labview?

    All of the examples that I can find only allow you to select a sheet by knowing it's index number or the exact name of the sheet.  I haven't been able to query or otherwise find out what sheets are in the workbook to allow the operator select one.

  • Organizing music with Zen Mi

    I'm new to using my Zen Micro as well as WMP. I have my music organized in my computer by artist folders, without subfolders for album. For instance, I have several Michael Jackson albums but all the songs are in the same folder. For artists which I

  • Lync for Mac - Problems to add contacts

    Hello, we recently added Lync online to an Office 365 setup.  Everything is working fine with PC's. But On the couple of Mac's we've setup so far with the latest version of Lync Online (including updates), users can't add contacts. They can communica

  • Getting so many Exception messages.

    Hi All , We have functional problem like once we run the MRP plan .We get so many exception messages like "reschedule in ,rescdule out,cancel orders" . We get these messages more then 700 at one time.We tried following things in order to reduce them-