Redirection servlet

I've been given the task of writing a servlet to redirect users to a different URL. The only problem I have is that I've never written a servlet before and have no clue how to proceed!
If anyone could post the general format a servlet is supposed to follow, I'd be eternally (eternally until 5pm) grateful! Thanks

Ok, I have the following code so far
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class Redirection extends HttpServlet
  //Initialize global variables
  public void init(ServletConfig config) throws ServletException
    super.init(config);
  //Process the HTTP Post request
  public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    response.setContentType("text/html");
    PrintWriter out = new PrintWriter (response.getOutputStream());
    out.println("<html>");
    out.println("<head><title>Redirection</title></head>");
    out.println("<body>");
    out.println("</body></html>");
    out.close();
    String url = "http://www.microsoft.com";  //These are the lines I added
    response.sendRedirect(url); //The rest was generated by JBuilder
  //Get Servlet information
  public String getServletInfo()
    return "Servlet.Redirection Information";
}The rest of the code and the main method is stored in a second file that was also pre-generated for me. I know there is a lot of garbage in there, especially with the printwriter, but is this what I need or am I missing something?

Similar Messages

  • Jsessionid before redirected servlet

    We are testing an API 2.1 application on J2EE Container developped on Servlet technology.
    We got almost all of the application working properly, except the servlets that get called with the following statement:
    String u = response.encodeRedirectURL("/servlet/Quasar_Menu");
    response.sendRedirect(u);
    We noticed that J2ee keeps putting in front of the called servlet nale the "jserssionid: XYy........" string used for keeping track of the session.
    We tested the same application with TomCat and this happens only after the first login but after that is not done any more.
    How can we set up J2EE AS to do not keep adding the "jsessionid" string in front of each redirected servlet name?
    Tks and rgs,
    M. Vigorelli

    I'm using MS IE 5.5 SP1 and I did check the cookies setting; they are both (per session and stored) enabled.
    The funny thing is that the same browser settings do work fine with the following Application Servers:
    -JSDK WebServer Version 2.1 from Sun (running on AIX 4.3.3)
    -Sun TomCat Version 3.1.1 from Sun (running on Win NT 4.0).
    I did try also (on the J2ee Container) some configuration on the orion-web.xml file with the <session-tracking .../> statement with no result.
    ANy additional idea on how can I found required settings for the App. Server or for the browser to get both working together ?
    Any idea on debug actions ? How can I debug what cookies info J2ee is not receiving back ?
    Tks in adv,
    Vigo

  • Redirecting servlet requests

    Hi All,
    I have a typical case to work on.
    From my servlet i have to redirect request to One ASP Page and one PHP on different servers.They should be followed one after other from a servlet,Where i will be appending some parameters as query string to the requests.
    The problem i have is i can use "sendRedirect method" with which i can't have a second call.
    if i am using "encodeRedirectUrl method" it is giving error,coz it is unable to understand the response from ASP page.
    I am unable to use "requestDispatcher" coz,it is expecting the URL to start with a "/" ,means the page in the same server.
    One exemption here is i dont need any response back from the directed requests whether from ASP page or PHP page i submitted.Once i submit they will take care on their respective flows.
    Still i have to continue with some more processing on the servlet after redirecting to ASP and PHP page.
    How can i make this possible.
    Guess some body can suggest a solution for me.
    TIA

    Here is a bare bones connection to a Servlet where urlStr is the address in the form:
    http://localhost:8080?param1=value1&param2=value2
    value1 and value2 can be run through the URLEncode class to format them correctly.
       HttpURLConnection urlConn =  null;
       try {
             URL url = new URL(urlStr);
             //Create the connection to the servlet url
             urlConn = (HttpURLConnection)url.openConnection();
             urlConn.setDoInput(true);
             urlConn.setDoOutput(true);
             urlConn.setUseCaches(false);
             urlConn.setRequestMethod("GET");
             urlConn.setRequestProperty("Accept-Language", "en");
             urlConn.setRequestProperty("content-type", "text/xml");
             urlConn.disconnect();
             } catch (Exception e) { }

  • JSP  redirect  servlets

    I'm new to jsp and servlets.I'm using jwsdp .
    my index.jsp will call a servlet and servlet will redirect to
    jsp.both jsp files are in the root
    (\jwsdp-1_0\webapps\ROOT)
    1) where should i save the servlet ??
    2) How do i call index.jsp action to servlert??
    is this correct?
    action="servlet\MyServlet";
    3) How do i come to my second jsp
    response.sendRedirect("/Mysecond.jsp");

    I don't use jwsdp so I can't help with the first question.
    If MyServlet is your servlet class name then 2 is correct. Normally you would declare your servlet and make a URL mapping in your web.xml file.
    eg:
    <web-app>
    <servlet>
    <servlet-name>ProcessOrdersServlet</servlet-name>
    <servlet-class>com.company.ProcessOrdersServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ProcessOrdersServlet</servlet-name>
    <url-pattern>/ProcessOrders</url-pattern>
    </servlet-mapping>
    </web-app>
    then in your jsp <form action="ProcessOrders">
    For question 3.
    If you have finished processing in your servlet and want to send the next display page to the browser use:
    request.getRequestDispatcher( "nextpage.jsp" ).forward( request, response );
    This will also preserve any parameters and attributes in the request object.

  • How can I redirect an image path outside a Web Application ?

    Hi,
    I think this is a quite simple question but I didn't find the precise answer on these forums.
    I've deployed a WLP test portal 8.1, whose URL is http://host:7001/portalApp/, and my images are located here http://host:7001/portalApp/images/
    In fact in my portal, a javascript located on another server references an URL which is http://host:7001/images/image.gif (I can't modify the script, but it takes the root /images/ path of the current server)
    On the Weblogic server I would like to redirect the path /images to my /portalApp/images in order to display correctly the image.
    I don't want to setup an Apache server just for this, and I believe there's an easier solution than to write a redirect servlet. I've red it is possible to modify the application.xml context-root but I don't know what to do precisely, I tried this :
    <module>
    <web>
    <web-uri>/images</web-uri>
    <context-root>/portalApp/images</context-root>
    </web>
    </module>
    but it doesn't work...
    Thanks for your help.
    BV

    Hi,
    I am facing the same problem and looks this could be a solution.
    I tried the approach but I get this error:
    java.net.SocketException: Socket Closed
    at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:177)
    at java.net.Socket.setTcpNoDelay(Socket.java:771)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:306)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:355)
    at weblogic.net.http.HttpClient.<init>(HttpClient.java:139)
    at weblogic.net.http.HttpClient.New(HttpClient.java:212)
    at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:14
    0)
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.
    java:319)
    at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLCon
    nection.java:28)
    at java.net.URL.openStream(URL.java:913)
    at weblogic.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityMan
    ager.java:836)
    at weblogic.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntity
    Manager.java:796)
    <06-Dec-2006 21:44:17 o'clock GMT> <Warning> <Deployer> <BEA-149004> <Failures w
    ere detected while initiating Deploy task for application appsdirimages_war.>
    Looks like I am missing some thing, say a servlet there.
    Could you please explain how you got the images working?
    Regards
    Ashish

  • How can we hide the URL with Webdispatcher after SSO redirect

    Repost in correct forum
    We have setup SSO with Kerberos and SPNEGO for NWBC and now we want to expose it to the internet via SAP Webdispatcher.
    NWBC is on a singelstack ABAP system on server1 and we have configured a standalone J2EE system on server 2 for isuing the saplogon ticket.
    This works fine with the redirect from icf NWBC -> Error Pages -> Logon Error -> Redirec to URL (Form Fields) http://server2:port/redirect/redirect.jsp
    on server2 we have a java application (redirect/redirect.jsp) witch has %response.sendRedirect("http://server1:port/nwbc")%
    Problem is that when the webdispatcher calls http://server1:port/nwbc the URL in the browser is hidden with MYDOMAIN.COM/nwbc but when the Logon-error (no saplogon ticket yet) is redirecting to  http://server2:port/redirect/redirect.jsp the browser is showing the actual URL http://server2:port/redirect/redirect.jsp and also when returning to NWBC the browser is showing http://server1:port/nwbc.
    And we don't wan't to expose hostnames (server1 and server2) to the internet.
    I got this answer:
    This question belongs to the SAP NetWeaver Application Server space, this space is for NWSSO topics only, the separately licensed product from SAP.
    Regarding your question you have to configure Web Dispatcher for both AS JAVA and AS ABAP and refer to Web Dispatcher URLs only. That includes ICF node configuration and the redirect servlet. The URL generation in AS ABAP needs to be configured so that URLs are generated to point to the Web Dispatcher. Use table HTTPURLLOC for that.
    But how do I set up webdispatcher for both ABAP http://server1:port/nwbc (this is working fine before SSO config.) and JAVA http://server2:port/redirect/redirect.jsp?
    This is my profile on webdispatcher:
    SAPSYSTEMNAME = SID
    SAPGLOBALHOST = LOCALHOST
    SAPSYSTEM = XX
    INSTANCE_NAME = INS
    DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTAMD64
    DIR_EXECUTABLE = $(DIR_CT_RUN)
    #SAP Cryptolib
    DIR_INSTANCE = D:\usr\sap\SID\INS
    ssl/ssl_lib = D:\usr\sap\SID\INS\sec\sapcrypto.dll
    ssf/ssfapi_lib = D:\usr\sap\SID\INS\sec\sapcrypto.dll
    sec/libsapsecu = D:\usr\sap\SID\INS\sec\sapcrypto.dll
    ssf/name = SAPSECULIB
    wdisp/ssl_encrypt = 0
    icm/HTTPS/verify_client=0
    wdisp/add_client_protocol_header = true
    wdisp/auto_refresh = 120
    wdisp/max_servers = 100
    ssl/server_pse = D:\usr\sap\SID\INS\sec\sid2SSL.pse
    rdisp/mshost = <ip for abap server1
    ms/http_port = <ms http port for abap server1
    # Configuration for large scenario
    icm/max_conn = 16384
    icm/max_sockets = 16384
    icm/req_queue_len = 6000
    icm/min_threads = 100
    icm/max_threads = 250
    mpi/total_size_MB = 500
    mpi/max_pipes = 21000
    # SAP Web Dispatcher Ports
    is/HTTP/default_root_hdl = abap
    icm/HTTP/j2ee_0 = PROT=HTTP,HOST=Server2,PORT=5xxxx
    icm/server_port_1 = PROT=HTTP,HOST=localhost,PORT=xxxxx
    icm/server_port_0 = PROT=HTTPS,HOST=mydomain,PORT=xxx
    icm/HTTP/mod_0 = d:\usr\sap\SID\SYS\profile\filter_rules.txt
    icm/HTTP/admin_0 = PREFIX=/sap/admin,DOCROOT=$(DIR_DATA)$(DIR_SEP)icmandir,AUTHFILE=$(icm/authfile),PORT=xxxxx,HOST=LOCALHOST
    and this is the filter_rules.txt
    # Rules
    if %{HTTP_HOST}  RegIMatch MYDOAMIN.COM*
    RegIRewriteUrl ^/$ /sap/bc/nwbc?sap-client=200
    if %{HTTP_HOST}  RegIMatch mydomain.com*
    RegIRewriteUrl ^/$ /sap/bc/nwbc?sap-client=200
    if %{HTTPS_HOST}  RegIMatch MYDOMAIN.COM*
    RegIRewriteUrl ^/$ /sap/bc/nwbc?sap-client=200
    if %{HTTPS_HOST}  RegIMatch mydomain.com*
    RegIRewriteUrl ^/$ /sap/bc/nwbc?sap-client=200
    I am new to this area

    You can use Web Dispatcher for multiple systems, in your case one AS ABAP and one AS JAVA. See the documentation, Implement one webdispatcher for multiple systems - Basis Corner - SCN Wiki and Name-based virtual hosts and one SAP Web Dispatcher to access multiple SAP systems.

  • Unable to set root/main/default servlet in Tomcat 5.5

    I'm on a shared hosting account with Tomcat 5.5 and cannot figure out why I can't set the default servlet. I want all incoming requests regardless of the relative path, to be handled by the Redirect servlet. There is only one servlet in the whole project.
    Some examples
    http://www.mydomain.com -> Redirect servlet (not working)
    http://www.mydomain.com/ -> Redirect servlet (not working)
    http://www.mydomain.com/a -> Redirect servlet
    http://www.mydomain.com/blaldjflajdd -> Redirect servlet
    With the below web.xml file, the last two above works just fine, but the first two gives a 403 error. What gives, I followed the Tomcat documentation to the teeth... It seems to work on my development server, but not on the shared hosting. Is this a setting anyone would block? Any help would be much appreciated.
    The full web.xml setting below:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
         <display-name>Redirect</display-name>
         <servlet>
              <display-name>Redirect</display-name>
              <servlet-name>Redirect</servlet-name>
              <servlet-class>com.somedomain.Redirect</servlet-class>
              <init-param>
                   <param-name>host</param-name>
                   <param-value>www.myotherdomain</param-value>
              </init-param>
              <init-param>
                   <param-name>redirect-type</param-name>
                   <param-value>301</param-value>
              </init-param>
         </servlet>
         <servlet-mapping>
              <servlet-name>Redirect</servlet-name>
              <url-pattern>/</url-pattern>
         </servlet-mapping>
    </web-app>I tried adding other mappings as well that didn't work, such as :
         <servlet-mapping>
              <servlet-name>Redirect</servlet-name>
              <url-pattern>/*</url-pattern>
         </servlet-mapping>What would happen if I try an empty url-pattern?
         <servlet-mapping>
              <servlet-name>Redirect</servlet-name>
              <url-pattern></url-pattern>
         </servlet-mapping>Any help would be much appreciated. I tried workarounds, by using an index.jsp file to supplement, but that isn't working quite right either. I prefer to have it setup properly though.... Please Help!!!

    tomcat does not compile servlets, only JSP's will be translated and compiled on the fly. You need to compile them yourself, possibly using ANT or an IDE like NetBeans or Eclipse to make it easier to deploy the changes.

  • Redirect won't work, or is it something else wrong?

    Java: html and servlet; not going to specified pages, don't know what's wrong
    using websphere ide, when i "run on server" it displays the html, but when I click
    on the submit button, "page cannot be displayed"
    I don't think my syntax is wrong.
    html code follows:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <meta name="GENERATOR" content="IBM WebSphere Studio" />
    <title>OIISWelcomePage.html</title>
    </head>
    <body>
    <form method="post" action="/MyWebApp/OIISWelcomeServlet">
    <h2 style="text-align: center">Manufacturing Company<br/>
    Inventory Query System</h2><hr />
    <h3>
    This application is used to query the inventory system. <br/>
    Please make your selection to update the manufacturing database.
    <br/><br/>
    <input type="radio" name="order" value="Query" checked="checked" /> Query<br/>
    <input type="radio" name="order" value="Add" /> Add<br/>
    <input type="radio" name="order" value="Change" /> Change<br/>
    <input type="radio" name="order" value="Delete" /> Delete<br/>
    <br/>
    <input type="submit" name="submit" value="Submit" /><br/>
    <br/>
    <input type="hidden" name="sw" value="" />
    </h3>
    </form></body></html>java servlet follows:
    package myservlets;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class OIISWelcomeServlet extends HttpServlet
         public void doGet(HttpServletRequest req, HttpServletResponse resp)
              throws ServletException, IOException
              if(req.getParameter("sw")==null)
                   resp.sendRedirect("http://localhost:9080/MyWebApp/OIISWelcomePage.html");
         public void doPost(HttpServletRequest req, HttpServletResponse resp)
              throws ServletException, IOException
              if(req.getParameter("order").equals("Query"))
                                  resp.sendRedirect("http://localhost:9080/MyWebApp/OIISQueryPage");
              else if(req.getParameter("order").equals("Add"))
                        resp.sendRedirect("http://localhost:9080/MyWebApp/OIISAddPage");
              else if(req.getParameter("order").equals("Change"))
                        resp.sendRedirect("http://localhost:9080/MyWebApp/OIISChangePage");
              else if(req.getParameter("order").equals("Delete"))
                        resp.sendRedirect("http://localhost:9080/MyWebApp/OIISDeletePage");
         public void init() throws ServletException
              super.init();
    }

    one time i made a redirect servlet, and blogged about it here:
    [http://forum.java.sun.com/thread.jspa?threadID=5286820&tstart=0|http://forum.java.sun.com/thread.jspa?threadID=5286820&tstart=0]
    i suggest you start with my servlet, and add shit to it until you get what you need.

  • Http redirects not changing url in address bar

    I'm going crazy trying to fix a major bug in our application. Http
    redirects are not changing the url in the address bar of the latest versions of internet explorer. But this only happens if the redirected page is an xml page with an xslt reference for the browser to do the transformation. Mozilla seems to work fine, but I seem to have encountered a major bug in Internet Explorer. If anybody can help or at least point me in a direction I'd be SO grateful. This doesn't seem to be a java servlet specific issue, but that's what we're using so I thought I'd ask the question here too.
    We have an MVC type framework we developed. For example, if you were to add something to a shopping cart, the url might be:
    http://ecommerce.com/cart/add?sku=54321. In the add servlet, we would add the sku to your shopping cart and then redirect to, let's say,
    http://ecommerce.com/displaycart. I think this is how most MVC frameworks work. And it works great for us.
    The problem began when we started sending XML to the browser with an XSLT stylesheet. So now the browser does the transformations (if the browser is capable of doing them, which we check) instead of the server. This is a major part of our project. One of the reasons we started this.
    The problem is that Internet Explorer no longer updates the url in the
    address bar after a redirect. Mozilla works great though. We haven't
    tested on other xslt capable browsers yet. In the example above, what would happen is after adding something to your shopping cart, the "displaycart" page would be shown but the http://ecommerce.com/cart/add?sku=54321 url would be shown in the address bar. It wouldn't seem to be too big of a deal since everything works. But now all the relative links are messed up. They start from the "cart" directory. So we need absolute links. But that introduces many other problems. We then need to know the host and the parent directories (not as easy as it seems).
    So is there a solution? Is this a big bug that nobody has realized yet (or maybe they have, but my searches don't see it) in internet explorer? Is there a way for the redirected url to appear in the address bar from a browser-based xslt transformation in internet explorer? By the way, I'm testing with the latest version of IE6.0 as of July 7, 2003.
    When testing, redirects work perfect if I do the xslt transformation on the server side and just send plain html to internet explorer. And it works perfect with either serverside or browserside xslt transformations in mozilla.
    Scott Mueller
    AccelerateBiz Incorporated

    As I've been reading in the specs, microsoft, etc, it seems that it's not what's supposed to happen. But the specs are not very specific about this. However, internet explorer DOES always replace the url in the address bar with the redirected url if HTML is being returned from the redirected servlet. As is the case with all other browsers. So, at least, this behavior is the de-facto standard.
    BUT when the redirected to page is an xml page which references an xslt stylesheet.. then, ONLY in internet explorer, the original url is what's shown in the address bar (and, more importantly, what's used as the base url). Regardless of what the links look like or how they're manipulated in the transformed HTML that ends up being shown, I can't seem to make the url in the address bar the redirected url..

  • 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.

  • Servlet, Tomcat 3.3, IIS virtual directory access denied

    Hello people,
    I've set up Tomcat to run as a service with a domain log on usr/pswd. IIS works fine redirecting servlet requests to Tomcat via ISAPI redirector. All on Windows 2000 Server.
    The problem:
    The java application creates and reads files from a location which corresponds to an IIS virtual directory and is also a local directory with respect to the Tomcat and IIS installation. The application is denied access to this directory when submitting a network path (\\server/drive/directory/) where to store and read files, but is happy when a local path is given instead (E:/) Why? The domain user should have complete access to this. Is it Tomcat, IIS, or java restrictions?
    I appreciate any suggestion on this
    Thanks

    The problem would be with the logon that you have Tomcat running under. Writing to a file accessed by network share (\\server\share) is not a problem under Java as long as the logon has appropriate privileges. If you are writing to something of the form \\server\c$\directory, as it sounds like you might be, the logon may need administrator access to the box (in order to see \\server\c$).

  • Url rewriting/redirecting

    Hi everyone,
    I have a domain say: http://zoramhere.com
    If a user enters http://zoramhere.com/anything
    I want to redirect it to the index page say: http://zoramhere.com/index.jsp
    What should I do?
    Please suggest the steps I should follow to complete successfully.
    Please suggest..
    Thank you.

    Hello mkoryak,
    As you have said
    make a redirect servlet. i blogged about how to make one here:
    http://notetodogself.blogspot.com/2007/02/how-to-make-redirect-servlet.html
    The code given is:
    private void doRedirect(HttpServletRequest request, HttpServletResponse response) throws ServletException {
    String servletPath = request.getServletPath();
    //do something with the path
    String newServletPath = servletPath.toLowerCase();
    try {
    getServletContext().getRequestDispatcher(servletPath).forward(request, response);
    } catch(IOException ioE) {
    throw new ServletException("Unable to forward request: " + servletPath + " to path: " + newServletPath, ioE);
    But where should I make the necessary changes in the application so that this servlet is called everytime an user enters the urs as say:
    http://zoramhere.com/whateverhewants
    so that its redirected to the servlet so that I can do the required processing
    Thank you

  • Rediect particular URLs to index page

    Hi,
    From Apache1.3, I have to redirect all the URLs coming from port http://mydomain.com:9001/servlet/* to a index page (index.html).
    I tried giving "Redirect" directive under mod_alias
    Redirect /servlet http://mydomain.com:9001/index.html
    but it is looking for http://mydomain.com:9001/index.html/* and is not redirecting it to the file. How can I do this.

    Allie,
    Can you tell me how you figured out how to have one index page link to a 2nd index page like the california example you described?
    I am trying to do exactly that but layout is not happening the way I would like so i think I am doing something wrong
    Thanks
    Patrick

  • In Prod - Consume Fed Env Need SSO to Prod

    We are using BW / BI Netweaver 7.0 SP16 and have a federated environment.
    BI portal is the Producer. The user has no roles assigned here.
    EP portal is the consumer. This is the prime entry point for the user. The roles are mapped to the AD groups.
    We have SSO between the BW Abap and the BI Portal.
    We have SSO between the BW Abap and the EP Portal.
    We have SSO between the BI Portal and the EP Portal.
    We have SSO between the EP portal and Active Directory using Vintella so the users signed-on the network are logged in automatically to the portal when they hit the EP Portal url.
    Users that use InfoBroadcasting for thier queries get an email from BW abap , but the link in the email points to the BI Portal. When they click on the link they have to supply a user_id / pwd combination. Of course they don't know what it is!!
    An option would be for the user to click on the EP link (they are authenticated), then paste the url in the browser url. This works.
    However ... our users are not so sophisticated.
    What are my other options here?
    Mike

    Hi Mike,
    Very good, in that case you have a few options.
    By far the simplest is probably going to be putting Vintela (QSJ for NetWeaver) on that portal too.  Basically the exact same logon module configuration you have for the EP except you need a new service account with a SPN that matches this FQDN.
    Another option is to modify the configuration of the BI portal to only accept SSO2 cookies, and redirect to the EP/Vintela auth-and-redirect servlet for authentication and redirection back to the BI portal once a SSO2 cookie has been received.
    Thanks!
    Kyle

  • Java Deployment Toolkit and

    Hi,
    I use deployment toolkit (http://www.java.com/js/deployJava.txt ) in my project. When JVM is not installed it goes to Java download page, user downloads it, installs, and then my original page is refleshed. And now I have problems with this refreshing after installing Java:
    - urls containing # (eg. http://www.mypage.com/#/?someParamForJavascript=somevalue - typical in AJAX applications) are treated as just http://www.mypage.com
    - urls using https:// scheme (eg. https://www.mypage.com) are redirected to something like http://https//www.mypage.com
    My current workaround involves a redirecting servlet and some JavaScript code:
    deployJava.returnPage = "http://www.mypage.com/RedirectServlet".replace(":7002/", ":7001/") // for testing under WebLogic
                   + "?to=" + encodeURIComponent(window.location);
    But it's very ugly workaround. Is there a better one?
    For me it looks like a bug in the deployment toolkit. Where should I post such bugs, is there some bugzilla for deployment toolkit, or something like that?

    870985 wrote:
    ..I use deployment toolkit (http://www.java.com/js/deployJava.txt ) ...
    - urls using https:// scheme (eg. https://www.mypage.com) are redirected to something like http://https//www.mypage.com
    The script states.
    * For web pages provisioned using https, you may want to access the copy at:
    * https://java.com/js/deployJava.js.

Maybe you are looking for

  • Is it possible to independently manipulate a snapped handle of a corner anchor point?

    I stopped reading what's new since many versions and simply learn the new stuff when I need to or by discovery so, today I had to create various vector shapes and I got very annoyed that I can't pull a snapped handle of a corner point back and manipu

  • I cannot view some photos in iPhoto' 11

    I installed 10.7 successfully but some photos in my iPhoto library do not show.  Some events show blank and their contents show blank with a triangle containing "!".  I know the photos are there as they show up momentarily as I scroll the screen.  In

  • Upgraded to Snowleopard.....Safari Bit the Dust

    I just upgraded my iMac to Snowleopard. I did this using the Mac Box Set from the Apple Store so at the same time I also upgraded to iLive09 and added iWork to my system. I also got a wireless mouse. So all these changes occurred at once. Since I upg

  • Get latest date in table

    Hello to all Professionals, How do i get the latest date on the list listed below? TABLE: ACTIVITIES FIELDS USER_ID ACTIVITY CREATED_DATE 1 get paper 07.05.2009 08:57:24 1 get pencil 06.08.2008 05:06:22 2 get shoes 11.08.2008 03:23:44 2 get sandal 01

  • Selecting all the files in a directory

    How would i select all the files in a directory, write the info of the files into a new file, and after the end of each file, make a New Line?