Using forward(request, response) in Java Servlet

Hi
I need help on how to use the forward() method in a java servlet passing a List object and riderecting to another jsp.
when I use the following code;
request.getRequestDispatcher(path).forward(request, response);
I'm getting this message:
Content modified /content...
Status
200
Message
OK
Location
/content...
Parent Location
/content
Path
/content...
Referer
Thanks,

Looking at your traces seems like you are forwarding during POST. Seems like issue with your component implementation missing with POST & proxy scripts. Please eloborate more on the exact steps you are following. Alternatively See if this helps.
org.apache.sling.api.wrappers.SlingHttpServletRequestWrapper req =
new org.apache.sling.api.wrappers.SlingHttpServletRequestWrapper(slingRequest) {
public String getMethod() {
return "GET";
String path = "/content/.../test.html";
javax.servlet.RequestDispatcher dispatcher = slingRequest.getRequestDispatcher(path);
dispatcher.include(req, slingResponse);

Similar Messages

  • Servlets and forward(request, response)

    I have a Servlet that is forwarding the request and response objects to one of two JSP's based upon a parameter in the request object. When opening a browser session and entering my servlet with the first parameter (opCorp=MBSUB) the /criteriaRM.jsp is displayed correctly. However, while still in the same browser session when re-entering the servlet with the parameter changed to opCorp=NEW the second JSP /criteriaPL.jsp is never called correctly - ie the page does not load. However, entering the application with a new browser session works fine (opCorp=NEW loads /criteriaPL.jsp in a brand new browser session) - so I know the second JSP is good and the forward syntax OK. Is there something I am missing? I am using the following code in my servlet
                   if (request.getParameter("opCorp").compareTo("MBSUB")==0) {
                        getServletConfig().getServletContext().getRequestDispatcher("/criteriaRM.jsp").forward(request, response);
                   } else {
                        getServletConfig().getServletContext().getRequestDispatcher("/criteriaPL.jsp").forward(request, response);                    
    Any ideas would be much appreciated. Thanks!!

    Ok, your jsp isn't loded but what else does happen then ? Any exception thrown ? Page not found message ?...

  • Does DNS server cache forwarded request responses?

    Hi,
    Please excuse my ignorance.  I am new to OSX Server and DNS.  I setup OSX Server on my Mountain Lion system and configured the DNS server.  It forwards requests which it cannot resolve to my service provider's DNS.
    I am wondering if the responses to those forwarded requests are cached by the OSX Server so that the next time a request comes through they can be handled locally?
    If they are, is there a way I can see what the DNS server has cached?
    Thanks.

    There are caches all over.
    OS X client caches DNS responses.
    See the command-line dscacheutil tool for poking around with that. 
    OS X Server DNS server also caches responses. 
    The BIND9 rndc tool is used for poking around in the ISC BIND9 DNS server, as is included with OS X Server.
    sudo rndc -p 54 dumpdb -all
    TCP port 54 is the management port used by default in the OS X Server version I've checked, where other installations of BIND9 will use TCP port 953 for that.  To confirm the port, go have a look at the named.conf file for the "control" declaration.  That file is usually either in /etc/named.conf, or it can be stored in /library/server/named in some OS X Server versions.  Once the rndc command completes, go look in the directory where named.conf resides for the file named named_dump.db.  That's a text file with the dump.
    If you want to learn the innards of DNS as implemented by recent ISC BIND servers, acquire a copy of Cricket Liu's DNS and BIND book.  The 5th edition was current, when last I checked.
    Barring cases where the upstream provider offers DNS-based filtering or such, forwarding requests is usually an extra hop in the DNS translations that — unless you're hitting the same domains as other folks on your server — might not pay off.  If the translation isn't in the ISP's DNS caches, then the usual series of queries of other root and authoritative DNS servers will ensue; you've added a hop. 
    If you do want to use a gonzo-scale DNS server as a forwarding server — I'd expect higher-scale and larger caches and likely also higher-availability than what most any other ISP is likely running — then Google DNS servers are available at 8.8.8.8 and 8.8.4.4.
    Or just eliminate the forwarding servers.

  • Help!!!!!using multiple submit form in java servlet

    I am trying to build a application where i have 2 submit buttons. This is what i want to do. This code is in html
    <html>
    <head>
    <script language="JavaScript">
    function altSubmit() {
    document.MyForm.action = "Second.html";
    </script>
    </head>
    <body>
    <form name="MyForm" method="post" action="First.html">
    <input type="submit" value="Default Submit">
    <input type="submit" value="Alternative Submit" onclick="altSubmit()">
    </form>
    </body>
    </html>
    I want to do the same in java servlet, but if i click on any of the buttons it goes to first.html, Can anyone help me. I think i am doing wrong with the javascript code. Can anyone show me how to do this. Please

    out.println("<html>");
    out.println("<head>");
    out.println("<script language=\"JavaScript\">");
    out.println("function altSubmit() {");
    out.println("document.MyForm.action = \"Second.html\";");
    out.println("document.MyForm.submit();");
    out.println("}");
    out.println("</script>");
    out.println("</head>");
    out.println("<body>");
    My personal suggestion is to use follow the MVC (Model View Control) pattern where in you can write all your "html" part in a JSP.
    Model -> Bean
    View -> JSP
    Control -> Servlet

  • Can an ESB used as Request - Response service system

    We have a requirement where a ESB should reply back.
    Eg: If a value of given field is
    A: route message SvcA to and return it reply to invoker
    B: route message SvcB to and return it reply to invoker
    Both these can be achived but other requirement is
    If the value is neither A nor B then
    Transform request to response schema and return to the invoker.

    This is exactly where you should use the esb for
    route and filter the data.
    so if understood you correctly, you should just add the routing rules to the routingservice, and depending on the content (so use a filter in the routing rule) you could either route and transform to either one of the svcdA/B

  • BAM - using with Request Response Send Port

    Hi,
    I have a scenario where a message is received on a receive port, sent to a solicit-response send port, and then the response is sent out on another send port.  All ports have failed message routing enabled, so that any errors are sent out to an exceptions
    send port.
    I am interested to hear options on how you would set up a BAM tracking profile for this in the TPE to log the time received, time sent on the two way send port, time response returned and then finally the time the last send was carried out?  Would you
    use a single Activity/View and continuations, Multiple Activities or Views and multiple tracking profiles etc?  How would you include the time that an error was sent to the exception port.....
    I have a solution, but I am not sure it is ideal and I would be interested in how others would tackle this.  If you know BAM, feel free to offer an opinion :)
    Thanks
    Stu.
    Stuart Brierley - BizTalk Integration Specialist - http://geekswithblogs.net/StuartBrierley/Default.aspx

    Hi Stuart,
    You can start up your activity from Orchestration .No need to have a continuation from Pipeline as you can use xml receive . 
    You solution is simple were you are receiving your message from location and hitting a solicit-response
    port .
    Just have a Expression shape to start up  with your activity and on the points when you want to update
    the activity.
    Code is listed below
    //Create a Activity ID
    string activityId = Guid.NewGuid().ToString() ;
    //Start the activity with your Activity Name
    Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.BeginActivity(“SampleActivity”, activityID);
    // Updates the activity record.
    Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.UpdateActivity(“SampleActivity”, activityID, “ReceiveLocation”, Rcvmsg(BTS.Receivelocation), "TRANSACTION_CREATED", DateTime.UtcNow);
    // End the activity record.
    Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.EndActivity(“SampleActivity”, activityID);
    If you want to work with same activity in continuation with Other Orchestration (Generic Exception Handler may be ),then create a continuation token with a Property schema and from parent Orchestration assign value to it.
    continuationToken = "_Continuation" + msg_Internal.ContinuationID;
    Hope this will clear your ideas as you dont require to start up tracking from Pipeline .
    Thanks
    Abhishek

  • How To Use A .dll Object in Java Servlet/JSP

    I need the Solution, Is there any API's Available to do so.
    Ofcourse The .dll is a Microsoft Visual Basic Product.

    You need to use JNI to wrap C/C++ function provided by the .dll library. and then call it from JNI implementation class.
    [email protected]
    http://www.sinotar.com/

  • How to read the Image Data using HTTp Request response

    i want to read image data from server please send me any code or answers.
    and also i want to exit application using button control for iphone simulator.
    thanks in advance.

    You would do a URLRequest and download the image. You could save it to disk and then load it or directly create a new image with the binary data.

  • I want to send a response from the servlet and then call another servlet.

    Hi,
    I want to send a response from the servlet and then call another servlet. can this happen. Here is my scenario.
    1. Capture all the information from a form including an Email address and submit it to a servlet.
    2. Now send a message to the browser that the request will be processed and mailed.
    3. Now execute the request and give a mail to the mentioned Email.
    Can this be done in any way even by calling another servlet from within a servlet or any other way.
    Can any one Please help me out.
    Thanks,
    Ramesh

    Maybe that will help you (This is registration sample):
    1.You have Registration.html;
    2.You have Registration servlet;
    3.You have CheckUser servlet;
    4.And last you have Dispatcher between all.
    See the code:
    Registration.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
      <HEAD>
        <TITLE>Hello registration</TITLE>
      </HEAD>
      <BODY>
      <H1>Entry</H1>
    <FORM ACTION="helloservlet" METHOD="POST">
    <LEFT>
    User: <INPUT TYPE="TEXT" NAME="login" SIZE=10><BR>
    Password: <INPUT TYPE="PASSWORD" NAME="password" SIZE=10><BR>
    <P>
    <TABLE CELLSPACING=1>
    <TR>
    <TH><SMALL>
    <INPUT TYPE="SUBMIT" NAME="logon" VALUE="Entry">
    </SMALL>
    <TH><SMALL>
    <INPUT TYPE="SUBMIT" NAME="registration" VALUE="Registration">
    </SMALL>
    </TABLE>
    </LEFT>
    </FORM>
    <BR>
      </BODY>
    </HTML>
    Dispatcher.java
    package mybeans;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletException;
    import java.io.IOException;
    import javax.servlet.RequestDispatcher;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Dispatcher extends HttpServlet {
        protected void forward(String address, HttpServletRequest request,
                               HttpServletResponse response)
                               throws ServletException, IOException {
                                   RequestDispatcher dispatcher = getServletContext().
                                   getRequestDispatcher(address);
                                   dispatcher.forward(request, response);
    Registration.java
    package mybeans;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Registration extends Dispatcher {
        public String getServletInfo() {
            return "Registration servlet";
        public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            ServletContext ctx = getServletContext();
            if(request.getParameter("logon") != null) {          
                this.forward("/CheckUser", request, response);
            else if (request.getParameter("registration") != null)  {         
                this.forward("/registration.html", request, response);
    CheckUser.java
    package mybeans;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class CheckUser extends Dispatcher {
        Connection conn;
        Statement stat;
        ResultSet rs;
          String cur_UserName;
        public static String cur_UserSurname;;
        String cur_UserOtchestvo;
        public String getServletInfo() {
            return "Registration servlet";
        public void service(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            try{
                ServletContext ctx = getServletContext();
                Class.forName("oracle.jdbc.driver.OracleDriver");
                conn = DriverManager.getConnection("jdbc:oracle:oci:@eugenz","SYSTEM", "manager");
                stat = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
               String queryDB = "SELECT ID, Login, Password FROM TLogon WHERE Login = ? AND Password = ?";
                PreparedStatement ps = conn.prepareStatement(queryDB); 
               User user = new User();
            user.setLogin(request.getParameter("login"));
            String cur_Login = user.getLogin();
            ps.setString(1, cur_Login);
            user.setPassword(request.getParameter("password"));
            String cur_Password = user.getPassword();
            ps.setString(2, cur_Password);
         Password = admin");
            rs = ps.executeQuery();
                 String sn = "Zatoka";
            String n = "Eugen";
            String queryPeople = "SELECT ID, Surname FROM People WHERE ID = ?";
           PreparedStatement psPeople = conn.prepareStatement(queryPeople);
                      if(rs.next()) {
                int logonID = rs.getInt("ID");
                psPeople.setInt(1, logonID);
                rs = psPeople.executeQuery();
                rs.next();
                       user.setSurname(rs.getString("Surname"));
              FROM TLogon, People WHERE TLogon.ID = People.ID";
                       ctx.setAttribute("user", user);
                this.forward("/successLogin.jsp", request, response);
            this.forward("/registration.html", request, response);
            catch(Exception exception) {
    }CheckUser.java maybe incorrect, but it's not serious, because see the principe (conception).
    Main is Dispatcher.java. This class is dispatcher between all servlets.

  • Forwarding requests on to non-java pages from servlet.

    I have designed a web application using a form of single controller pattern.
    I have a number of JSPs.
    Each of these JSP's has a form element which if submitted got to a single servlet (Controller)which then forwards on the request to a different class based on the paramter passed. For example this form would call the SubmitFeedback class.
    <form name="feedbackform" method="post" action="<%=request.getContextPath()%>/controller">
    <input type="hidden" name="action" value="SubmitFeedback"/>
    <input type="hidden" name="page"   value="feedback.jsp">
    <tr><td><input type="submit" name="go" value="Go"/></td></tr>
    </table>
    </form>After the class has done its processing it returns what page to go next to the Controller class and this forwards the request on. to the next jsp
    String nextPage = createAction(request.getParameter(PARAM_ACTION)).handleRequest(this,request, response, request.getParameter(PARAM_PAGE));          
    request.getRequestDispatcher(nextPage).forward(request, response);
    return;This is all fine but now I have a sitation where after the user submits the form I want do some processing then forward them onto another page which is not part of my system, nor java. But the RequestDispatcher is only for the current Context within a Servlet Container.
    Could someone explain how I do this, what am Im missing please.

    i am not a JavaScript expert, so I can't be sure this is everything, but:
    1) The javascript has to be put inside a <script></script> block (you also had an extra close bracket):
    <script type="text/javascript">
      <!--
      function validateAccept() {
        toReturn=true;
        if (form.accept.checked==false) {
          alert("You must select at least one checkbox to search");
          toReturn=false;
        return toReturn;
      //-->
    </script>The script block is usually put in the head section also, but that is not necessary.
    2) I would call this function from the onsubit event of the form rather than the onclick of the submit button
    <form  name="form" action="..." method="post" onsubmit="return validateAccept();">
      //...3) You will need to identify the form that you want to use inside the function. Just using the name form won't work, it has to be retrieved from a certain context. The easiest thing is to pass it in as a parameter:
    <script type="text/javascript">
      <!--
      function validateAccept(form) {
    <form  name="form" action="..." method="post" onsubmit="return validateAccept(this);">

  • Trouble forwarding request from a servlet to a JSP in OAS 4.0.8.1 on NT

    The OJSP release notes state that:
    "Servlets and JSP cannot coexist as the same application" and "Requests cannot be passed between two separate applications."
    Does this mean that my attempts to use the
    the servlet RequestDispatcher to forward a request to a JSP are futile? If so, is this a problem that will be fixed in the future? I would like to use this feature!
    This is the code (based on a sample from Sun's JSWDK 1.0.1) that doesn't work:
    servletToJsp.java
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class servletToJsp extends HttpServlet {
    public void doGet (HttpServletRequest request,
    HttpServletResponse response) {
    try {
    getServletConfig().getServletContext().getRequestDispatcher("/jsp/jsptoserv/hello.jsp").forward(request, response);
    } catch (Exception ex) {
    ex.printStackTrace ();
    I am able to use the <jsp:forward page="/servlets/servletToJsp" /> directive to go from a JSP page to a servlet (across two OAS Applications) and I also can forward a request via the dispatcher from one servlet to another in the same OAS application.
    Any help in this area would be appreciated. Thanks.

    I'm using OAS 4.0.8.1
    You mean servlet to JSP does not work and JSP to servlet works for you????Yes - but I've only tried very simply examples.
    That's different from my understanding. If you are using OAS 4081, both cases should not work.
    The problem you mentioned will be fixed in future release of OAS.That's good to know - thanks!
    null

  • Forward Request giving java.lang.IllegalStateException

    Hi Friends,
    I am using RequestDispatcher to forwrd my request from one servlet to another
    Here's the code
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class TryServlet extends HttpServlet
    public void service(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url="jdbc:odbc:con";
    Connection con= DriverManager.getConnection(url,"scott","tiger");     
    Statement stmt=con.createStatement();
    ResultSet rst=stmt.executeQuery("select * from Projects");
    response.setContentType("text/html");
    PrintWriter out=response.getWriter();
    while (rst.next())
    String firstname=rst.getString("PIN");
    String lastname=rst.getString("ProjectTitle");
    out.println("<p> Name:"+firstname+" "+lastname+"");     
    con.close();
    RequestDispatcher rd=getServletContext().getNamedDispatcher("HelloServlet");
    rd.forward(request,response);
    return;
    catch(Exception e)
    e.printStackTrace();
    I m getting the error
    java.lang.IllegalStateException: Cannot forward after response has been committed
    i need to include the two rows of tables before i forwad the request to HelloServlet
    What needs to be done?
    thanx
    Pooja

    Don't spread the generation of output over several servlets. Your first servlet should retrieve the data and your second servlet should display the data.
    Store the data retrieved as a request attribute before forwarding:
    // Data.java
    public class Data  {
      public String _firstname;
      public String _lastname;
      public data(String firstname, String lastname)  {
        _firstname = firstname;
        _lastname = lastname;
        return;
    //  TryServlet.java
    public class TryServlet extends HttpServlet
      List list = new ArrayList();
      while (rst.next())  {  //  store data in list
        String firstname=rst.getString("PIN");
        String lastname=rst.getString("ProjectTitle");
        Data data = new data(firstname, lastname);
        list.add(data);
      con.close();
      request.setAttribute("list", list);  //  store list in request
      RequestDispatcher rd=getServletContext().getNamedDispatcher("HelloServlet");
      rd.forward(request,response);  // list is forwarded as well
      return;
    }In HelloServlet, you get the request's attribute and display the data:
      List list = (List)request.getAttribute("list");  //  retrieve list from request
      Iterator it = list.iterator();
      while (it.hasNext())  {  //  retrieve data from list and display
        Data data = (Data)it.next();
        out.println("<p>Name: " + data._firstname + " " + data._lastname + "</p>");
      }Btw, for displaying the data, a JSP will do better.
    Two Bears.

  • How can I forward a request from to another servlet?

    If I would like to forward a request from a servlet to another one, but they are not located in the same machine.
    Could I use the following code to do it?
    getServletConfig().getServletContext().getRequestDispatcher("XXXXX").forward(request, response);

    You can not do a forward to a servlet on a different server. You can do a redirect and put any parameters you want to pass in the url. If you are using JSP you may bve able to use the JSTL include tag, again passing the parameters in the URL. You could use the URLConnection or HttpURLConnection class to open a connection to the servlet, make a request, get the response and the return the response to the client.

  • Servlet forward request

    In 5.6 do you know how I can forward a request within a servlet that contains query string parameters.
    This does not work:
    RequestDispatcher rd = request.getRequestDispatcher("/content/geometrixx/en?message=Test");
    rd.forward(request, response);

    See discussion here: http://sling.markmail.org/thread/6b3e3sxe2c6plkcj

  • Jsp org.apache.jasper.JasperException: Cannot forward after response has be

    what does this mean?
    org.apache.jasper.JasperException: Cannot forward after response has been committed
    I can't find an explanation of the error in general on the web? I am using dispatcher.,forward?
    <%@ page import="java.io.*" %>
    <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.text.*" %>
    <%@ page import="javax.xml.parsers.DocumentBuilderFactory" %>
    <%@ page import="javax.xml.parsers.*" %>
    <%@ page import="org.w3c.dom.Document" %>
    <%@ page import="org.w3c.dom.DOMException" %>
    <%@ page import="org.w3c.dom.Element" %>
    <%@ page language="java" import=".*" %>
    <jsp:useBean id="manageAddressBook" scope="session" class=".ManageAddressBook" />
    <%! .AddressBook ab; %>
    <%! //String addJSP = "http://localhost:8080/examples/jsp//display.jsp"; %>
    <%! String addJSP = "Add.jsp"; %>
    <%! String displayJSP = "display.jsp"; %>
    <%! boolean noPrev = false; %>
    <% String displayPage = "display.jsp";
       String addPage     = "Add.jsp";
       String loginPage   = "login.jsp";
    Enumeration enum = request.getParameterNames();
    AddressBook ab;
    String lastPageVar = request.getParameter("lastPageVar");
    String button = (String)request.getParameter("submit");
    if (lastPageVar == null)
       lastPageVar = "";
    //Figure out what the dispatcher needs to do
    String actionVar = request.getParameter("actionVar");
      if (actionVar == null)
         actionVar = "";
    //check login status
    Object loginObj = session.getAttribute("isLoggedIn");
    boolean isLoggedIn;
    if (loginObj != null)
       isLoggedIn = ((Boolean) loginObj).booleanValue();
    else
       isLoggedIn = false;
    if (lastPageVar.equals("")){
       session.setAttribute ("fromDispatcher", new Boolean(true));
       session.setAttribute("firstCall", new Boolean(false));
       callWebPage(request,response,session,loginPage);
    else
       session.setAttribute("firstCall", new Boolean(false));
    //if (!(isLoggedIn))
    //  callWebPage(request,response,session,loginPage);
    if (lastPageVar.equals("LOGIN_PAGE")){
       String username = (String)request.getParameter("username");
       String password = (String)request.getParameter("password");
       isLoggedIn = checkLogin(username,password);
       Boolean isLoggedInObj = new Boolean(isLoggedIn);
       session.setAttribute ("isLoggedIn", isLoggedInObj);
       if (isLoggedIn)
         callWebPage(request,response,session,displayPage);
       else
         callWebPage(request,response,session,loginPage);
    if (lastPageVar.equals("DISPLAY_PAGE")){
      if (button.equals("logout"))
        callWebPage(request,response,session,loginPage);
      if (button.equals("next") || button.equals("previous"))
        callWebPage(request,response,session,displayPage);
      else
        callWebPage(request,response,session,addPage);
    if (lastPageVar.equals("ADD_PAGE")){
      if (button.equals("logout"))
         callWebPage(request,response,session,loginPage);
      //if save or cancel, then just save or cancel and return to display screen.
      if (button.equals("save")){
        manageAddressBook.edit(request);
        callWebPage(request,response,session,displayPage);
      if (button.equals("Add"))
        callWebPage(request,response,session,displayPage);
      else
        ab = (AddressBook)session.getAttribute("currAddressBook");
      if (button.equals("Delete")) {
        ab = (AddressBook)session.getAttribute("currAddressBook");
        manageAddressBook.setDelete(ab);
        callWebPage(request,response,session,displayPage);
      if (button.equals("cancel"))
        callWebPage(request,response,session,displayPage);
    %>
    <%-- JSP FUNCTIONS  --%>
    <%!
    public boolean checkLogin(String username, String password) {
       if (username.equals("mypage") && password.equals("guesswho"))
         return true;
       else
         return false;
    void callWebPage( HttpServletRequest request,HttpServletResponse response,HttpSession session,String webPage)
        throws ServletException, IOException {
      //verifies from dispather
      session.setAttribute ("fromDispatcher", new Boolean(true));
      RequestDispatcher dispatch = request.getRequestDispatcher( webPage );
      dispatch.forward(request,response);
    %>

    Its like this.. after you dispatch the request by the method call [callWeb...], the dispatcher would dispatch the request to that page and after the page is dispatched and response has been sent, the execution continues on this JSP, ie from the line after the call to the [callWeb..] function.. All you need to do to avoid this exception is,
    a) put a return; statement after the call to the function.
    Or
    b) structure your code in such a way that after the call to the [callWeb..] function, the execution would not continue;
    I would prefer the first condition though along with structuring the code in such a way that you need not have that many calls to the function. Instead have a String dest variable, which would change and make a call in the end
    Cheers
    -P

Maybe you are looking for

  • Changing row content in displayed table & saving it in database table back

    hi!   I am just Learning BSP applications.....i got struck with a problem....    i am using cl_htmlb_tableview class for selecting a row...and that line is made editable.... i want to change the data of that line and then modify the entry in the data

  • During import ora-01917 user or role does not exist "High Priority"

    Hi, When i import the data the following error occured. imp system/[email protected] fromuser=dmv_ace_ruh touser=dmv_ace_ruh file=F:\dmvaceruh.dmp log=F:\dmvaceruhimp.log ignore=y fromuser=dmv_ace_ruh (exported by another database i.e database name is

  • BEx 3.5 - Query Execution Filter F4 Help

    Hi, Working in BEx Analyser 3.5, I'm facing a problem. When the user right-clicks one of the free characteristics and tries to select the filter values, the window that opens up doesn't show any of the the characteristic values. It says "No Entries F

  • [Solved] css setting font family, ff3 vs ie7

    In my css, I've set 'font-family: sans;' in body { }, and in ff3 on my Arch laptop, it displays correctlly. In ie7 on my wifes vista laptop, it still reverts back to w/e serif font it uses if it can't find one set by the web page. I have no idea why

  • Make start screen tiles open new window by default?

    let me preface this by saying "I like the windows 8 start screen and I don't miss the start menu." but. the default behavior for start screen tiles seems to be "take me to the open instance of this application." if I click the notepad tile to open no