Redirect from ROOT

I am trying to redirect to the welcome page from ROOT. When www.mydomain.com is called from a browser, the servlet inside ROOT should redirect to another web page in webapps/welcome/index.jsp
What I did:
com.index.Redirect
public class Redirect extends HttpServlet
     private final String url = "welcome/index.jsp";
     public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
          response.sendRedirect(url);
}web.xml:
<servlet>
    <servlet-name>Index</servlet-name>
    <servlet-class>com.index.Redirect</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>Index</servlet-name>
    <url-pattern>/index</url-pattern>
  </servlet-mapping>What I got: The requested resource (/) is not available
What am I missing? Thanks

"/" is not the same as "/index". The mapping from / to /index is done on the server side, not the client, so you can't assume that every hit will start with at least /index. Also if I recall correctly / has a special meaning in servlet environment configurations and may not behave as expected.
Generally (or always?) web servers and I believe servlet containers have a special configuration option to identify a home page, so be careful that you're not reinventing the wheel here.

Similar Messages

  • Automatically redirecting all root home page requests

    How is it possible to automatically re-direct all pages requests for the sites root at http://www.mydomain.com/ to http://www.mydomain.com/myapp/ such that any subsequesnt requests for http://www.mydomain.com/myapp/otherpages.hmtl etc. are not affected?
    Currently all requests to http://www.myhome.com/myapp/ all captured and passed through the reverse proxy plugin to a backend application server:
    NameTrans fn="assign-name" from="/myapp(|/*)" name="passthrough"
    <Object name="passthrough" 2=">">
    ObjectType fn="force-type" type="magnus-internal/passthrough"
    Service type="magnus-internal/passthrough" fn="service-passthrough" servers="http://192.168.1.1:80"
    </Object>Any requests to the root directory are handled by a client-side HTML redirect to http://www.mydomain.com/myapp/ which is then picked up by the web servers reverse-proxy passthrough.
    I would like to remove the client-side re-direct and have all root requests automatically rewitten as the subdirectory and then passed through the reverse proxy.

    Okay, I have dug back through the forums and elving gave the solution back in April '05:
    http://forum.sun.com/jive/thread.jspa?threadID=52552&tstart=850I have added the following lines to the default object in obj.conf - this redirects requests for the root folder to a subfolder, myapp, and these are then reverse proxied to another server:
    <Object name="default">
    <Client uri="/">
    NameTrans fn="redirect" from="/" url-prefix="/myapp"
    </Client>
    NameTrans fn="assign-name" from="/myapp(|/*)" name="passthrough"
    </Object>
    <Object name="passthrough" 2=">">
    ObjectType fn="force-type" type="magnus-internal/passthrough"
    Service type="magnus-internal/passthrough" fn="service-passthrough" servers="https://192.168.1.1:80"
    </Object>This now re-directs without any cient scripting.... which is tidier.

  • Redirect from one ADF SSO application to another ADF application

    Dear All
    I've 3 ADF application developed which have 3 different context roots
    1. /XXXXView (http://<server>:<port>/XXXXView/)
    2. /YYYYView (http://<server>:<port>/YYYYView/)
    3. /ZZZZView (http://<server>:<port>/ZZZZView/)
    Without ADF security being implemented I could redirect from one application to other using below code:
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext ectx = ctx.getExternalContext();
    ectx.redirect("/YYYYView");
    Then I implemented ADF security in /XXXXView application and also protected the application in OAM (the port changed to <ssoport> and the new URL is http://<server>:<ssoport>/XXXXView/). After implmenting ADF security the rediection from /XXXXView to other applications stopped working and gave the below error.
    IllegalStateException: Response already committed
    Thinking one ADF secure application might not redirect to another non ADF secure application, I also implmented ADF security in /YYYYView. But no luck. Still redirection didn't work.
    Even I tried using the below code after following the blog (http://adfdeveloper.blogspot.in/2011/07/adf-auto-redirect-while-still-passing.html)
    FacesContext fctx = FacesContext.getCurrentInstance();
    ViewHandler vh = fctx.getApplication().getViewHandler();
    UIViewRoot viewToRender = vh.createView(fctx, url);
    fctx.setViewRoot(viewToRender);
    fctx.renderResponse();
    Still redirection didn't work. It will be of great help if anyone can help me resolving this issue.
    Regards
    Sibs

    You will want to look into Component Usage in Web Dynpro.
    http://help.sap.com/saphelp_nw04s/helpdata/en/0e/496ad66c601349a730502d3ea26e05/frameset.htm
    Regards,
    Rich Heilman

  • How to redirect from list edit form to another page using jquery in sharepoint 2013

    hi friends i have been trying to find a way to redirect from list edit form to another page using javascript and jquery
    i found lot of codes online but non of them are working for me.
    what i need is i have to save the data in the form and after that it has to redirect to another page. it has to get the url from hyperlink field of the item.
    please help me in this regards

    Not sure if you have gone through below links:
    http://spservices.codeplex.com/wikipage?title=%24().SPServices.SPRedirectWithID
    http://blogs.askcts.com/2013/02/18/using-spservices-and-jquery-to-perform-a-redirect-from-a-sharepoint-list-newform-to-editform/
    Please ensure that you mark a question as Answered once you receive a satisfactory response.

  • How to pass on variables while redirecting from BSP to HTML  page.

    Hi all,
    I have two BSP pages - BSP1, BSP2.  When I click a submit button on BSP1, it should call BSP2 wherein BSP2 will work silently behind the scenes and redirect some variable values through hidden form fields to BSP1 back. 
    User will not see BSP2 in fact.  He just deals with BSP1, but when he clicks the submit button on BSP1, it silently calls BSP2, and then BSP2 will process something behind the scenes and sends back values through hidden form fields to BSP1 by means of redirection. After redirection from BSP2 to BSP1, I am not getting the hidden fields in BSP1.  From the BSP1, I am trying to get the hidden fields of BSP1 using:
    Here is how my code in BSP2 (redirecting to BSP1) looks like:
    <b>BSP2 : Layout:</b>
    <input type="hidden" name="hf1" value="vicky">
    <b>BSP2 : OnInitialization:</b>
      response->redirect( url_BSP1 ).
      navigation->response_complete( ).
    But when I am doing this, the hidden form fields from BSP2 are not being passed to BSP1 back.
    I am trying to get the form values <b>in BSP1</b> as below:
    <b>BSP1 : Layout:</b>
       <%
       data:  hfield type string.
       hfield = request->get_form_field('hf1').
       %>
    I even tried the above code in onRequest, and onInitialization sections.  But I am getting nothing.
    Please give me some ideas on how to deal with the redirection and get the hidden values out of that.
    Thanks in advance.
    Cheers,
    Vicky.

    Hi,
    There are different ways to do it, but let's pick this one. It closes the popup. If you need additional things to be done, you can make a form with all hidden fields, submit that form, do the same close and do whatever you need in the inputprocessing
    <html>
      <head>
    <title>title</title>
          <script language="javascript">
              function init() {
              <%if count eq 1.%>
                  opener.document.form.F<%=field%>.value = '<%=value.%>';
              close();
             <%else.%>
          <%endif.%>
          </script>
      </head>
      <body onLoad="init();">
    </body>
    </html>

  • How to Create Instances in the Transient Root Node and Sub Nodes from Root Node Query Method ?

    Hi All,
    I am Creating a BOPF BO with 3 Nodes,
    Node 1) ROOT -- > contains a query,
    using Root Node I have created Search UIBB Configuration in FBI.
    In testing -- > when i enter Data in the Search Criteria Fields am able to get the details in to the query method
    from Imporing parameter : 'IT_SELECTION_PARAMETERS'.
    HERE I am fetching data from a standard table and trying to fill the data in the Node : 'MNR_SEARCH_RESULT'.
    How to Append data to the Sub node 'MNR_SEARCH_RESULT' when there is no Node instance created in the ROOT Node ?
    For This  I have created an instance in the ROOT Node and Using that I tried to create Instance in the Sub Node 'MNR_SEARCH_RESULT'.
    Below is my code which i have placed in the Query method ..
    DATA : LR_DATA TYPE REF TO ZBO_S_ROOT1.
    DATA : LR_SEARCH_RES TYPE REF TO ZBO_S_MNR_SEARCH_RESULT.
    DATA : LO_CI_SERVICE_MANAGER TYPE REF TO /BOBF/IF_TRA_SERVICE_MANAGER,
            LO_TRANSACTION_MANAGER TYPE REF TO /BOBF/IF_TRA_TRANSACTION_MGR.
       LO_CI_SERVICE_MANAGER = /BOBF/CL_TRA_SERV_MGR_FACTORY=>GET_SERVICE_MANAGER( IV_BO_KEY = ZIF_BO_TEST_PO_C=>SC_BO_KEY ).
       LO_TRANSACTION_MANAGER = /BOBF/CL_TRA_TRANS_MGR_FACTORY=>GET_TRANSACTION_MANAGER( ).
    CREATE DATA LR_DATA.
    LR_DATA->KEY = LO_CI_SERVICE_MANAGER->GET_NEW_KEY( ).
    LR_DATA->ROOT_KEY   = IS_CTX-ROOT_NODE_KEY.
    LR_DATA->PIPO_MAT_ID = '100100'.
    LR_DATA->PIPO_MAT_DESC = 'MATERIAL'.
    LR_DATA->PIPO_SPRAS = 'E'.
    LR_DATA->PIPO_MATL_TYPE = 'ZPMI'.
    LR_DATA->PIPO_MATL_GROUP = 'ZKK'.
         DATA lt_mod      TYPE /bobf/t_frw_modification.
         DATA lo_change   TYPE REF TO /bobf/if_tra_change.
         DATA lo_message  TYPE REF TO /bobf/if_frw_message.
         FIELD-SYMBOLS: <ls_mod> LIKE LINE OF lt_mod.
        APPEND INITIAL LINE TO lt_mod ASSIGNING <ls_mod> .
        <ls_mod>-node        =   ZIF_BO_TEST_PO_C=>sc_node-ROOT.
        <ls_mod>-change_mode = /bobf/if_frw_c=>sc_modify_create.
        <ls_mod>-key         = LR_DATA->KEY.
        <ls_mod>-data        = LR_DATA.
    DATA : LT_CHG_FIELDS TYPE /BOBF/T_FRW_NAME.
    DATA : LS_CHG_FIELDS LIKE LINE OF LT_CHG_FIELDS.
    DATA : LV_KEY TYPE /BOBF/CONF_KEY.
    CALL METHOD IO_MODIFY->CREATE
       EXPORTING
         IV_NODE            = ZIF_BO_TEST_PO_C=>sc_node-ROOT
         IV_KEY             = LR_DATA->KEY
         IS_DATA            = LR_DATA
         IV_ROOT_KEY        = IS_CTX-ROOT_NODE_KEY
       IMPORTING
         EV_KEY             = LV_KEY .
    CREATE DATA LR_SEARCH_RES.
    LR_SEARCH_RES->KEY           = LO_CI_SERVICE_MANAGER->GET_NEW_KEY( )..
    LR_SEARCH_RES->PARENT_KEY    = LV_KEY.
    LR_SEARCH_RES->ROOT_KEY    = LV_KEY.
    LR_SEARCH_RES->MATNR    = '123'.
    LR_SEARCH_RES->ERSDA    = SY-DATUM.
    LR_SEARCH_RES->ERNAM    = SY-UNAME.
    **LR_SEARCH_RES->LAEDA    = .
    **LR_SEARCH_RES->AENAM    = .
    **LR_SEARCH_RES->VPSTA    = .
    *LR_SEARCH_RES->LVORM    = .
    LR_SEARCH_RES->MTART    = 'ZPI'.
    LR_SEARCH_RES->MBRSH    = 'ZTP' .
    LR_SEARCH_RES->MATKL    = 'MAT'.
    **LR_SEARCH_RES->BISMT    = ''
    **LR_SEARCH_RES->MEINS    =
    CALL METHOD io_modify->create
               EXPORTING
                 iv_node            = ZIF_BO_TEST_PO_C=>sc_node-MNR_SEARCH_RESULT
                 is_data            = LR_SEARCH_RES
                 iv_assoc_key       = ZIF_BO_TEST_PO_C=>sc_association-root-MNR_SEARCH_RESULT
                 iv_source_node_key = ZIF_BO_TEST_PO_C=>sc_node-root
                 iv_source_key      = LV_KEY
                 iv_root_key        = LV_KEY.
    I am Unable to set data to the Node . I did not get any error message or Dump while executing . when i tried to retrive data I got the details from the node but am unable to view those details in the FBI UI and BOBT UI while testing .
    Please provide your valuable Suggestions.
    Thanks in Adv.
    Thanks ,
    Kranthi Kumar M.

    Hi Kranthi,
    For your requirement you need only two nodes. Root Node and Result node. Use the same structure for both.
    To create Instance while search.
    Create Query method with input type which has the required fields for selection criteria.
    Fetch the data and create instance in the root node.
    Pass the new instance key as exporting parameter form Query Method.
    To Move data from ROOT to Result.
    Create a action at root node.
    Write a code to create new entries in Result node.
    Then configure the Search UIBB and display result in List UIBB. Add button and assign the action MOVE_MAT_2_RESULT.
    Create another List uibb to display data from Result node.
    Connect the UIBBs using wire schema. SEARCH -> LIST(ROOT) ---> LIST(RESULT).
    Give src node association for ROOT to RESULT Configuration.
    Regards,
    Sunil

  • How to remove namespace from root-element

    Hi Gurus,
    I want one xml output from xslt transformation with no namespace. I managed to remove namespace from child elements by leveraging elementFormDefault ='unqualified' property of xsd. But not able remove namespace from root-element.
    Output that I want is :
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <inp1:Email_Mod_Root>
       <Email_Mod_Root_Element>
          <Email_Record1>
             <PERSON_NUMBER>123456</PERSON_NUMBER>
             <COUNTRY/>
              <EMAIL_TYPE>WORK</EMAIL_TYPE>
             <EMAIL>EMAIL3</EMAIL>
             <PRIMARY_FLAG>Y</PRIMARY_FLAG>
          </Email_Record1>
    </Email_Mod_Root_Element>
    </Email_Mod_Root>
    Output that I am getting:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <inp1:Email_Mod_Root xmlns:inp1="http://www.example.org">
       <Email_Mod_Root_Element>
          <Email_Record1>
             <PERSON_NUMBER>123456</PERSON_NUMBER>
             <COUNTRY/>
             <EMAIL_TYPE>WORK</EMAIL_TYPE>
             <EMAIL>EMAIL3</EMAIL>
             <PRIMARY_FLAG>Y</PRIMARY_FLAG>
          </Email_Record1>
    </Email_Mod_Root_Element>
    </Email_Mod_Root>
    Anyone, pls suggest.
    Thanks in advance,
    SG_SOA

    First of all :
    <inp1:Email_Mod_Root>
       <Email_Mod_Root_Element>
          <Email_Record1>
             <PERSON_NUMBER>123456</PERSON_NUMBER>
             <COUNTRY/>
              <EMAIL_TYPE>WORK</EMAIL_TYPE>
             <EMAIL>EMAIL3</EMAIL>
             <PRIMARY_FLAG>Y</PRIMARY_FLAG>
          </Email_Record1>
    </Email_Mod_Root_Element>
    </Email_Mod_Root>
    isn't valid xml (you start with inp1: prefix and you end the tag with no prefix, but let's assume you don't want any prefix/namespace at all)
    if i use :
    [code]
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:inp1="http://www.example.org" exclude-result-prefixes="inp1">
      <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="*">
        <xsl:element name="{local-name(.)}">
          <xsl:apply-templates select="@* | node()"/>
        </xsl:element>
      </xsl:template>
      <xsl:template match="@*">
        <xsl:attribute name="{local-name(.)}">
          <xsl:value-of select="."/>
        </xsl:attribute>
      </xsl:template>
    </xsl:stylesheet>
    [/code]
    i get this
    [code]
    <Email_Root_Element>
      <Email_Record>
      <EMPLID>EMPLID46</EMPLID>
      <EMAIL>EMAIL48</EMAIL>
      <E_ADDR_TYPE>E_ADDR_TYPE49</E_ADDR_TYPE>
      <COUNTRY>US</COUNTRY>
      </Email_Record>
      <Email_Record>
      <EMPLID>EMPLID47</EMPLID>
      <EMAIL>EMAIL49</EMAIL>
      <E_ADDR_TYPE>E_ADDR_TYPE50</E_ADDR_TYPE>
      <COUNTRY>US</COUNTRY>
      </Email_Record>
      <Email_Record>
      <EMPLID>EMPLID48</EMPLID>
      <EMAIL>EMAIL49</EMAIL>
      <E_ADDR_TYPE>E_ADDR_TYPE51</E_ADDR_TYPE>
      <COUNTRY>US</COUNTRY>
      </Email_Record>
    </Email_Root_Element>
    [/code]

  • How to create HTTP 301 redirect from UCM 7.5.2

    Is it possible to send a HTTP response with a permanent redirect from a UCM/Stellent website? We're using version 7.5.2 with iDoc script.
    We can use the iDoc function setHttpHeader() to send the Location HTTP header, but how to send the HTTP response code 301, to signal the permanent redirect to the browser?

    Hi Rob,
    If you are using IIS there is a config variable that allows you do this. First create a virtual directory in IIS point to <install dir>\Inetpub\wwwroot directory.
    and then do the below steps
    a.     Login to Content Server
    b.     Click on Administration Admin Server
    c.     Click on Content Server instance name(button)
    d.     Click on General Configuration
    e.     Update SSWebFilterIgnoreList configuration variable
    f.     SSWebFilterIgnoreList=virtualDirectory There should not be any spaces
    g.     Click on save
    h.     Restart Content Server
    Let me if this is what you are looking for.
    regards,
    deepak

  • Getting URL redirects from Google's "I'm Feeling Lucky" Search

    Hello all! I'm working on my final project for my intermediate programming class but I've hit a bit of a snag. This project is a "do whatever interests you, as long as it incoporates what we've learned this semester" type of project. (My personal favorite type of programming project!) I have a significant amount of code already complete, but here's my problem:
    To put it simply, my program:
    1) Takes a list of movie names
    2) Gets the movie poster from Wikipedia
    3) Saves the poster images to a folder
    4) Creates an HTML file, so I can see a visual representation of every movie on the list (btw, how do you like my idea?).
    I'm using (what I think to be) a very clever system of searching with Google's "I'm Feeling Lucky" search (using detailed search terms such as "air+force+one+movie+wikipedia" that will, more than likely, always take me to the right page (if it exists))...
    Basically, my getPic(String url) method is now throwing an exception when I try to search the page that Google redirects me to, and I'm guessing it might be because the code is trying to search the "I'm Feeling Lucky" redirect page, instead of the page it is supposed to redirect to.
    I get the following error:
    10000 BC
    A connection to http://www.google.com/search?btnI=1&q=10000+bc+movie+wiki could not be established.
    java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.google.com/search?btnI=1&q=10000+bc+movie+wiki
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.URL.openStream(Unknown Source)
         at GetWikiPiki.getPic(GetWikiPiki.java:44)
         at MovieList.makeMovieList(MovieList.java:109)
         at MakeMovieList.main(MakeMovieList.java:13)(Etc, with all the movies giving the same exception.)
    If my guess is correct, could someone please inform me on how to either:
    a) Follow the redirection from Google to the Wikipedia page or
    b) Obtain the URL which the Google search will redirect me to.
    Preferably b, so I can program it not to need to recreate each movie search every time the program runs.
    Or if you have another idea of what it could be, please feel free to make suggestions.
    Thanks a lot,
    Derek

    When I tried printing the source of, for example, http://www.google.com/search?btnI=1&q=10000+bc+movie+wiki it gave me the source code to the Wikipedia 10,000 BC page with no errors at all.
    Does this mean that it could be something wrong in my code and not Google?
    Here is the code I'm using in the particular section that throws an exception:
          * Gets the image address of a movie poster from Wikipedia via
          * parsing the passed-in URL.
          * @param url The website address (URL) of a Wikipedia article containing a movie poster.
          * @return The first occurrence, in "picture_name.jpg" format, of an
          * image whose address contains "http://" and ".jpg".
    public String getPic(String url) {
              try {
                   URL connection = new URL(url);
                   InputStream in = connection.openStream();
                   Scanner console = new Scanner(in);
                   while(console.hasNext()) {
                        String temp = console.next();
                        if(temp.contains("http://") && temp.contains(".jpg")) {
                             String temp2 = temp.replace("src", "").replace("=", "").replace("\"", "");
                             return temp2;
              catch(IOException e) {
              System.out.println("A connection to " + url + " could not be established.");
              e.printStackTrace();
              return null;
         }{code}
    Edited by: NovellTerminator on Apr 8, 2009 2:36 AM
    Edited by: NovellTerminator on Apr 8, 2009 2:40 AM (Included JavaDoc)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Yahoo mail redirects my email page to another trap page that asks me to upgrade. Is there an extension I can use to redirect from that site?

    I would like to know if there's an extension, or if I need to write a script so that Firefox will stop a redirect to a trap yahoo page, that yahoo causes when I try to access my yahoo mail account. Yahoo redirects from my email page every time I try to access it. I can force my way back to email if I highlight the following from the address bar and delete it: /neo/trap?dm=cl&ncrumb=IvdoOqzobdy&.rand=1254591153
    That address qualification appears when I try to access "mail.yahoo.com"
    If there is no extension I can use, can you explain what I should use to write a script? And where I can research to learn how to write it.
    If you could point me in the right direction I would really appreciate it.

    ok, you could use the greasemonkey extension & this userscript: http://userscripts.org/scripts/show/113518 (i haven't tested it myself, but judging from the description it may apply to your case)

  • How to make a redirect without auto-redirect from the portlet "edit" mode?

    How to make a redirect without auto-redirect from the portlet "edit" mode?
    I use some sofisticated customizing with server-side validation of the form data. I want to redirect to the page of the portlet "show" mode and to the "edit" mode depending on the validation results. How can I do it?

    Heay.....this worked for me.
    I am able to change the mode programatically from edit to show.
    HttpPortletRendererUtil.handleEditAction(portletRenderRequest,"OK");
    I removed Apply , OK and Cancel buttons and applied my own Submit and Back button in Personalize mode and then change the mode to show on click of Back button using the above mentioned statement.
    Thanks
    ~Neeraj Sidhaye
    Try_Catch_Finally @ Y !
    ExtremePortal @ Gmail&#12288;&#65316;&#65359;&#65364;&#12288;&#65315;&#65359;&#65357;

  • Able to su from root to ldap accounts but account passwords come back as incorrect otherwise?

    Hi,
    I've installed DSEE 11.1.1.7.2 and I set up a few test ldap clients, Solaris 10, Solaris 11, and Oracle Linux. From root on any of these boxes I can su to the ldap accounts but if I try to ssh or su - from one test account to another I get a incorrect password.
    I also have a test Sun 7.0 Directory Server running and using the same Solaris 10 client I can do a ldapinit to it and authenticate fine with the test accounts. I'm using the same scripts to create accounts and passwords on both versions. I looked through the default password policies between the two and don't see any differences and I'm not getting anything showing up in the logs. Has anyone seen this type of issue before?
    Thanks

    Hello,
    This post http://serverfault.com/questions/576265/solaris-pam-ldap-authentication-using-sshd-kbdint-and-failing might be useful.
    -Sylvain
    Please mark the response as helpful or correct when appropriate to make it easier for others to find it

  • Redirecting from an abstract portal component

    Hi,
    I'm trying to redirect from an abstract portal component to a quicklink. I do it like told in this thread:
    Redirecting to external website from abstract portal component?
    private void redirectUrl(String target, IPortalComponentRequest request) {
      try {
        HttpServletResponse resp = request.getServletResponse(true);
        resp.sendRedirect("../../../../portal/" + target);
      } catch (IOException e) {}
    It works, but the content of my target-URL is still in the Portal-Frame. So I've two time the Portal-Framework-Navigation. Something like this:
    | Welcome         |
    | Welcome         |
    | content         |
    |                 |
    |                 |
    |                 |
    My goal is to redirect the whole page, not only the frame.
    Thanks for any help...
    Regards, Markus

    Perhaps I can do it with
      public void doOnNodeReady(IPortalComponentRequest request){
        request.redirect("http://www.google.de");
    But like in this Tread, it didn't work AbstractPortalComponent and doOnNodeReady

  • SolMan 7.1 SPS 11 - deactivate redirect from HTTP to HTTPS

    Hi Gurus,
    I am currently experiencing the case, that I can't call HTTP pages anymore.
    Before I made the check described under SOLMAN_SETUP -> System Preparation -> 2. Check Installation -> Manual Activities -> Check Secure Web Browser Comm. (HTTPS) I was able to call SOLMAN_SETUP with HTTP and SSO worked (starting the Browser by calling transaction SOLMAN_SETUP in GUI).
    After I have executed the check, I have changed nothing but to execute the check and make sure there is a working HTTPS service.
    Now I am experiencing the case that if I start transaction SOLMAN_SETUP I get a browser call HTTPS. If I change the protocol and the port to HTTP it jumps directly to HTTPS. This behavior makes me think that some configurations steps have activated a force redirect from HTTP to HTTPS.
    This specially gives me some headache because all other (satellite)-systems are not configured to use secured communication and the certificates are not rolled out.
    Currently I can't afford the need to roll out certificates all over the landscape.
    To buy me some more time:
    How can I check if my feeling about the redirect is correct?
    If there is a redirect, how can I disable this so that I can work with HTTP-URLs?
    I appreciate your help.
    Kind regards,
    Niklas Theis

    Hi Niklas,
    Perhaps this note can give You a little hint how to reverse to the HTTP setting again:
    1716999 - Enable HTTPS for Solution Manager web service communications
    Also check and adjust if necessary the setting for the webservice  “wd_sise_main_app”: Change the setting to “Switch to HTTP”.
    In addtion to that You also might look into:
    - the ACL file; if any block against HTTP has been setup
    Regards,
    Kurt

  • Redirect from Constructor

    Hi,
    I am facing a problem in JSR-168 JSF protlet while redirecting from the Page Bean constructor. I am using the following code:
    getFacesContext().getApplication().getNavigationHandler().handleNavigation(getFacesContext(), null, "case2");The same code works fine when used in the click event of the button.... but I want to do it on load the page.
    The scenario is: I want to show my own login page when the portlet is loaded, so on load I check a value of a flag from session if it is 0 then go to login page otherwise open the same page.
    Any idea how to solve this issue?

    i try to handle with it in that way
    FacesContext context = FacesContext.getCurrentInstance();
    UIViewRoot view = UIViewRoot)context.getApplication().getViewHandler().createView( context, "/exception.jsf");
    context.setViewRoot(view);
    context.renderResponse();but it's still not working correct. i go to this page by <t:commandNavigation2 value="Manage" action="managePersons"/>. page even this is displayed. when i click comand nawigation again page is redirecting. when i refresh page from browser redirect not working.
    the same was doing with
    FacesContext facesContext = FacesContext.getCurrentInstance();
    facesContext.getExternalContext().redirect("databaseexception.jsf");
    facesContext.responseComplete();any idea? thanks form help.

Maybe you are looking for

  • Some problem

    hi to every one ,in fact i got problem with my mobileme  in my machine ,i cant sing in system preference mobileme,even i can sing in in mobileme webside ,please i need help

  • Retrieve Httpsessions that exist in a managed server in a cluster

    Hi, How can we retrieve available httpsessions that exist in all managed servers defined in a cluster? Thanks Gehan

  • Using iMovie to view AVCHD files. Is this this only way?

    Video clips taken from my JVC camera are in AVCHD fromat. I find it difficult and limited using iMovie to view, sort and send clips. I don't want to use iFrame as ther is a significant loss of quality even though iFrame is a much more manageable form

  • ESS Family Members

    Hi I got a problem in ESS Family members / dependents where the Header of the Subtype does not appear in the view. It is a funny situation where we find the 3rd record always gets this problem. I raised a OSS with SAP they are still looking at our sy

  • IPhone 6 plus ram full

    I recently bought an iPhone 6 Plus and the RAM always seams to be full. This is still try with a restarted phone without any running apps. Say I just restarted my phone, open the reddit-app and browse around. I find a picture I like and open the page