How to make browser aware of new URL after JSP:forward

When I use JSP:forward (or pageContext.forward() for that matter) to forward from a.jsp to b.jsp, the browser still seems to think he's at a.jsp. Assumably because the request for the new URL didn't originate with the browser. This causes problems when I try to use relative URL's in b.jsp (the forwarded URL) since the client kindly tries to resolve them for me using the wrong base URL.
For example:
I log in at <mysite>/Security/login.jsp.
Here, I do some login magic and then forward to /Accounts/index.jsp.
The state of the browser is now:
a) the URL is <mysite>/Security/login.jsp
b) the page displayed is <mysite>/Accounts/index.jsp
Is there a better mechanism I can use to keep browser URL and displayed page synched up?
BTW, in this simplified example I could use JavaScript history.go(-1) to let the browser do the forwarding itself. This won't work in my actual scenario because I actually forward to a page stored in the session several requests back.
Any help would be very much appreciated!
Andy

Assumably because the request for the new URL didn't originate with >the browserThis is correct.
One way for the browser to show the URL is by using a sendRedirect() after doing all the necessary processing. But you will loose all request attributes during a sendRedirect(). To overcome this, after you have done all processing and are ready to process the accounts jsp, you can put the required info in the session. The accounts jsp can get the info from the session instead of from the request, and then reset these in the session to prevent further use.

Similar Messages

  • How to make JDev aware of the xmldb API

    Hi everybody,
    I am a real beginner in Jdev, and I have to develop a
    Java Application using Oracle Java developer, against
    an XML-native database called eXist. I'll have to use
    a java API called xmldb supported by eXist in order to
    interact with the database. Although I have basic
    knowloedge in Object-oriented programming, but I don't
    know where to begin, especially how to make JDev aware
    of the xmldb API, and how to create classical
    application components (Windows, buttons, etc).
    Could you help me with some orientations and
    interesting links?.
    Thanks a lot.
    Mounir.

    Hi,
    don't know this database, but the database vendor should be able to explain how his DB is accessed from Java. If this requires libraries, then the vendor will provide these in JAR files, which you then configure with JDeveloper (as a custom library Tools --> Manage Libraries) or in the Project
    If there is a JDB driver for it, even better. This however is not a deliverable of JDeveloper but the database vendor
    Frank

  • How to make smart shape buttons turn colors after clicking on them?

    How to make smart shape buttons turn colors after clicking on them?  I am using buttons as links to learning paths and would like users to know which buttons they have allready clicked on when returning to main menu.

    This is reply I got from Adobe support.  I will try and let you all know what works best:
    Here is the workflow which you can follow to achieve this functionality.
    Puspendra: You can choose image button and then choose from the available image buttons, or click on the folder icon when you select the image button and choose from the Gallery of Captivate 6.
    Puspendra: Few image buttons change color on hover or onclicked, these effects are predefined in them.
    Puspendra: Or you can edit that button on which you are working, from properties Panel.
    Puspendra: The Post and Cancel button on this thread seems like a transparent button in Captivate with different fill and stroke color, and transparency is also less, and with corner radius of 0.
    Puspendra: You will find these all optionns, when you will click on that button and then click on the properties panel.

  • How to make a scroll animation constantly fixed after scrolling? I want the animation to Start when I scroll down, but I don't want the animated thing to disappear when I scroll up again.

    How to make a scroll animation constantly fixed after scrolling? I want the animation to Start when I scroll down, but I don't want the animated thing to disappear when I scroll up again.
    I know how to start the animation by scrolling down, but I simply want it to stay there after it. Could you help me please, guys?

    Hi Tom,
    There is no native feature in Muse to achieve this.
    Regards,
    Aish

  • Have CS5 on current PC, Win 7 64bit; how get *.exe to transfer to new computer after remove from old one

    Have CS5 on current PC, Win 7 64bit; how get *.exe to transfer to new computer after remove from old one?

    Baffled by multiple links; found one I think(?) I need. CS5 12.1.
    It's basic, so I assume that one goes with CS5 Design Standard, but do not
    know. Thanks for answer(s) again.
    On Tue, Feb 17, 2015 at 10:36 AM, BobLevine <[email protected]>

  • How to make Clsuter aware EJB

              Platform: Weblogic 6.0sp2 in WINNT
              Hai,
              I have made IP loadbalancing ( The DNS Host entry swaps IP in intervals) as per
              the documentation. By Using the clsuter IP i have created a cluster entey in the
              wl 6.0 console and added two servers in the Cluster. Now i don't know how to make
              my EJB Cluster aware?. what parameters should i change in teh XML file and compilation
              option to make it cluster aware.
              Also i would like to know whether Will it be enough if i put teh same copies of
              JSP and servlets in both machine to make that too cluster aware. Will there be
              any probelm in session ?
              Regards,
              srini
              

              Hi Kumar , Lynch , Penfriend,
              Thanx for ur Quick replies .. That helped me a lot.. I am going through the examples.
              I would like to know changes that i have to make on JSP & servlets to make it
              cluster aware. I am using the IP Load balancing ( host name refers to two different
              IP at intervals ).
              Thanx.
              regards,
              srini
              Pen Friend <[email protected]> wrote:
              >Srinivasan,
              >
              >We ship a cluster example in .\samples\examples\cluster\ejb. You could
              >take a look at the deployment descriptors and try running it.
              >
              >
              >
              >Kumar Allamraju wrote:
              >
              >> By default ejb's are compiled with clustering options ON.
              >> So ejbc generates cluster aware stubs anyway. You don't need
              >> to do anything to deploy them in a cluster environment.
              >>
              >> --
              >> Kumar
              >>
              >> Srinivasan wrote:
              >>
              >>> Sir,
              >>>
              >>> (1) What option of the weblogic ejbc is required in my case. is
              >>> -clusterable
              >>> option suffice. Sir, Could you please mention which document are you
              >>> refering
              >>> too. ( I have only the cluster.pdf from BEA )
              >>>
              >>> (2) The Host name is already load balanced by teh WLBS Software.If
              >>> the host is
              >>> load balanced then will placing the same JSP and servlet in both the
              >>> servers in
              >>> cluster suffice.
              >>>
              >>> Thanks for the Help sir.
              >>>
              >>> regards,
              >>> srini
              >>>
              >>> "Lynch" <[email protected]> wrote:
              >>> >Hi,
              >>> >
              >>> >1. You need to use weblogic's ejbc to compile your ejb jar file to
              >>> generate
              >>> > the stub classes.
              >>> >2. Web cluster demands load balancing and fail-over. You need to
              >do
              >>> lots
              >>> > of work yet. Maybe you could start with the docs.
              >>> >
              >>> >Hope this helps,
              >>> >Lynch
              >>> >
              >>> >
              >>> >"Srinivasan" <[email protected]> ¼¶¼g©ó¶l¥ó
              >>> >news:[email protected]...
              >>> >>
              >>> >> Platform: Weblogic 6.0sp2 in WINNT
              >>> >>
              >>> >> Hai,
              >>> >>
              >>> >> I have made IP loadbalancing ( The DNS Host entry swaps IP in
              >>> intervals)
              >>> >as per
              >>> >> the documentation. By Using the clsuter IP i have created a
              >>> cluster
              >>> >entey
              >>> >in the
              >>> >> wl 6.0 console and added two servers in the Cluster. Now i don't
              >>> know
              >>> >how
              >>> >to make
              >>> >> my EJB Cluster aware?. what parameters should i change in teh XML
              >>> file
              >>> >and
              >>> >compilation
              >>> >> option to make it cluster aware.
              >>> >>
              >>> >> Also i would like to know whether Will it be enough if i put teh
              >>> same
              >>> >copies of
              >>> >> JSP and servlets in both machine to make that too cluster aware.
              >>> Will
              >>> >there be
              >>> >> any probelm in session ?
              >>> >>
              >>> >>
              >>> >> Regards,
              >>> >> srini
              >>> >
              >>> >
              >>
              >
              

  • How to make iTunes detect the new location of music files?

    Hi everyone. I moved all of my music to a different location on my hard drive, and I changed the location in iTunes preferences, but it doesn't seem to detect this, so my library is empty now. I saved an itl, xml, and temp file as well, but I don't know what to do from here.
    I also tried dragging the new music folder onto the "Library" entry in iTunes, and this added everything, but I no longer have my ratings, playlists or anything like that.
    Is there some other way to have iTunes detect the new location? And can I get back my ratings and playlists?
    Thanks.

    iTunes doesn't use file names to determine how music appears in your library,  Rather, it uses metadata that is split between:
    data elements that are embedded within the media files
    data elements that are included in the entries in the iTunes database
    No amount of reorganization, renaming or other manipulation at the file level will make any difference to how songs will appear in iTunes.  Using your example:
    the value of the track number element is 1
    the value of the artist element is "Elvis Presley"
    the value of the song name element is "Blue Suede Shoes"
    Depending on how you configure iTunes then the file name is either:
    completely independent of iTunes (i.,e., the file containing this song could be xyz.mp3)
    dependent on the metadata managed by iTunes, (i.e., when you have these two options set:
    then iTunes will set the file name to be 1-01 Blue Suede Shoes.mp3 where:
    the file is in a folder called "Elvis Presley" (the name of the album)
    that folder is in one called "Elvis Presley" (the name of the artist) which is in iTunes Media\Music
    Going back to your question "How to make iTunes read the song's name/singer from the file's name" the answer is simple - you can't, as this is not how iTunes works.  There are some third-party utilities that you can use to set some metadata element values based on parsing of file names which might be a useful first step.  However, to use iTunes effectively you should really forget about / ignore file names - manage your media using appropriate metadata and allow iTunes to look after file names behind the scenes.

  • How to make Verizon aware of poor coverage area

    I live in a relatively densely populated suburban community and yet we have very POOR service coverage in our neighborhood.  I remember the days of frequently dropped calls.  But now I am accustomed to never dropping a call.  But lately, and it does seem like a recent phenomenon, I drop every call upon entering my neighborhood.  So, how can I make Verizon aware of this service frustration?  I am certain that others are equally frustrated with this experience and will be considering other carriers if something doesn't change. 

        Thanks for the details, @walanlove. I checked out the 28105 area and don't see any recent changes have been made or a slew of customers reporting trouble, but it is a fairly big zipcode. You mentioned this only happens when entering your neighborhood. What's a nearby cross street we can take a closer look at? I do see customers in the 28105 area have activated Network Extenders http://vz.to/IHRT6h to improve indoor coverage. This can help with dropped calls at your home.
    JenniferH_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • How to make Finder to launch newer verstion of application when user opens file

    I have 2 versions of the same program. Only difference in Info.plist of that bundles is CFBundleVersion field. How can I make Finder to launch newer version, when user opens file assosiated with this application (user has both versions)

    This is not something I know about, but I did find the following in the  Launch Services Programming Guide:
    I'd suggest reposting your question in the Developer's forum here.
    https://discussions.apple.com/community/developer_forums

  • How to make Browse

    dear all,
    I realy new in Oracle Developer, so I need some help plz, I need to make button exactly like a button in
    start -> run -> Browse button
    plz if you have any idea replay me
    with best regared for all
    new in Oracle developer

    First of all we need to know which version of Form you are using.
    If you are under Form 10g, you can use webutil functionalities.
    Here is something about webutil:
    http://www.oracle.com/technology/products/forms/htdocs/webutil/readme.html
    Here is an example on how upload, download files from/to database:
    http://sheikyerbouti.developpez.com/webutil-docs/Webutil_store_edit_docs.htm
    Hope it helps you,
    Fabrizio
    If this answer is helpful or correct, please mark it. Thanks.

  • How to make TM start a NEW backup

    Since January and updating to 10.5.6 (not sure if that had anything to do with it), my iMac had been freezing up and required me to manually power off and on, at first a few times a week, later increasing to several times a day. I suspected a HD failure, but no hardware tests or SMART status tests indicated so. Since February, Time Machine has been doing backup. A couple of weeks ago I finally had time to do a reformat of the iMac HD and did a full reinstall and updated directly to 10.5.7. Since then I have had no freezing issues.
    But. I now have the TM backup from February till mid-May on my external HD. I would like to keep it as it is, all 200Gb worth, and have TM start a totally fresh backup in a new folder.
    After reading pages of information about TM, it seemed people have had trouble doing the opposite, i.e. make TM use build onto the backup which was already there. So I figured TM would do what I hoped; make a new folder in the Backups.backupdb folder with the new computer name (I changed the name on purpose when reinstalling).
    I set up TM preferences to use the same disk as before, as there is still more than enough space. I was surprised to see what happened:
    - The backup folder name changed from the old "EX iMac" to the new installation's name "Exxx Xxxx's iMac".
    - A new dated folder (....inProgress) was created, but with the same date as the last backup made from the old installation a couple of weeks ago, rather than today's date.
    I cancelled the backup right awayas this wasn't what I was expecting, so the "folder" name is still "2009-05-16-124351.inProgress"
    - When I enter TM through the UI, the HD name has been changed for all the old backups (used to be "Macintosh HD", is now "Mac HD ny").
    So it seems that TM in its wisdom recognizes the iMac as its old self, and wants to continue building onto the old backups. This is exactly what I don't want... when space runs out on the external HD, I don't want the old backups to be pruned at all. I want to keep the old backup as-is, for future reference etc., and have TM start a full, fresh backup of my near-empty iMac, which it can do its incremental and space-saving thing with later on.
    Any ideas as to how I can persuade my computer into agreeing that this is a worthwhile concept?

    Pondini wrote:
    Just why do you want to prevent TM from deleting old backups? If it's because you've been deleting things from your internal HD, trusting TM to keep it's copies indefinitely, that's not a good idea.
    The reason is, TM's copies are no longer backups: now they're your originals. When (not if) your TM drive fails, you may lose all of them.
    Thank you for your input. As I wrote earlier, I have reformatted the internal HD and reinstalled a "blank" system. So yes, most files, documents etc. are now found only in the TM backup. One reason for not simply doing a full restore from the TM backup was to allow time to make sure the internal HD was not in fact failing, and being able to reintroduce things step by step in case the problem should materialize again.
    The whole point of wanting to keep the existing TM backup as-is is to make it be there "indefinitely". That doesn't mean I trust the external HD to keep it safe for all eternity, but as long as I am trusting it to back up my stuff, why not let it keep my old stuff as well? Although, admittedly, it is space consuming and the important stuff will be present in both the old and the new backup, once I get it running. Old backup > iMac > New backup. You should see how many papers I have in my shelves from years back

  • How to make links open in new window

    Is it Javascript? How do you make links open in a new
    window.. what's the code and where do you put it, how do you end
    it?

    Target box (below link box0) to "_blank"
    "BenMan 88" <[email protected]> wrote in
    message
    news:e7v4it$jfj$[email protected]..
    > Sorry, this is totally unnecessary and I hope it doesn't
    irritate anyone
    > but thank-you this posting helped me very much.
    >
    >

  • Can't figure out how to make direction aware mouse over?

    I don't have much coding skills at all so that is probably my main problem but does anyone know how to do this effect in Edge Animate? I'm very new to this program but over the last 2 weeks i've been trying to create this and epic failed. Any Advice? Thanks
    http://tympanus.net/codrops/2012/04/09/direction-aware-hover-effect-with-css3-and-jquery/

    Hi, Sekai-
    If you're trying to do this in Animate, I would throw most of the concept out and think of what the jQuery is actually trying to accomplish: it's trying to determine which direction the mouse is entering and leaving in order to determine what direction the overlay should run when you actually enter the object.  You can do the same thing by looking at the pageX and pageY of the mouseenter and mouseleave events and then doing some kind of comparison.
    Without coding it explicitly, this is how I would approach the problem:
    on every object's mouseleave (I'd use a symbol in this case, btw), try to determine the pageX and pageY and compare it to the content's dimensions in order to determine whether or not it leaves from top, right, left, or bottom.
    Based on this information, play from the symbol's timeline in the out direction (e.g. "outFromTop")
    on every object's mouseenter, try to determine the pageX and pageY and see which direction it comes from.  If I can tell, animate from that side.  If I can't, fall back to the last mouseleave's event in order to figure out where it should come from
    Based on this information, play from the symbol's timeline in a different location, from label (e.g. "inFromTop")
    Hope that helps you get going!
    Thanks,
    -Elaine

  • 8i+WebDB HELP:How to make longer fields for "News items"

    8i+WebDB
    How do I create longer fields for my "News items"?
    If I try to publish long sized News I receive an Error:
    "Ora-02005: Implisit(-1) Length not valid for this bind or define
    data type". I HAVE chosen "long field" settings in the DB
    (8.1.5.0.0)
    Are there any parameter settings in WebDB to allow longer
    fields??
    PLEASE HELP!!
    null

    Hi, Lu:
    If I understand your question correctly, you want to modify the FSG of recociliation account of Vendor/Customer to make sure Cost Center/WBS field display in transaction F-22/F-43 for example, right?
    I am not sure whether it is possible, I also tried in ECC6.0 but failed to show these two fields. And I think that doesn't make sense to assign CO object to AP/AR reconciliation account, but assign it to Revenue/Expense account in following line items.
    And You can use New General Ledger functionality Document Splitting to derive corresponding CO object information to Reconciliation Account line item, but it is enabled only in General Ledger level, not in subledger level.
    If you find any other meaningful solution, please also share with us.
    Thanks & BR, Lawrence

  • How to make applescript open a new safari window with a specific name?

    tell application "Safari"
      activate
      make new document at end of every document with properties {name:"MY-NAME", URL:"http://www.google.com"}
    end tell
    Run this script and see if you can figure out why the NAME of the window is still "Google".
    The dictionary  shows several different NAMEs for windows, documents and tabs and only tabs are R/O.
    This doesn't do anything either:
    tell application "Safari"
      activate
      make new document at end of every document with properties {name:"MY-NAME", URL:"http://www.google.com"}
      set the name of window 1 to "TEST"
    end tell

    The title of the window is provided by the page source.
    You can override it (once loaded) with, e.g,
         do javascript "document.title='MY-NAME'" in document 1
    If you had a blank Safari page (i.e. not Top Sites which does contain source data), you should be able to change the window title with
         set name of document 1 to "MY-NAME"

Maybe you are looking for

  • Stored procedure time stamp

    I have 6 blocks of code that needs to be in a  stored procedure. Now, I need time stamps at the beginning of the stored proc and after executing every single block. I need the time stamp stored within a table. If any of the block fails, then the fail

  • Images run through

    My portfolio site has thumbnails (buttons) that bring up images when rolled over. I have them scripted as "onRollover" "GoToAnd Stop" to a flagged frame. Sometimes, but not always, when I log into the site, the flagged frames, or images, run through

  • Split By Value   -  Context

    Hi Experts, I am learing about Split By Value and Context  in Mapping Node Functions, What is Split By Value ? What is Context ? Can anyone give some light on this topic  WITH REAL TIME EXAMPLE. Regards, Study SAP

  • Lightroom 3 compatible with Mac OS X 10.8?

    Hi, I changed from Windows to Mac OS X 10.8. Will Lightroom 3 work on it? On the packaging is written, that it's only compatible with 10.5 or 10.6 - probably because when it came out 10.8 didn't exist so far. So, may it be possible? Another question:

  • Fcpx won't export. [No Prompt]

    I've always been able to export never had problems with it all of a sudden when i click export the wheel pops up for half a second then dissappears. there are no background tasks, they say "idle" and are not doiong anything. I tried exporting to yout