What is the command for return to a previous page in java

Hi,
I need to customize a OK button that return to a previous page instead of forwarding other page? The best way is to extend the CO class? If yes, what is the command to do so please.
Thanks,
CY

Hi CY,
In which ever pages you are calling this page, extend controller of those pages and in PFR of that controller give the following code
String s4 = pageContext.getCurrentUrlForRedirect();
pageContext.putSessionValue("previousPageUrl", s4);
then in your second page you can call this session variable by
pageContext.getSessionValue("previousPageUrl");
use this session value for page redirect.
Reagrds
jyothi

Similar Messages

  • What is the command for secure remote copy ?

    What is the command for sucure remote copy ?
    The remote copy is rcp, but it is not secure or is it?

    Andy of course is spot on.
    scp -p /my/local/file [email protected]:/otherpath/to/remote/file
    Will use ssh to securely copy a file if ssh is enabled on the remote "othermac"
    rsync -e ssh is much more powerful, but in many cases scp is the best due to simplicity.

  • What is the command for getting a screen back that disappears?

    How do I get my working screen page back when it disappears to the right from a feather like touch on the mouse?
    I do not know why it disappears or how to get it back. Please let me know what is the command?

    I think I found it. It is within the gestures commands.

  • What Is The Criteria For Reloading objects and JSP Pages?

    I have a JSP application that consists of many HTML, JSP & JavaBean files.
              Since I am in the middle of the development phase I am making lots of
              modifications to the code. I've noticed that much of the time if I recompile
              a JavaBean into a class file WebLogic does not reload the updated class.
              In my weblogic.properties file my servlet reload property is:
              C:/weblogic/myserver/servletclasses
              All my JavaBean class files reside in a sub-directory of that directory. For
              example:
              C:/weblogic/myserver/servletclasses/org/hhmi/award/JavaBean1.class
              How come these beans don't get reloaded each time? Is there a different
              WebLogic property I should use? What is the criteria for re-loading a class
              file anyway?
              Thanks in advance,
              Matt
              

    BTW, I tried this in 6.1 and it does reload modified classes in
              WEB-INF/classes, but, sure enough, it results in ClassCastException's etc, for
              example:
              <%
              Foo foo = (Foo)session.getAttribute("foo");
              session.setAttibute("foo", new Foo());
              %>
              will result in ClassCastException if Foo was modified.
              So, if 6.1 tracks class modifications, then why doen't it trigger application
              redeployment? It can definitely be more convinient than touching 'REDEPLOY'
              file.
              Mike Reiche <[email protected]> wrote:
              > Make sure that your servletclasses and your jsp workingDir are NOT in your weblogic.class.path.
              > Pay attention to what Dimitri said.
              > Set your reloadCheckSecs=0 (check every time).
              > Set your pageCheckSeconds=0
              > Mike
              > "Matt Connors" <[email protected]> wrote:
              >>I have a JSP application that consists of many HTML, JSP & JavaBean files.
              >>Since I am in the middle of the development phase I am making lots of
              >>modifications to the code. I've noticed that much of the time if I recompile
              >>a JavaBean into a class file WebLogic does not reload the updated class.
              >>
              >>In my weblogic.properties file my servlet reload property is:
              >>
              >> C:/weblogic/myserver/servletclasses
              >>
              >>All my JavaBean class files reside in a sub-directory of that directory.
              >>For
              >>example:
              >> C:/weblogic/myserver/servletclasses/org/hhmi/award/JavaBean1.class
              >>
              >>How come these beans don't get reloaded each time? Is there a different
              >>WebLogic property I should use? What is the criteria for re-loading a
              >>class
              >>file anyway?
              >>
              >>Thanks in advance,
              >>Matt
              >>
              >>
              Dimitri
              

  • What are the commands for compiling c++ using the command line tools for xcode?

    Hi, I am taking a class in school for c++ and i would like ot be able to practice at home i found the command line tools for xcode and went ahead and installed it on my computer. now i need to know the commands and procedure to be able to compile and run c++.

    c++ testfile.cc

  • What is the command for Defragging?

    I was told that my system probably needs to be defragged. I heard that there is a Key Command for that action. Something like Com>Control>D>F. Not sure though, so does anyone know what it is?
    eMac   Mac OS X (10.3.9)  

    Take a look at this Apple document.
    2.0GHz MacBook, 15" 1.25GHz/12" 1GHz PBs, 2xPPC Mac minis, 12" iBook G4,   Mac OS X (10.4.8)   Cube, 2xTAMs, iPod 4G & nano 2G, 1G & 2G iPs, AEBS, AX

  • What is the procedure for  Return Pricing Procedure

    Dear Experts,
       Pricing Routine for Return Pricing Procedure To create Return sales order w.r.t billing document without copying the Pricing Procedure. To capture the net price from the Billing document to the Return Sales order .To change the net price to 0.01 based on the scrap item category RSCR in return sales  order. please help me out from this issue .Thanks in advance.I'll give you full points.

    Dear Experts,
       Dear Experts,
      I've been working in an implementation project..I never worked on pricing routines...so please give me any inputs which can help full for me...
    To create Return sales order w.r.t billing document without copying the Pricing Procedure.
    To capture the net price from the Billing document to the Return Sales order
    To change the net price to 0.01 based on the scrap item category RSCR in return sales
         order.
    please help me out from this issue
    Thanks in advance..
    I'll give you full points..

  • What is the commands for SQL server job to ftp file to remote server?

    I created the job to bcp data out and create file on file system. after that, I need to ftp the file over to another box. how can I do it from sql server job?
    JulieShop

    I would like to suggest a SSIS package with a
    FTP Task instead.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Can I know what is the process for us to do Good Return from customer?

    Can I know what is the process for us to do Good Return from customer?

    hi
    this ques need to be posted in sd forum..
    to answer this u can use order type RE to create Return order and then u can do the goods receipt..
    or u can use the process mentioned in first reply.
    regards
    CMM

  • What is the reson for Fun SAP_WAPI_WORKITEMS_TO_OBJECT returns no value

    Hi All
    call function 'SAP_WAPI_WORKITEMS_TO_OBJECT'
        EXPORTING
          objtype                  = 'ZAR'
          objkey                   = v_objkey
          top_level_items          = c_set
          selection_status_variant = 0001
          text                     = c_set
          language                 = sy-langu
        TABLES
          worklist                 = i_worklist
          message_lines            = i_message_lines.
    I am using Function SAP_WAPI_WORKITEMS_TO_OBJECT  by passing object type and object key and looking for top level items . I get values for i_worklist[] all the time but for one AR i dont see a value in i_worklist[] .
    I know that Functional ppl had messed up with the workflow status in IMA2N transaction by changing the status....
    I want to know what is the reason for not getting any value in i_worklist[] for some ARS and works fine for other ARS.
    I can see the work id in workflow header table but i dont get workid when i use this function .
    Could you all tell me whats the reason for not getting ,i appreciate all your help
    Thanks

    With parameter selection_status_variant = 0001, you will only get a list of active instances.
    The parameter can have the following values:
    0000     All Instances
    0001     Active Instances (Running, Ready, Committed,...)
    0002     Finished Instances (Completed, Cancelled)
    0003     Active Instances (All)
    Cheers,
    Ramki Maley.

  • What is the cause for the mac to become slow

    what is the cause for the mac to become slow?

    Things You Can Do To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with a visit to: OS X Maintenance - MacAttorney.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion/Mountain Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Repair the Hard Drive - Lion/Mountain Lion
    Boot from your Lion Recovery HD. When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    Suggestions for OS X Maintenance
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner
      2. Data Backup
      3. Deja Vu
      4. SuperDuper!
      5. SyncTwoFolders
      6. Synk Pro
      7. Synk Standard
      8. Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time, then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • My ipod nano 6th gen fell out of my pockey and the screen cracked badly, is there any coverage for this under warranty? I just bought it a month ago. If not what are the options for getting it fixed

    My ipod nano 6th gen fell out of my pocket and the screen cracked badly, is there any coverage for this under warranty? I just bought it a month ago. If not what are the options for getting it fixed? It is pretty frustrating, it fell from about 3 feet out of my pocket and now looks like it was beaten by a hammer.

    Debbie:
    deborahfromwindsor wrote:
    he advises restarting by inserting the OSX disc and pressing down the C button to reboot from there then selecting disk utility, hard disk and repair.... Does he mean me to hold down the C key on the alpha keyboard or the ctrl key?
    Should I just ask for my money back??? If it is a simple repair do I just literally push the disc in, push the power button and hold down the C button?
    That's where I would begin, too, with
    Repair Disk
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.TStatus of HDD at the bottom of right panel, and report if it saysanything but Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    If DU reports errors it cannot repair you will need touse autility like TechTool Pro,Drive Geniusor DiskWarrior
    First we need to determine if the issue you are experiencing with the computer is software or hardware based. Once we have gotten things sorted out there should be time enough to make you decision about keeping or returning it.
    cornelius

  • What is the number for Verizon Wireless  Corporate Customer Service Complaint for CA

    My Complaint:  I have been a Verizon Wireless customer for approx 20 years.  I called customer service to seek an early upgrade for my daughter's phone. She is away in college and her phone is malfunctioning.  She is eligible for an upgrade in approx 6 weeks so I did not want to spend the money on a replacement phone when since we were planning on updating to something newer.  The customer service rep to me they could not do the early upgrade an to call back in a few weeks. After explaining this was unacceptable (I do not like the idea of a young female being out of state and away from home with no reliable means of communication), she places me on hold to later return with the only offer of  I must purchase a new device through her ( over the phone) which will be shipped to me, the phone was priced $100.00 more than the online price (they will not price match), plus i must pay $30.00 upgrade fee, $35.00 activation fee and taxes on the retail price of the phone.  I am upset and disappointed with the quality of service provided by Verizon being a 20 year customer.  If not for the seriousness and urgency of this matter, i would not have asked for an early upgrade.  It is times such as these that you get to see how much of a "valued customer" you really are.   I guess you are valued as long as you pay your bill and continually  purchase their products.  I would like to speak with someone from Verizon's corporate or customer relations department.  As of now I am really considering changing my service to a different provider.  I have multiple accounts with Verizon and i will canx each after the current contract committment expire (starting with my daughter's phone which expires in 6 weeks) In the meantime I will go purchase her a new phone with someone else and take comfort knowing she will have reliable communication.

    I started with them in 1985. It has been wonderful service but very expensive. They seem to operate on day of deposit day of withdrawal. That means that I have no benefits nothing beyond the normal customer if I don't pay my bill they shut me off. That's why I have switch to another provider and I have better service lower cost and better phones. you can't beat  other providers I mean it. Please don't expect more from verizon other than a "pay me more money and I'll do what you want" because it's all about money. Read the transcripts from current Verizon employees all over the internet. The company is going down and they're taking customers with them.
    msvat <[email protected]> wrote:
    msvat  created the discussion
    "What is the number for Verizon Wireless  Corporate Customer Service Complaint for CA"
    To view the discussion, visit: https://community.verizonwireless.com/message/1113982#1113982
    >

  • In Address Book, Lion, what are the checkmarks for when you Edit a Contact?

    In Address Book for Lion, when you are in the Add/Edit a Contact window, what are the checkboxes for?

    I am not seeing any checkboxes when I edit in Address Book in Lion, can you take a screen shot (Shift Command 4) of what you're seeing and post it?
    BTW please fill out your profile (under Your Stuff above) so we know what machine and version of Lion you're using.

  • What are the commands available to read a file from application server and

    What are the commands available to read a file from application server and store the file into an internal table?

    Hi,
    To read a file from an Application Server to an Object there is a command in ABAP called <b>READ DATASET</b>. After that file is transported to that object you have to do a loop and put that data in an Internal Table.
    This statement exports data from the file specified in dset into the data object dobj. For dobj, variables with elementary data types and flat structures can be specified. In Unicode programs, dobj must be character-type if the file was opened as a text file.
    For dset, a character-type data object is expected - that is, an object that contains the platform-specific name of the file. The content is read from the file starting from the current file pointer. After the data transfer, the file pointer is positioned after the section that was read. Using the MAXIMUM LENGTH addition, the number of characters or bytes to be read from the file can be limited. Using ACTUAL LENGTH, the number of characters or bytes actually used can be determined.
    In a Unicode program, the file must be opened with an arbitrary access type; otherwise, an exception that cannot be handled will be triggered.
    If the file has not yet been opened in anon-Unicode program, it will be implicitly opened as a binary file for read access using the statement
    OPEN DATASET dset FOR INPUT IN BINARY MODE.
    . If a non-existing file is accessed, an exception that can be handled can be triggered.
    Influence of Access Type
    Files can be read independently of the access type. Whether data can be read or not depends solely on the position of the file pointer. If the latter is at the end of the file or after the file, no data can be read and sy-subrc will be set to 4.
    Influence of the Storage Type
    The import function will take place irrespective of the storage type in which the file was opened with the statement OPEN DATASET.
    If the file was opened as a text file or as a legacy text file, the data is normally read from the current position of the file pointer to the next end-of-line marking, and the file pointer is positioned after the end-of-line marking. If the data object dobj is too short for the number of read characters, the superfluous characters and bytes are cut off. If it is longer, it will be filled with blanks to the right.
    If the file was opened as a binary file or as a legacy-binary file, as much data is read that fits into the data object dobj. If the data object dobj is longer than the number of exported characters, it is filled with hexadecimal 0 on the right.
    If the specified storage type makes conversion necessary, this is executed before the assignment to the data object dobj. Afterwards, the read data is placed, byte by byte, into the data object.
    System Fields
    sy-subrc Meaning
    0 Data was read without reaching end of file.
    4 Data was read and the end of the file was reached or there was an attempt to read after the end of the file.
    Thanks,
    Samantak.
    <b>Rewards points for useful answers.</b>

Maybe you are looking for