Redirecting to previous URL

when the user login then they can visit the whole website but the problem is how can I redirect them to the previous URL??
thanks & best regards

wpafbuser1 wrote:
There are many ways to do this. You can do it using JavaScriptthanks for your reply
again I want to explain my problem. e.g. my user want to view its watchlist when he clicks the link my servlets check is he loged in or not if not then redirecting the login servlet to the user
till here things are going ok
but after login how my code will know that the user was visiting watchlist or else i.e. how the code'll redirect to the previous page??
thanks again for your help

Similar Messages

  • User Login - go to previous URL not working

    Hi
    I have a user login set up using the DW server behaviour.
    The problem I have is that the redirect to the previous url doesnt work and always directs a successful login to the default successful login page.
    The problem seems to revolve around this part of the code:
                    if (isset($_SESSION['PrevUrl']) && FALSE) {
                        $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
                    header("Location: " . $MM_redirectLoginSuccess);
    and in particular the use of the && FALSE check.  I can see from my debugger that the value of $_SESSION['PrevUrl'] is properly set to the previous url.  If I remove the && FALSE check the login works as I would expect and redirects to the previous URL.  However, as this is 'out of the box' DW code I am concerned in case removing the && FALSE check may be doing some harm.  I have to admit I dont understand the logic of what the && FALSE part of the IF statement is actually checking for.
    Any advice and/or reassurance that by removing the && FALSE is not doing any harm or exposing me to any risks would be appreciated.
    Thanks

    session_start() is set
    As I step through the code and watch the variables I can see that the value of $_SESSION['PrevUrl'] is equal to the previous url but $MM_redirectLoginSuccess remains as the default success page.
    If I remove the && FALSE element from the IF statement, the value of MM_redirectLoginSuccess is changed to the the value of $_SESSION['PrevUrl'], which is what I want.
    So my question is, what is the && FALSE bit doing and why is it there and do I need it?

  • Incorrect redirection to mobile url

    I have some refurbished laptops with Win7 and IE11. Going to our company (small county government) Sendio Ice Box (spam blocker) IE11 is wrongly redirecting the typed url to the mobile url! This renders the font so small it is unusable. Firefox is NOT doing
    this. We have tried all the obvious stuff like deleting history and resetting the security back to default.
    Thanks for any suggestions in advance.
    Kurt

    Hi,
    some websites store the screen preferences in the site cookie. Usually properly designed adaptive sites will have buttons to toggle the screen layout between desktop and mobile. see Wikipedia.org
    When asking internet related questions please include links to any sites you are having problems with.
    Hi and welcome to the Windows Internet Explorer 8, 9, 10 and 11 (Preview) Forum for IT Professionals.
    We listened to customer requests from IT Professionals for a dedicated Internet Explorer 8, 9, 10 and 11 Preview forum that you can participate in as community. This is a place where you can share knowledge, ask questions and get them answered and learn
    from others with IT environments similar to yours. Primary areas of focus are installation, deployment, security, management, group policy, migrations from previous versions.
    If your questions is related to end user experience or you are a home user, we'd definitely recommend heading over to our sister site at Microsoft Answers
    http://social.answers.microsoft.com/Forums/en-US/InternetExplorer/threads
    Rob^_^

  • How can I create a redirect to an URL like in SICF?

    Hi,
    we offer  the payroll (com.sap.pct.erp.ess.paycheck_service / sap.com/ess~rem/payslip2) in our portal which is a Java-WD. Whenever we import a modified version of the corresponding HRFORM into the P-system the application aborts with an error because the HRFORM has to be generated first after the import.
    I wanted to get rid of this problem by using the SICF where you can define a redirect to an URL (I wantet to switch to a "service is under construction"-WD). Unfortunately the SICF can only be used for WD4ABAP-services as I know - not for Java.
    Has anybody an idea how to solve my problem? I want to switch to a "service is under construction"-WD whenever there's an abort while processing the payroll application.
    We don't have any Java skill.
    Greetings,
    Steff

    You can place the html in component folder. src>mimes>Components. and can be accessed by code
    try {
    String url = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"<redirect>.html");
    } catch (WDURLException e) {
    wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
    1) you can use the url to navigate to the redirect page or can try exit plug.
    nikhil

  • Need to invoke a process from a column link and then redirect to a url

    Is it possible to invoke a process from a column link then redirect to a url
    I want to invoke a process that has a pl sql block of code which will do some table inserts and then redirect the user to an external url.
    Any help would be appreciated.

    Howdy Scott,
    I thought this might help me but I've got a dynamic form with apex_application.g_f01(i) items on it ie tabular form. How can I take the value of these arrays with me to the temporary page with the onload process?
    Thanks
    Gary

  • No redirection to different url upon http connections limit exceeded

    Hi,
    As of Standalone OC4j 10.1.2, if you want messages to be redirected to a different URL when the maximum connections limit is reached, you would include the HTTP redirect URL to max-http-connections tag inside server.xml.
    <max-http-connections max-connections-queue-timeout="120" socket-backlog="50"
    value="100">http://optional.redirect.url/page.jsp</max-http-connections>
    I have a standalone OC4j 10.1.3, and would like to be able to redirect to different URL when maximum connections limit is reached but the above max-http-connections does not work and I am not redirected to different URL when maximum connectionns limit is reached. I read user guide of OC4j 10.1.3 and there is no mentioning of max-http-connections at all. In there, they talk about limiting concurrency via http thread pool but there is no discussion as to the mechanism of redirecting users to a different URL where I can display a user friendly message to say "Server is busy, please try again later..." instead of browser display a message "Page cannot be displayed"..
    Please advice,
    Thanks

    Any thoughts on above issue ? please help.
    thanks
    Sam

  • When redirecting to site url jsessionid is appended and url becomes wrong

    hi,
    i have requirement when user clicks on link on b2c application then it should redirect to a site url.The problem when redirecting to site url is that jsessionid gets appended to site url and as a result url is not opened   due to wrong url generated as follows
    http://www.mahindralifespaces.com/SPLENDOUR/PROJECTMILESTONE.ASP;jsessionid=(mlkndcrmsdev_LCD_00)ID0618353650DB01149016834107209233End;saplb_*=(mlkndcrmsdev_LCD_00)7680550?a=b
    how to overcome this problem .did any one have idea
    Regards,
    Pavan

    i am directing forwarding to url using struts action forward using following code
    strUrl=mybom.getProjectStatusBO().getProjectStatusURL(userId);
    log.error("user url"strUrl"userId--"+userId);
    request.setAttribute("strUrl",strUrl);
    forward.setPath(strUrl);
    forward.setRedirect(true);
    return forward;
    following solved my problem
    i have chaged  web-j2ee-engine.xml file
    <cookie-config>
              <cookie>
                   <type>SESSION</type>
                   <path>APPLICATION</path>
                   <domain>NONE</domain>
              </cookie>
              <cookie>
                <type>APPLICATION</type>
                <path>APPLICATION</path>
                <domain>NONE</domain>
              </cookie>
    domain to none solved my problem
    Regards,
    Pavan

  • Redirecting a domain URL to a file

    Is there any SAF directive (e.g NameTrans) to redirect a domain URL (e.g http://www.xyz.com/rob.txt) to a file rob.txt sitting at location /x/y/rob.txt (other than root directory rob.txt).
    Bascially I want to achieve any request coming to http://www.xyz.com/rob.txt redirected to /x/y/rob.txt so that I can use another rob.txt (not the one lying in root dir /) for this domain.

    If you want different hosts to respond with different content, you'd normally create separate virtual servers. Each virtual server could have its own document root, so foo.example.com/rob.txt could map to a different file than bar.example.com/rob.txt.
    If you really want to special case things for a given hostname and URI, you can do that. The following will redirect requests for /rob.txt to /x/y/rob.txt only if the hostname www.example.com was used in the request:<Client urlhost="www.example.com">
    NameTrans fn="redirect" from="/rob.txt" url="/x/y/rob.txt"
    </Client>

  • Firefox is not redirecting to given url it is in ideal stage

    firefox is not redirecting to given url it is in ideal stage

    You can check for problems with preferences and try to rename or delete the prefs.js file and possible numbered prefs-##.js files and a possible user.js file to reset all prefs to the default values.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can try to reset Firefox.
    *https://support.mozilla.org/kb/reset-firefox-easily-fix-most-problems
    If you reset Firefox then a new profile is created and some of your data (bookmarks, passwords, cookies, form data) is automatically imported and your current profile will be moved to the desktop (Old Firefox Data).
    You can recover more data from the old profile (be cautious with doing that).
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Redirecting to another url when seesion expires... or on closing browser wi

    is it possible in servlet/jsp using tomcat to redirect to another URL so that i can delete my objects that are stored in ServletContext ?
    i want to redirect when the session get expire or when a user close its window ..
    is it possible using javascript ?
    if any info Plz mail at gmail ..[email protected]

    public class sessionManager implements HttpSessionListener {
         public void sessionCreated(HttpSessionEvent se) {
         public void sessionDestroyed(HttpSessionEvent se) {
    In this class for the sessionDestroyed() function i want to write RequestDispatcher .. so that i can redirect or forward my request to another URL so that i can delete my object that r present in ServletContext.
    because for requestDispatcher i need to implement HttpServlet
    which overrides service method ( doGet()/doPost()).which receives HttpServletRequest/HttpServletResponse object ...
    Plz let me know if possible .... the main thing is that i want to go to that particular URL for delting my objects
    any Plz let me know

  • Redirecting to an URL

    Hi Experts,
    I want to redirect to an URL with an user interaction that is redirection through coding
    Regards
    Vinu

    Hi
    1)go to ur application->applproperties>new>predefine>browse>logoffurl>ok>name:logoffurl->value=http://www.google.com-->finish
    2)go to interface view controller>plugs>outboundplugs>click new>name:define the outbound plug e(exit type) with parameter Url of type string
    3)the create a ui element button in ur vie and write the following code in button's action
    String s=wdComponentAPI.getApplication().getApplicationInfo().findInApplicationproperties("sap.logoffurl").getValue();
    wdThis.wdGetInterfaceviewController(0.wdFirePlugExit(s);
    In the required controllers u can add interface view controller.
    Regards
    Hazrath

  • How can I redirect APEX(EPG) URL with afrindly one

    Hi All,
    I am using APEX with EPG on oracle 11g, and I would to redirect the URL http://localhost:8080/apex/f?p=122:1:43920293912715::NO with a friendly one like this
    http://project_name.mydomain.com
    Is there any one can help me know; how to do this redirection where I would to hide the port no 8080 within the URL
    Thank you in advance
    Yassin

    Yasen® wrote:
    hi is this solution working for Apex on 11g with EPG? whrere to run this code?Yes, it should work on 11g with EPG.
    Using SqlPlus, log in as SYS and run the code posted by "user7449726" to change the path name and default home page of the DAD.
    To change the port from 8080 (the default) to 80, run the following as SYS using SqlPlus:
    CALL DBMS_XDB.SETHTTPPORT(80);
    ALTER SYSTEM REGISTER;
    Make sure you don't have anything else running on port 80 (such as Microsoft's Internet Information Server) or you will obviously get a conflict.
    - Morten

  • How can I redirect to an URL from a portlet?

    I'm using Bea Workshop 8.1 and trying to perform a redirect from inside a portlet
    using HTTPServletResponse.sendRedirect(String url)... but nothing happens ((
    I tryed the same trick with a simple JSP, and that's ok, but portal pages obviously
    catch the redirect somehow.
    Please could you tell the correct way of redirecting the whole browser to another
    page from inside portlets?
    Thanks!!!

    Backing files is an option. If you need to do it from the controller, you
    could use the Forward object. The forward object constructor can take a URL
    object as a parameter. This should do the trick.
    Regards,
    Kunal
    "Panji Aryaputra" <[email protected]> wrote in message
    news:[email protected]..
    Hi, you have to use backing file to get what you want. In my case, I am
    using a page backing file. Perhaps a portlet backing file can do thatalso.
    Cmiiw, the redirect header makes the page redirected only if the httpheader
    has not been sent to client. In your case, the header has been sent (i.e.
    the portal header.jsp has been displayed, etc). So the header need to be
    sent before anything else sent to client browser. This is where thebacking
    file comes handy.
    hth
    panji.a
    "A Hagen" <[email protected]> wrote in message
    news:[email protected]..
    I'm using Bea Workshop 8.1 and trying to perform a redirect from inside
    a
    portlet
    using HTTPServletResponse.sendRedirect(String url)... but nothing
    happens
    I tryed the same trick with a simple JSP, and that's ok, but portal
    pages
    obviously
    catch the redirect somehow.
    Please could you tell the correct way of redirecting the whole browser
    to
    another
    page from inside portlets?
    Thanks!!!

  • How to display swf in full screen mode and how to redirect to a url

    Hi,
    I have 2 questions :
    Question 1 - I have a flash swf file and I want to display it in the browser in full mode meaning it should fit the browser, I have tried adding
    fscommand("fullscreen", "true");
    in the first frame of a lyaer but it does not work.
    Question 2 - How to redirect to another page at the end of the swf movie, I have tried adding :
    stop(); 
    navigateToURL( new URLRequest("*www.microsoft.com*"), "_self");
    in the last frame but it does not work.
    Thank you very very much for your assitance !!
    Terry

    "fscommand("fullscreen", "true");" only works for self-running executables, not embedded SWFs in a web page.
    To get the swf to fill the browser page, the best thing to do would be to adjust the publish settings of the "HTML Wrapper" page and copy the necessary pieces from the resultant HTML file into the HTML file you are putting the swf into.
    I have had some successes dealing with similar navigation issues by breaking up the code into multiple tasks:
    var url:String = "http://www.microsoft.com";
    var urlReq:URLRequest = new URLRequest(url);
    navigateToURL(urlReq);
    I can't guarantee that will help, but at least I tried.  :-)

  • Problem trying to update a website and redirecting to my url through .mac

    Using iweb 1.1 , I have updated pages and am trying to republish- the newly updated website doesn't publish. It keeps reverting to the oroginal one created.
    I dumped all iweb from my idisc, deleted Safari cache, ....
    I see the photos that are updated are in their respective site files- so not sure what is happening here. Also am redirecting the published website to my url via YAHOO- very easy. I noted that the file name does not change when redirecting as well.
    Any suggestions would be appreciated.

    I figured it out just rename the site number and it works fine.

Maybe you are looking for

  • How would I implement something similar to SSRS data driven subscriptions in CRM 2015 Online?

    Requirement: Generate Report and send specific pricing information to a list of contacts based on field value. I'm new to CRM, but am well versed in SSRS and I'm looking to understand: 1. Is it possible to create something like a data driven subscrip

  • Encrypted Time Machine Backup Lost in Mountain Lion Install?

    Hi, Operating 10.7.4, I make use of 'time machine' encrypted backups to an external HD. If I wipe the HD and do a fresh install of 10.8, will I lose the encrypted backup? Of course I know my passwrd and I don't rely on the keyring, but if there is so

  • How to Suppress HTML Button on WCC Check-in Page

    Hi, On the WCC checkin page there is an HTML button. When I attempt to add an asset to DAM, and click the HTML button before initial check-in I get this error Unable to execute service DC_CACHE_CHECKIN_NEW and function checkDocRules. The error was ca

  • Inventry Posting List Report PLD

    Hi Experts, I am using SAP 2007 B Pl 13 . I am running the report Inventry Posting List. The data comes dailywise total , monthwise total yearly total but in PLD it does not show in this manner. I need the PLD in this format. Please help me. Thanks a

  • Pga and temp

    Hi Sometimes I hit unable to extent temp errors. My db version is oracle 9i. I guess the pga is not set. I am not sure why total PGA inuse has a value in second query.. Is there any impact if I set pga? SQL> show parameter pga NAME TYPE VALUE pga_agg