SendRedirect anf forward method

hi
In which situtation we will use sendRedirect() and forward()...
pls explain

Doing a sendRedirect() means doing a round trip to the client and losing the state of the request Object. Doing a foward is more efficient since it doesn't involve a round trip to the client, and doing a forward maintains the state of the request Object. But you can only forward to certain resources (that are running on the same host, and usually in the same context due to security)

Similar Messages

  • Problem with forward method of jsp

    am having problem with the requestDispatcher.forward method in my jsp + wml , the forward method gets executed but the new page is not displayed in the wap browser,
    code snippet
    small.jsp
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
    <%@ page language="java" %>
    <%@ page contentType="text/vnd.wap.wml; charset=UTF-8" %>
    <%@ page import="java.lang.*,java.io.*,java.util.*,java.util.Vector,java.util.Properties "%>
    <%
    System.out.println("in small");
    RequestDispatcher rd = request.getRequestDispatcher("small1.jsp");
    rd.forward(request,response);
    %>
    small1.jsp
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
    <%@ page language="java" autoFlush="false"%>
    <%@ page contentType="text/vnd.wap.wml; charset=UTF-8" %>
    <%@ page import="java.net.*,java.lang.*,java.io.*,java.util.*,java.util.Vector,java.util .Properties"%>
    <%
    String sm = "small1";
    System.out.println("in small1");
    %>
    <wml>
    <card id="two">
    <p>
    <small><%=sm%></small>
    </p>
    </card>
    </wml>
    i get the following output in the log
    in small
    in small1
    but i dont get to see the small1.jsp' content , also the response.sendRedirect method works fine ,,
    pls give me the soln
    Thnk u in advance

    thank u very for the repl this is the message which i get in the nokia wap browser...
    cannot load small1.jsp(HTTP Error 500 Server Error)
    and i use IBM WebSphere as the web server....
    and i have found that using response.reset in the small2.jsp overcomes this problem but the card title and the anchor tag is not displayed !!!!
    what could be this problem?

  • How to use RequestDispatcher.forward method  in a portlet

    I have a servlet (HelloServlet2) that acts as the controller. This is a very simplified example. This servlet calls the dispatcher.foward(req, res) method to foward to a JSP page for displaying. At this point I get a FileNotFoundException. The HelloServlet2 is in the standard location WEB-INF/classes/com/a2i/industrial/servlet/HelloServlet2.java.
    How come it's looking in Industrial/servlet/HelloServlet2 instead of Industrial/WEB-INF/classes/..? If I access the servlet by http://host:port/Industrial/HelloServlet2, it works fine. I have another portlet (servlet) that doesn't call the forward method and it works fine too. Thanks for your help.
    Here is the web.xml:
    <servlet>
    <servlet-name>HelloServlet2</servlet-name>
    <display-name>HelloServlet2</display-name>
    <servlet-class>com.a2i.industrial.servlet.HelloServlet2</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloServlet2</servlet-name>
    <url-pattern>/HelloServlet2/*</url-pattern>
    </servlet-mapping>
    Here is the calling code from HelloServlet2:
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    RequestDispatcher dispatcher= getServletContext().getRequestDispatcher("/hello.jsp");
    dispatcher.forward(req, res);
    Here is the portlet definition:
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>2</id>
    <name>HelloServlet2</name>
    <title>Hello Servlet2</title>
    <shortTitle>Hello Servlet2</shortTitle>
    <description>This is the "hello world" sample implemented using Java Servlets and the extensible renderer architecture.</description>
    <timeout>10000</timeout>
    <timeoutMessage>Hello Servlet timed out</timeoutMessage>
    <acceptContentType>text/html</acceptContentType>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <contentType>text/html</contentType>
    <autoRedirect>true</autoRedirect>
    <showPage>/servlet/HelloServlet2</showPage>
    </renderer>
    </portlet>
    Here is the stack trace:
    7/15/03 10:43 AM industrial: JspServlet: unable to dispatch to requested page: java.io.FileNotFoundException: C:\ora9iasp\j2ee\OC4J_Portal\applications\_industrial\industrial\servlet\HelloServlet2 (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:64)
         at oracle.jsp.provider.JspFilesystemResource.fromStream(JspFilesystemResource.java:153)
         at oracle.jsp.provider.JspFilesystemResource.fromReader(JspFilesystemResource.java:169)
         at oracle.jsp.runtimev2.JspPageCompiler.fromReader(JspPageCompiler.java:345)
         at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:250)
         at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:171)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:338)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:481)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
         at com.a2i.industrial.servlet.HelloServlet2.doGet(HelloServlet2.java:21)
         at com.a2i.industrial.servlet.HelloServlet2.doPost(HelloServlet2.java:14)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:108)
         at oracle.portal.provider.v2.render.http.ResourceRenderer.renderBody(Unknown Source)
         at oracle.portal.provider.v2.render.RenderManager.render(Unknown Source)
         at oracle.portal.provider.v2.DefaultPortletInstance.render(Unknown Source)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showPortlet(Unknown Source)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    7/15/03 10:43 AM industrial: ERROR: ResourceRenderer.renderBody - Resource "/servlet/HelloServlet2" returned HTTP Status: 404. Error message: OracleJSP:
    java.io.FileNotFoundException: C:\ora9iasp\j2ee\OC4J_Portal\applications\_industrial\industrial\servlet\HelloServlet2 (The system cannot find the path specified). Content returned follows....

    Thanks for you help David. I changed my code from getServletContext().getRequestDispatcher(jspPage).forward(req, res) to getServletContext().getNamedDispatcher(jspPage).forward(req, res). It worked but I run into the same problem with jsp:include.
    I am using the July 2003 of the PDK. I followed the direction for installing version 2 but I did not redeploy with the new jpdk.ear since one was already deployed. After redeploying with the new jpdk.ear, it fixed the jsp:include problem I was having. The problem with using getServletContext().getRequestDispatcher(jspPage).forward(req, res) STILL exist. I am not sure what the deal is.
    Oh, I also tried the code below and it doesn't work.
    path = req.getContextPath() + jspPage
    getServletContext().getRequestDispatcher(path).forward(req, res)
    In any case, using getNamedDispatcher() is working fine. I am still curious about getRequestDispatcher() though.

  • How to verify Nexus 3548P forwarding method?

    Greeting!
    Is there a way , or a command to verify the forwarding method of Nexus3548P?
    Thanks in advance.

    What do you mean mean by "forwarding method"?  Could you give some examples?

  • PowerShell-EWS How to use .Forward Method of EmailMessage Class

    Hello, 
    im new to PowerShell and EWS and would like to know how to forward an E-Mail with the .Forward Method of the EmailMessage Class.
    Is it possible to also forward an Email with an FileAttachment?
    I already have access to the Messages i want to forward but i cant figure out how to .Forward these Messages.
    Thank you for your help
    Greetings 
    Ingo

    >> Is it possible to also forward an Email with an FileAttachment?
    Yes doing a normal forward is EWS should maintain the attachment on the message eg the following would forward the last email in the Mailbox
    $folderid= new-object Microsoft.Exchange.WebServices.Data.FolderId([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox,$MailboxName)
    $Inbox = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($service,$folderid)
    $ivItemView = New-Object Microsoft.Exchange.WebServices.Data.ItemView(1)
    $fiItems = $null
    $fiItems = $service.FindItems($Inbox.Id,$ivItemView)
    $messageBodyPrefix = "This is message that was forwarded by using the EWS Managed API";
    $addresses = New-Object Microsoft.Exchange.WebServices.Data.EmailAddress[] 1
    $addresses[0] = "[email protected]";
    $fiItems.Items[0].Forward($messageBodyPrefix, $addresses);
    If your looking to forward the actual message as an attachment you can use something like
    http://gsexdev.blogspot.com.au/2013/07/forwarding-message-as-attachment-using.html
    Cheers
    Glen

  • L2 and L3 Forwarding Method in the Same WAE

          Hi Everyone,
          Is possible to use simultaneously L2 and L3 Forwarding Method (WCCPv2) in the same WAE.
          I wanna to design a cluster with 2 WAE using the same service group in a DC and I wanna support both the L2 and L3
          Forwarding Method at the same time..
          If yes, is there any link when I can get a documentation showing some example configuration
         Thanks in Advanced,
         My Best Regards,
             Andre Lomonaco

    Hi Andrej,
             If I understand this correctly, then your best option is to use G-GRE (Generic GRE) as egress method, and use GRE redirection and MASK assignment. See an Example below.
    wccp router-list 1 172.16.10.1
    wccp tcp-promiscuous service-pair 61 62 router-list-num 1 mask-assign
    wccp version 2
    egress-method generic-gre intercept-method wccp
    For more details, please follow below CCO URL.
    http://www.cisco.com/en/US/docs/app_ntwk_services/waas/waas/v441/configuration/guide/traffic.html#wp1041742
    Ahsan

  • Trouble with forward() method in a Servlet

    I am new to Servlets and am having trouble with one that queries a database and forwards the data to a JSP. A portion of the code is below (The <i> are really , but are being displayed wrong).
                   for(int i = 0; i < numberOfRows; i++)
                        data2[0] = rs.getString("REIMBUR_DATE");
                        data2[i][1] = occupancyPCT;
                        data2[i][2] = rs.getString("RMBR_RATE_REVENUE");
                        data2[i][3] = rs.getString("RMBR_ROOM_TAX");
                        data2[i][4] = "reimbur total";
                        data2[i][5] = rs.getString("BOOK_RATE_REVENUE");
                        data2[i][6] = rs.getString("BOOK_ROOM_TAX");
                        data2[i][7] = "rebate";
                        data2[i][8] = "tax rebate";
                        rs.next();
                   request.setAttribute("CERT_INFO", data);
                   request.setAttribute("OTHER_INFO", data2);
                   request.setAttribute("NUMBER_ROWS", new Integer(numberOfRows));
                   ServletContext context = getServletContext();
                   RequestDispatcher dispatcher = context.getRequestDispatcher("/certdetails.jsp");
                   dispatcher.forward(request, response);
              catch(Exception ee)
                   PrintWriter out = null;
                   response.setContentType("text/html");
                   out = response.getWriter();
                   out.println("<html>");
                   out.println("<body>");
                   out.println("Exception !!<br>");
                   out.println(ee.getMessage());
                   out.println("</body>");
                   out.println("</html>");
    When I include the line with the forward() method, I get an exception and the message is "1998-08-20", the contents of data2[numberOfRows - 1][0]. I don't know why an exception is being generated or how it is getting this database value as its message. What's going on?

    Nevermind, I found the problem. There was an error in my JSP. I don't know how it affected the Servlet as it did, but...who cares!!

  • [URGENT] WCCPv2 + L2 rewrite packet forwarding method.

    Hi All!
    I have few doubts and questions for you people on WCCPv2
    1. Wont routers support L2 rewrite packet forwarding feature?
    2. Is it true that all switches only support L2 rewrite and not GRE? (switch 3550 as an e.g.)
    3. While configuring WCCP, Normally on router side we dont select the mode forwarding method, we only specify this option on cache engines to negotiate the required mode of forwarding( l2-rewrite option on cache engine as an e.g.)
    4. routers 2811 and 3640 routers supports GRE mode of packet forwarding by default, is there a way out to make it do a L2 redirect. Note: i will deploy 2811/3640 not as a cache engine but as a WCCP router redirector.
    5. Let me explain my problem here. I have a 2811 and 3640 router configured(separately) for WCCP. i intend to use L2 rewrite packet forwarding method of WCCPv2 spec, but these routers looks like they only support GRE method. Can anyone suggest a way to enable L2 rewrite feature by either adding some addon hardware or by issuing some commands.
    -Ananth

    L2 redirection takes place on the switch, and is not visible to the Multilayer Switch Feature Card (MSFC). The WCCP L2 PFC redirection feature requires no configuration on the MSFC.

  • Generic forwarding methods with recursive bounds.

    Hello all,
    I'm attempting to create a forwarding class assoicated with an interface. The interface has a generic method with recursive bounds. The problem relates to ambiguous method calls as the following code segment should demonstrate:
    interface TestInterface
        //generic method with recursive bounds. (use of Comparable<T> is
        // not relevant, any generic class/interface could have been used.)
        <T extends Comparable<T>> T testMethod(T bob);
    //Concrete implementation of the TestInterface.
    class TestClass implements TestInterface
        public <T extends Comparable<T>> T testMethod(T bob)
           return bob;
        public static void main(String[] args)
            TestInterface bob = new TestClass();
            bob.testMethod("blah"); //Works fine.
    class ForwardingClass implements TestInterface
        //Forwarding class composed of a TestClass object. All methods forward calls to this object.
        private final TestClass test;
        public ForwardingClass(TestClass test)
            this.test = test;
        //forwarding method.
        public <T extends Comparable<T>> T testMethod(T bob)
            return test.testMethod(bob);   //Ambiguous testMethod call. Both testMethod (T) in TestClass
                                           //and testMethod (T) in TestInterface match. Very annoying...
        }Therefore, if you could assist with the following issues, it would be greatly appreciated.
    Firstly, I don't think I fully understand why this error is given, so any explanation would be greatly appreciated.
    Secondly, is there any way to get around the problem?
    Thanks in advance,
    Matt.

    My bad. This appears to be an issue with Intellij 8.0M1. I'll create post on the Intellij forums. It compiles absolutely fine from the command line, and using Intellij 7.04. (Probably should have checked that before my initial post...)
    Apologies for wasting your time. Cheers for the replies.
    Matt.

  • Response.sendRedirect() from doEndTag() method

    Hi there,
    I am trying to call response.sendRedirect("url") in a custom tag doEndTag() method but for or some reason I cannot get access to the javax.servlet.http.HttpServletResponse object where this method lives. Does anyone know how I can do a response.redirect from a doEndTag() method? I've searched the forum and it appears other people can do it but I'm not sure how?
    I can get access to javax.servlet.ServletResponse object by using pageContext.getResponse() but that doesn't give me the response.sendRedirect method. Can anyone help? What am I doing wrong?
    Thanks for your help.
    Cheers,
    Brent.

    you can pass the response object as argument to your
    method..Thanks for your response!
    Unfortunately I can't change the doEndTag() method parameters as doEndTag() is defined in the Tag interface. But if you mean pass the response object as an attribute of the tag i suppse that is possible.
    However, that's pretty close to the hack I currently have to work around this problem except I'm putting the response object in a request attribute in the page and then retrieving it in the doEndTag() method.
    But I am after something a little cleaner than either of these options..... I'm hoping I can just get the response object from another object I have access to. Any more thoughts?

  • URL after sendRedirect and forward

    Hi,
              As I know, after execute response.sendRedirect("URL"),the URL in the
              browser will be changed.But in this case , it is still the original one.My
              server is NT4.0,Weblogic server 5.1 sp6,ie5
              step1:
              test.jsp
              <% response.sendRedirect("in1.jsp"); %>
              <jsp:forward page="in2.jsp" />
              the result URL is http://localhost:7001/MyApp/in1.jsp (Correct)
              step2: then change test.jsp to
              <jsp:forward page="in2.jsp" />
              <% response.sendRedirect("in1.jsp"); %>
              the result URL is http://localhost:7001/MyApp/test.jsp (Correct)
              step3: change test.jsp same as step1
              <% response.sendRedirect("in1.jsp"); %>
              <jsp:forward page="in2.jsp" />
              the result URL is http://localhost:7001/MyApp/test.jsp (incorrect)
              but the title of this page is http://localhost:7001/MyApp/in1.jsp - ...
              So, what's the matter with this one , is this a bug?
              Thank you for your attention.
              

    As to which one is best, there are situations where both are useful.
    A redirect has the disadvantage that it loses all request parameters/attributes (because it creates a new request)
    The advantage to it is that if the user refreshes the screen (using F5, or pushing refresh button) it only refreshes the page that was redirected to.
    If you do an internal forward,
    You might find this article of use: http://www.theserverside.com/patterns/thread.tss?thread_id=20936

  • JSP page and the pageContext.forward() method

    I am running JSP pages on a coldfusion site so that a CF page (i.e. login.cfm) hosts my login.jsp page. I want to reload the JSP page without having to reload the cfm page each time. pageContext.forward() does do this, however, it only forwards on to a new page. I want to be able to reload a page with the new URL parameters (e.g. when there is an error, login.jsp will reload and give the user an error). What is a method to reload the page with the proper URL variables?
    The following code does not work:
    pageContext.forward("login.jsp?operation=user_edit&jsessionid=" + f_URLEncode(session.getId()));
    Because it runs from the login.jsp page (the forward command only goes to a new page)

    Just to clarify...
    I log into your site. The first page shown is the CF page. The CF page automatically redirects me to the JSP page. Then what, exactly?
    Does the login page automatically determine my URL, attempt to validate it, and if it doesn't work, it reloads the page?
    The reason I ask is because there is a difference between the resulting HTML page and the JSP class file that generates that HTML page. Generally speaking, most web servers, particularly Tomcat, do not recompile the JSP class file, they just simply pass the parameters to the existing class file, and a new HTML page is generated.
    So technically speaking, every time you visit the login.jsp page, you will get a brand new HTML page. The contents of that page are the same because you presumably pass the same parameters to the class which hasn't changed. But in other words, no, you can't forward to an "old" page that was previously generated by the class - each time the web server calls that class, it creates a "new" page.
    Or are you saying that every time you attempt to forward to the login.jsp page, the system erronously calls the CF page instead?

  • About forward method

    Hi,
    I observed that include() method in jsp includes the output generated by the calling and called resource also.But forward metho discards the output generated by the calling resource.Why this is done?

    Because forward() has nothing to do with "including"
    content? That seems to be it. Whan a sevlet has an include() statement in the code, the servlet is saying, "I've grown weary of dealing with this response. I need some help. Could you please stop in at this other jsp or servlet and add its output to the response. Then come back here so I can finish up."
    When a servlet has a forward() statement in the code, the servlet is saying, "My God! I can't deal with the pressure! Please send the response object on to this other jsp or servlet and let them decide how to respond to the client browser. I want nothing to do with it!"
    See here:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Servlets9.html

  • Forward method

    hi friends,
    this is part of my frist jsp --
    System.out.println("prevPageUrl@@@@@@@@@@@@@@@@@2222"+prevPageUrl); %>
         <jsp:forward page="../errorPages/subscriptionbounce.jsp">
              <jsp:param name="docassembid" value="<%= contentViewerHelper.getDocassembid() %>" />
              <jsp:param name="previouspage" value="<%=prevPageUrl%>"/>
              <jsp:param name="message" value="User <%= userProfile.getUserId() %> is traying to access to publication <%= contentViewerHelper.getPublication() %>"/>
         </jsp:forward>
    i am getting "prevPageUrl" value as null. After forwarding this "subscriptionbounce.jsp" , i tried to get parameter "prevPageUrl" using request.getParameter("previouspage") method. the value i got is not null. instead its a empty string . i got this valuse using s.o.p(request.getParameter(previouspage). any suggestions here.
    Message was edited by:
    bobz
    Message was edited by:
    bobz
    Message was edited by:
    bobz
    Message was edited by:
    bobz

    this is my second jsp .
    <%@ taglib uri="breadcrumbs_copyright.tld" prefix="bc" %>
    <%@ page import="com.wolterskluwer.atlas.crn.CRNSearcherConst" %>
    <%@ page import="com.wolterskluwer.eip.crn.PortalHelper" %>
    <%
    String previousPageUrl = request.getParameter("previouspage");
    String pre= request.getParameter("previouspag");
           System.out.println("previousPageUrl@@@@@@@@@@@@@@@@@@"+previousPageUrl);
           System.out.println("pre@@@@@@@@@@@@@@@@@@"+pre);
           int i = previousPageUrl.length();
           System.out.println(i);
    if (previousPageUrl == null ) {
            out.println("previousPageUrl@@@@@@@@@@@@@@@@@@"+previousPageUrl);
         previousPageUrl = request.getHeader("Referer");
         out.println("Referer@@@@@@@@@@@@@@@@@@@@@@@@@@@"+previousPageUrl);
         if (previousPageUrl == null) {
              previousPageUrl = CRNSearcherConst.JSPFILES.PROTECTED_PREFIX_URL + CRNSearcherConst.JSPFILES.HOME_PAGE; // redirect to the home page
    if (!previousPageUrl.startsWith("javascript:"))
         previousPageUrl = PortalHelper.getPortalRootURL(session) + previousPageUrl;
    String docassembid = request.getParameter("docassembid");
    // TODO: implement more sophisticated handling of docassembid equals null
    if (docassembid == null)
         docassembid = "not_specified";
    %>
    <bc:getBreadcrumbs id="publication" format="html" docassembid="<%= docassembid %>" />
    <div id="module-error">
         <div id="subscriptionbounce">
         <h2 class="subscriptionbounce_header">Thank you for your interest in:</h2>
         <div id="subscriptionbounce_mainarea"><%= publication %></div>
         <div class="subscriptionbounce_context">
              You currently do not have access to this product because it is not part of your current subscription.
         </div>
         <div class="subscriptionbounce_context">
              To learn more about this product and about adding it to your subscription, please contact Customer Support at 800-449-6435.
         </div>
         <div class="subscriptionbounce_context">
              <a href="<%=previousPageUrl%>" >Return to the previous page </a>
         </div>
         </div>
    </div>

  • Amavisd.conf forward method

    greetings
    i am using amavis to forward to an internal relay.
    $forward_method = 'smtp:10.10.10.1'
    I have recently setup 2 new smtp relays running SSL only port 465
    i have setup round robin DNS names
    can i use a this config ?
    $forward_method = 'smtp:smtp.example.com:465'
    or do I have to use an IP address ?

    okay,.. solved problem. ( well work around )
    posting this for the good of the community.
    to keep the ssl available for clients and accept relay from my amavis host I had to create another port on the smtp relays to accept incoming mail without ssl.
    on amavisd host:
    amavis.conf
    $forward_method = 'smtp:smtp.example.com:2525';
    smtp1
    master.cf
    # ==========================================================================
    # service type private unpriv chroot wakeup maxproc command + args
    # (yes) (yes) (yes) (never) (100)
    # ==========================================================================
    smtp inet n - n - - smtpd
    2525 inet n - n - - smtpd
    -o mynetworks=10.10.1.6
    -o smtpdclient_restrictions=permitmynetworks,reject
    -o smtpdenforcetls=no
    -o smtpdsasl_authenable=no
    smtp2
    master.cf
    # ==========================================================================
    # service type private unpriv chroot wakeup maxproc command + args
    # (yes) (yes) (yes) (never) (100)
    # ==========================================================================
    smtp inet n - n - - smtpd
    2525 inet n - n - - smtpd
    -o mynetworks=10.10.1.6
    -o smtpdclient_restrictions=permitmynetworks,reject
    -o smtpdenforcetls=no
    -o smtpdsasl_authenable=no
    where 10.10.1.6 is the address of the amavisd host.
    then create a DNS record for SMTP1 & SMTP2
    work great

Maybe you are looking for