*JSP*Calling method *Help*

Hello Every1,
I have an JSP page, wich at the top of the page I have a method (Declared Global <%!%>), and at the buttom of tha page I have a JSP form which takes the users data, but I donr know how to call it, can any1 help me plaese, my JSP method is
     public void insertIntoCustomers(String Name, String userid, String Address,
               String Email, String Password, String type) {
          Connection con = null;
          Statement stmt = null;
          ResultSet rs = null;
          try {
               con = getDatabaseCon();
               stmt = con.createStatement();
               String queryText = "insert into customers values ('" + Name+ "', '" + userid + "','" + Address + "','" + Email + "','"+ Password + "','" + type + "')";
               int i = stmt.executeUpdate(queryText);
          } catch (Exception ex) {
               ex.printStackTrace();
     }and My jsp form is:
<FORM METHOD="POST" ACTION="register">
               <H1>test</H1><p>
               Enter your name: <INPUT TYPE=TEXT NAME="name"> <BR>
               Enter your address: <INPUT TYPE=TEXT NAME="address"> <BR>
               Enter your email: <INPUT TYPE=TEXT NAME="email"> <BR>
               Enter your password: <INPUT TYPE=TEXT NAME="password"> <BR><p>
               <INPUT TYPE="SUBMIT" VALUE="Register">
</FORM>
my code:
if (request.getParameter("action").equals("register")
{//          String Name = request.getParameter("name");
          String Address = request.getParameter("address");
          String Email = request.getParameter("email");
          String Password = request.getParameter("password");
}But I dont know how to link them to the method????
Anyone can help me please,,,
Thank you

Hi,
This:
<html>
<head><title></title>
</head>
<body>
<FORM METHOD="POST" ACTION="register.jsp">
<H1>test</H1>
Enter your name: <INPUT TYPE=TEXT NAME="name"> <BR>
Enter your address: <INPUT TYPE=TEXT NAME="address"> <BR>
Enter your email: <INPUT TYPE=TEXT NAME="email"> <BR>
Enter your password: <INPUT TYPE=TEXT NAME="password"> <BR>
<INPUT TYPE="SUBMIT" VALUE="Register">
</FORM>
</body>
</html>should be on a page called something like: getUserInfo.htm. The action attribute of the form tag should specify your .jsp page:
<FORM METHOD="POST" ACTION="register.jsp">
When the user clicks on submit, the information entered on the form automatically will be sent to register.jsp. Your register.jsp page will look like this:
<%!
public void insertIntoCustomers(String Name, String userid, String Address,
          String Email, String Password, String type) {
          Connection con = null;
          Statement stmt = null;
          ResultSet rs = null;
          try {
               con = getDatabaseCon();
               stmt = con.createStatement();
               String queryText = "insert into customers values ('" + Name+ "', '" + userid + "','" + Address + "','" + Email + "','"+ Password + "','" + type + "')";
               int i = stmt.executeUpdate(queryText);
          } catch (Exception ex) {
               ex.printStackTrace();
if (request.getParameter("action").equals("register.jsp")
          String Name = request.getParameter("name");
          String Address = request.getParameter("address");
          String Email = request.getParameter("email");
          String Password = request.getParameter("password");
          /****/ insertIntoCustomers(Name, Address, Email, Password);
%>However, you have not defined Connection, Statement and ResultSet before using those names, so you are going to get errors.

Similar Messages

  • Help me to call method in the mouselistener

    hi all expert,
    I have a program having code structure as following:
    public class A {
    public void methodA {
    //do something
    MouseListener mltree = new MouseAdapter(){
    //Where is I want to call methodA ,
    //I don't do like this: this.methodA because "this" is refer to mltree
    Anyone can help me,
    thanks verry much for your help in advance
    }

    That's unnecessary code, when you could just do this:public class A
      public void methodA()
        //do something
       MouseListener mltree = new MouseAdapter(){
        //I don't do like this: this.methodA because "this" is refer to mltree
        A.this.methodA();};

  • Calling methods from inside a tag using jsp 2.0

    My searching has led me to believe that you cannot call methods from in the jsp 2.0 tags. Is this correct? Here is what I am trying to do.
    I have an object that keeps track of various ui information (i.e. tab order, whether or not to stripe the current row and stuff like that). I am trying out the new (to me) jsp tag libraries like so:
    jsp page:
    <jsp:useBean id="rowState" class="com.mypackage.beans.RowState" />
    <ivrow:string rowState="${rowState}" />my string tag:
    <%@ attribute type="com.mypackage.beans.RowState" name="rowState" required="true" %>
    <c:choose>
         <c:when test="${rowState.stripeToggle}">
              <tr class="ivstripe">
         </c:when>
         <c:otherwise>
              <tr>
         </c:otherwise>
    </c:choose>I can access the getter method jst fine. It tells me wether or not to have a white row or a gray row. Now I want to toggle the state of my object but I get the following errors when I try this ${rowState.toggle()}:
    org.apache.jasper.JasperException: /WEB-INF/tags/ivrow/string.tag(81,2) The function toggle must be used with a prefix when a default namespace is not specified
    Question 1:
    Searching on this I found some sites that seemed to say you can't call methods inside tag files...is this true?...how should I do this then? I tried pulling the object out of the pageContext like this:
    <%@ page import="com.xactsites.iv.beans.*" %>
    <%
    RowState rowState = (RowState)pageContext.getAttribute("rowState");
    %>I get the following error for this:
    Generated servlet error:
    RowState cannot be resolved to a type
    Question 2:
    How come java can't find RowState. I seem to recall in my searching reading that page directives aren't allowed in tag files...is this true? How do I import files then?
    I realized that these are probably newbie questions so please be kind, I am new to this and still learning. Any responses are welcome...including links to good resources for learning more.

    You are correct in that JSTL can only call getter/setter methods, and can call methods outside of those. In particular no methods with parameters.
    You could do a couple of things though some of them might be against the "rules"
    1 - Whenever you call isStripeToggle() you could "toggle" it as a side effect. Not really a "clean" solution, but if documented that you call it only once for each iteration would work quite nicely I think.
    2 - Write the "toggle" method following the getter/setter pattern so that you could invoke it from JSTL.
    ie public String getToggle(){
        toggle = !toggle;
        return "";
      }Again its a bit of a hack, but you wouldn't be reusing the isStriptToggle() method in this way
    The way I normally approach this is using a counter for the loop I am in.
    Mostly when you are iterating on a JSP page you are using a <c:forEach> tag or similar which has a varStatus attribute.
    <table>
    <c:forEach var="row" items="${listOfThings}" varStatus="status">
      <tr class="${status.index % 2 == 0 ? 'evenRow' : 'oddRow'}">
        <td>${status.index}></td>
        <td>${row.name}</td>
      </tr>
    </c:forEach>

  • Calling a jsp:useBean method in Javascript

    Hi,
    I want to call a jsp:useBean method in Javascript. Like:-
    <jsp:useBean id="StringEscapeUtils" class="org.apache.commons.lang.StringEscapeUtils" scope="application" />
    <script>
    var accountNumber = '<c:out value="${ACCOUNT_NUMBER}" />';
    var accountNumberWithSingleQuote = "<%=StringEscapeUtils.escapeJavascriptString('<%=accountNumber%>')%>"; // not working
    alert(accountNumberWithSingleQuote );
    </script>
    Here var accountNumberWithSingleQuote = "<%=StringEscapeUtils.escapeJavascriptString('<%=accountNumber%>')%>"; // not working
    Here how to add the parameter accountNumber in the escapeJavascriptString() method?
    Is it possible can we do it without scriptlet in JS? Pls. let me know your opinion.
    thanks.

    797836 wrote:
    Here var accountNumberWithSingleQuote = "<%=StringEscapeUtils.escapeJavascriptString('<%=accountNumber%>')%>"; // not working
    The above line will not work, because you are using scriptlet within a scriptlet.
    accountNumber is a javascript variable, so there is no way to use javascript variable in scriptlets.
    Here how to add the parameter accountNumber in the escapeJavascriptString() method?
    Is it possible can we do it without scriptlet in JS? Pls. let me know your opinion.
    You are assigning a value to accountNumber variable using springs variable, i.e ACCOUNT_NUMBER.
    So why don't you directly use the ACCOUNT_NUMBER variable which is a java scriptlet.
    Below is the url will guide you for the same:
    http://www.avajava.com/tutorials/lessons/how-do-i-access-a-jstl-variable-in-a-scriptlet.html

  • Help In Call Method Using types Tables.

    dear gurus
    im having a problem in my code please help me
    TYPES: BEGIN OF itab,
              vtext TYPE tvfkt-vtext,
              fkart TYPE vbrk-fkart,
              fkdat TYPE vbrk-fkdat,
              vbeln TYPE vbrk-vbeln,
              END OF itab.
    DATA:  itab1 TYPE itab OCCURS 0 WITH HEADER LINE.
      DATA:  itab2 TYPE itab OCCURS 0 WITH HEADER LINE.
    SELECT *
        INTO CORRESPONDING FIELDS OF TABLE itab1
        FROM vbrk
        INNER JOIN vbrp ON vbrp~vbeln = vbrk~vbeln
        WHERE vbrk~fkart IN fkart
        AND   vbrk~fkdat IN fkdat
        AND   vbrp~vstel IN vstel
        AND   vbrk~kunag IN kunag
        AND   vbrp~matnr IN matnr.
    LOOP AT itab1.
        SELECT SINGLE vtext FROM tvfkt
          INTO itab1-vtext WHERE fkart EQ itab1-fkart
          AND spras EQ 'EN'.
        IF itab1-fkart EQ 'F2'.
          CONCATENATE 'Tax' itab1-vtext INTO itab1-vtext SEPARATED BY space.
        ENDIF.
        SELECT SINGLE bstkd FROM vbkd INTO itab1-bstkd
          WHERE vbeln EQ itab1-aubel.
        SELECT SINGLE name1 FROM kna1 INTO itab1-name1 WHERE
          kunnr EQ itab1-kunag.
        MODIFY itab1.
        COLLECT itab1 INTO itab2.
        MOVE-CORRESPONDING itab1 TO itab2.
        CLEAR itab1.
      ENDLOOP.
    LOOP AT itab2.
        SELECT SINGLE kbetr FROM konv INTO itab2-kbetr
        WHERE kschl EQ 'PR00'
        AND   knumv EQ itab2-knumv.
        itab2-kwert = itab2-fklmg * itab2-kbetr.
        itab2-gst   = itab2-kwert * 21 / 100.
        itab2-sed   = itab2-kwert * 1 / 100.
        itab2-gt    = itab2-kwert + itab2-gst + itab2-sed.
        MODIFY itab2.
      ENDLOOP.
    CALL METHOD w_handle->insert_full
            EXPORTING
              n_vrt_keys        = 1
              n_hrz_keys        = 1
              n_att_cols        = 3
              sema              = t_sema[]
              hkey              = t_hkey[]
              vkey              = t_vkey[]
              online_text       = t_online[]
              data              = itab2   " "ITAB2" is not type-compatible with formal parameter "DATA". <- ERROR
            EXCEPTIONS
              dim_mismatch_data = 1
              dim_mismatch_sema = 2
              dim_mismatch_vkey = 3
              error_in_hkey     = 4
              error_in_sema     = 5
              inv_data_range    = 6
              error_in_vkey     = 7.

    Hi,
    In your case, please change itab2 into itab2[].
    Because you defined itab2 with header line, itab2 means header line in the method call.
    Cheers,

  • ABAP OOP / Calling Method  ...Help

    Trying out few oop codes....
    While calling class instance methods and passing parameters, when to use the following syntax.
    data: cvar  type ref to class1.
             cvar->method( exporting variable1 = value )
           (or) some time i see sample codes with out key  word 'exporting'
                  cvar->method(  variable1 = value  ) .
           (or)
                  cvar->method(  value  ) .
           (or) some times with key word CALL  METHOD
       CREATE OBJECT cvar
       CALL METHOD cvar->method
       EXPORTING
       variable1 = value. 
    Tried out a uniform way of calling ,but getting errors.Any inputs please..
    Thanks,
    Bvan

    Bhavan,
      First  declare the class.
      Implement the class.
    Declare the Class reference variable
    Create the class object.
    call the method.
      data: cvar type ref to class1.
              CREATE OBJECT cvar
    Calling Methods
    To call a method, use the following statement:
    CALL METHOD <meth> EXPORTING... <ii> =.<f i>...
                       IMPORTING... <ei> =.<g i>...
                       CHANGING ... <ci> =.<f i>...
                       RECEIVING         r = h
                       EXCEPTIONS... <ei> = rc i...
    The way in which you address the method <method> depends on the method itself and from where you are calling it. Within the implementation part of a class, you can call the methods of the same class directly using their name <meth>.
    CALL METHOD <meth>...
    Outside the class, the visibility of the method depends on whether you can call it at all. Visible instance methods can be called from outside the class using
    CALL METHOD <ref>-><meth>...
    where <ref> is a reference variable whose value points to an instance of the class. Visible instance methods can be called from outside the class using
    CALL METHOD <class>=><meth>...
    where <class> is the name of the relevant class.
    When you call a method, you must pass all non-optional input parameters using the EXPORTING or CHANGING addition in the CALL METHOD statement. You can (but do not have to) import the output parameters into your program using the IMPORTING or RECEIVING addition. Equally, you can (but do not have to) handle any exceptions triggered by the exceptions using the EXCEPTIONS addition. However, this is recommended.
    You pass and receive values to and from methods in the same way as with function modules, that is, with the syntax:
    ... <Formal parameter> = <Actual parameter>
    after the corresponding addition. The interface parameters (formal parameters) are always on the left-hand side of the equals sign. The actual parameters are always on the right. The equals sign is not an assignment operator in this context; it merely serves to assign program variables to the interface parameters of the method.
    If the interface of a method consists only of a single IMPORTING parameter, you can use the following shortened form of the method call:
    CALL METHOD <method>( f).
    The actual parameter <f> is passed to the input parameters of the method.
    If the interface of a method consists only of IMPORTING parameters, you can use the following shortened form of the method call:
    CALL METHOD <method>(....<ii> =.<f i>...).
    Each actual parameter <f i > is passed to the corresponding formal parameter <i i >.
    Pls. mark if useful

  • Calling method from SWF file wtih javascript, when swf file is not loaded in any browser

    Hi There,
    I have a question regarding flex and javascript integration:
    1. We have created certain components and bundle them in swf. these swf file uses webservice to connect to backend code written in java.
    2. We have deployed swf file and backend on the same tomcat server.
    3. Backend server send some datapoint to UI and plot graph and displyaed to user.
    4. Now if user generate graph from datapoint and want to export it, we are tranferring image of that graph from UI to backend. No issues in this process.
    5. Now the question is. let say user has not open any swf file in browser and backend scheduling job want to generate the graph. How we will connect to swf file.
    6. Is ther any way we can connect or call method of swf from java/jsp/html/javascript code in this scenario without loading swf file in browser??
    Please help me!!!
    Thanks
    Sonu Kumar

    Both test sites work just fine for me.
    The "Update plugin" message is exactly what would be displayed if no .swfobject file at all was found... so it may not be the "version11" thing but rather, perhaps something else is messed up with the .swfobject file.
    File can be found in both folders:
    http://www.pureimaginationcakes.com/test/Scripts/swfobject_modified.js
    http://www.pureimaginationcakes.com/Scripts/swfobject_modified.js
    and file does download when downloading the html page (just check the cache).... but for some reason it doesn't seem to be working.... Hummmmm????
    Adninjastrator

  • Uncaught TypeError: Cannot call method 'renderStoreProperty' of undefined

    Hi,
    I'm using CQ5.5 with SP2.
    I am going through the tutorial on how to create and register a new xtype.
    I have followed the steps, and am getting the following error when I try to view the page:
    Uncaught TypeError: Cannot call method 'renderStoreProperty' of undefined
    I have added the following:
    /apps/training/widgets ( jcr:primaryType(Name)=cq:ClientLibraryFolder, categories(String[])=training.widgets, dependencies(String[])=cq.widgets, sling:resourceType(String[])=widgets/clientlib )
    /apps/training/widgets/files (jcr:primaryType(Name)=nt:folder)
    /apps/training/widgets/files/training.js (content below)
    /apps/training/widgets/js.txt
    #base=files
    training.js
    training.js
    // Create the namespace
    Training = {};
    // Create a new class based on existing CompositeField
    Training.Selection = CQ.Ext.extend(CQ.form.CompositeField, {
        text: "default text",
        constructor : function(config){
            if (config.text != null) this.text = config.text;
            var defaults = {
                    height: "auto",
                    border: false,
                    style: "padding:0;margin-bottom:0;",
                    layoutConfig: {
                        labelSeparator: CQ.themes.Dialog.LABEL_SEPARATOR
                    defaults: {
                        msgTarget: CQ.themes.Dialog.MSG_TARGET
            CQ.Util.applyDefaults(config, defaults);
            Training.Selection.superclass.constructor.call(this, config);
            this.selectionForm = new CQ.Ext.form.TimeField({
                name: this.name,
                hideLabel: true,
                anchor: "100%",
                minValue: '8:00am',
                maxValue: '6:00pm',
                intDate: new Date(),
                validateValue: function(value) {return true}
            this.add(this.selectionForm);
        processRecord: function(record, path){
            this.selectionForm.setValue(record.get(this.getName()));
    CQ.Ext.reg("trainingSelection", Training.Selection);
    I have included headlibs.jsp for an extension of page as per the tutorial, contianing:
    <cq:includeClientLib js="training.widgets"/>
    When debugging the /etc/clientlibs/foundation/librarymanager/CQClientLibraryManager.js file, the path seems to be correct, pointing to:
    /apps/training/widgets.js
    unfortunately, when I try to hit
    http://localhost:4502/apps/training/widgets.js, I get a 404 No resource found error.
    This leads me to believe that I have something wrong with the /apps/training/widgets node, as it is not rendering the .js includes.
    Any help would be greatly appreciated.

    OK, found the problem.
    The clue was that it couldn't find the relevant js files.
    The tutorial tells us to add:
    <cq:inclueClientLib js="training.widgets" />
    Just above they have the line:
    <cq:inclueClientLib categories="cq.foundation-main"/>
    as we have set the property categories(String[])=training.widgets, if we change js to categories as such:
    <cq:inclueClientLib categories="training.widgets" />
    It fixes the issue.

  • *ERROR IN OLE CALL - METHOD CALL ERROR...*

    HI ..
    When trying to Upload a file using BDC with Vista OS, we are getting the following error..
    ERROR IN OLE CALL - METHOD CALL ERROR...
    There is no problem with BDC as its working fine with XP & other OS.
    Pls help!!

    Seems that you are working with microsoft files.
    Maybe you are using deprecated functions like WS_EXCEL

  • How to Call Methods in Ecatt?

    Hello Gurus,
    I dont find CALLMETHOD or CALLSTATIC commands in Ecatt. I am using R/3 4.7 version of SAP.
    My question also is how to call methods. I have a scenario where my test script execution depends on the return type of method. Say if the return type of method is A only then I should run the script else the script should not be executed.
    Your help in this regard is highly appreciated.
    Regards,
    GS.

    >
    Get Started wrote:
    > Hello Gurus,
    >
    > I dont find CALLMETHOD or CALLSTATIC commands in Ecatt. I am using R/3 4.7 version of SAP.
    >
    > My question also is how to call methods. I have a scenario where my test script execution depends on the return type of method. Say if the return type of method is A only then I should run the script else the script should not be executed.
    >
    > Your help in this regard is highly appreciated.
    >
    > Regards,
    > GS.
    Hi GS,
    Please use the command "CallMethod" and it is available with latest SAP version.
    You have to provide the Object Instance Parameter and Instance Method.
    Regards,
    SSN.

  • To call method in program

    Hi experts,
                 Method is already created, Now i have to call that method in one Dummy program. Please send me that program with logic. I am sending you class name and already created method.
    Class name:ZCl_configurable_item
    Method name:Is_sequence_Not_To_Print
    Please call this method in Dummy program, I needed this with the program logic.
    method IS_SEQUENCE_NOT_TO_PRINT .
    DATA : l_kunnr TYPE kunnr,
           l_kna1katr6 TYPE kna1-katr6,
           l_katr6 TYPE kna1-katr6,
           l_katr6_1 TYPE zkatr6_line.
    *DATA : l_katr6_1 TYPE STANDARD TABLE OF zkatr6_line. " OCCURS 0 WITH HEADER LINE.
    DATA : l_zliteral_tab TYPE ZLITERAL_TAB_TYPE,
           l_zliteral type zliteral.
    DATA : condtype_range_out TYPE Z_KATR6_TT.
    SELECT SINGLE kunnr FROM vbpa
                        INTO l_kunnr
                        WHERE vbeln = vbdkr_vbeln AND
                              ( parvw = 'RE' OR
                                parvw = 'BP' ).
    SELECT SINGLE katr6 FROM kna1
                        INTO l_kna1katr6
                        WHERE kunnr = l_kunnr.
      l_katr6 = l_kna1katr6+0(1).
    SELECT * FROM zliteral
             INTO table l_zliteral_tab
             WHERE zkey1 = c_zlit_genosys_key AND
                   zkey2 = c_katr6_1.
        loop at l_zliteral_tab into l_zliteral.
          clear l_katr6_1.
          l_katr6_1-sign = l_zliteral-zvalue1.
          l_katr6_1-option = l_zliteral-zvalue2.
          l_katr6_1-low = l_zliteral-zvalue3.
          append l_katr6_1 to condtype_range_out.
          Condense l_katr6_1-low.
          IF l_katr6 EQ l_katr6_1-low.
            IS_SEQUENCE_NOT_TO_PRINT = c_checked.
            EXIT.
          ELSE.
            IS_SEQUENCE_NOT_TO_PRINT = SPACE.
          ENDIF.
        endloop.
    Thanks & Regards

    Hi
    In the report program first u have to create an object with ref to class then call that method like
    report ztest.
    create object zt1 type ref to ZCl_configurable_item.
    CALL method zt1->Is_sequence_Not_To_Print importing....
        exporting....
    like this.
    See the help for create object in ABAPDOCU.
    mark points if helpful.
    Regs
    Manas Ranjan Panda

  • Java code to call methods in .ocx file

    dear friends,
    i have an .ocx file with me which is used to communicate with a specific device.it is an already existing one. i wish to know whether i can call method sin that .ocx file using java .using vb6 we can do this.
    if it is possible with java i wish to know how i can do this.please consider this query and please send me your responses. i know that using jni we can communicate with .dll files.but i am not sure about .ocx file. please help me.
    thank you
    arun

    i wish to know whether i can call method sin that .ocx file using java
    Probably
    db

  • CALL METHOD ABAP run SQL wrong

    Dear All
             I have a problem in ABAP connect SQL,Below is my code snippet sentence.
    CONCATENATE 'Insert Into [timportcortrol]'
                    '(zucode,zstate,zdate,zkind) Values('''
                      VG_PCID ''','''
                      '1'','''
                      SY-DATUM ''','''
                      '1' ''')'
                     INTO SQL.
        CALL METHOD OF REC 'Execute'
         EXPORTING #1 = SQL
         #2 = CON
         #3 = '1'.
    IF NOT SY-SUBRC = 0.
        MESSAGE I000 WITH 'Download  to [timportcortrol] failure,Please Check the SQL Connect!!! '.
        EXIT.
      ENDIF.
    Con:is the connect SQL String ,the connect SQL is Okay.
    I debug this code,when I used u2018Select u2026sentenceu2019,the program can work.if I  use u2018insert intou2019 then canu2019t work,but I copied the SQL of the u2018inset Into sentenceu2026u2019run it into SQL server then it can work also.
    And I found the SY-SUBRC eq u20182u2019.whatu2019s mean about of the sy-subrc eq u20182u2019.
    I think the insert into sentence in abap I have write the wrong ,but I canu2019t assurance.
    The Insert Into Sentence is:u2019 Insert Into [timportcortrol](zucode,zstate,zdate,zkind) Values('20080807094713','1','20080807','1')u2019
    Could you give me some advice for this issue?
    Thanks of all
    Sun.

    Have you checked whether it's a problem with mixed case?  Some SQL dialects are case sensitive.
    The not very helpful meanings of the sy-subrc value can be found in ABAP help.
    0 Successful processing of the method meth.
    1 Communication Error to SAP GUI.
    2 Error when calling method meth.
    3 Error when setting a property.
    4 Error when reading a property
    matt

  • Call method http_client - request - set_header_field

    Hi all,
    i am passing NAME & VALUE as two export parameter for the below method.
    here , what i should pass to VALUE parameter. is it a URL?
    what is the meaning of  '_/airport.asmx'_ in VALUE parameter.
    call method http_client ->request ->set_header_field
                    exporting
                         name = '~request_uri'
                         value  = '/airport.asmx'.
    Regards
    pabi

    POST
    Pages generated by an HTTP POST operation are always cached. The Web browser uses POST operations whenever an HTML FORM statement specifies METHOD="POST" .
    GET
    Pages generated by GET operations are never cached because the Internet Transaction Server (ITS) explicitly sets a no-cache option in the HTTP header when the page is sent to the Web browser. It does not matter what caching options are set in the Web browser. The Web browser uses GET operations for hypertext links and FRAMESET documents.
    check these links
    http://help.sap.com/saphelp_47x200/helpdata/en/ee/23df3a750f6a02e10000000a11405a/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/78/985281c06b11d4ad310000e83539c3/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/99/0455ada80a11d1801000c04fadbf76/frameset.htm

  • Issue with Capturing Long text using CALL METHOD EDITOR- GET_TEXT_AS_STREAM

    HI Experts,
    Standard Long text is capturing using CALL METHOD EDITOR->GET_TEXT_AS_STREAM
         but not working for Custom Long text – Only changes
    Here is the Issue:
    1)      Created Custom Long text in TAB. --> Good
    2)      Entered few lines in custom Long text  --> Good
             Click on Standard Tab , Leaving Custom tab and Custom Long text-->Good
    4)      In PAI of Custom Tab – Changes captured using CALL METHOD 1 ( See below Code 1)--> Good
    5)      Entered few lines in Standard Long text in Standard Tab -->Good
    6)      Click another Standard Tab
    7)      In PAI of Standard Tab – Changes captured using CALL MEHTOD 2 ( See Below Code 2)-->Good
    8)      Come back to Standard Tab / Standard Long Text , Enter few more lines.
    9)      Change the Tab , IN PAI of Standard Tab/Standard Text , Changes Captured using CALL METHOD2 ( See Below CODE 3) --> Good
    10)   Go to Custom Tab , Custom Long text , Entered few more lines--> Good
    11)   Click on any other tab, Triggered again PAI of Custom tab / Custom Long text using Call Method1 ( See Below Code 4) -->Good triggered PAI same CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM.
    12)   But additional lines are not captured , saying ZERO LINES in Internal Table and IF_MODIFIED = NO  -->Issues lies here.
    CODE1 ( Custom Long text entry capturing – First Few Lines )
    Custom Long text Entries are stored in LS_OUTTAB-TEXT first time when entered few lines and LV_MOD is 1.
    PAI of Custom tab
    CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM
            EXPORTING
              ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=>TRUE
            IMPORTING
              TEXT                                       = LS_OUTTAB-TEXT ( FIlled with Lines entered in custom long text )
              IS_MODIFIED            = LV_MOD ( Value 1 , Modified )
            EXCEPTIONS
              ERROR_DP               = 1
              ERROR_CNTL_CALL_METHOD = 2
              OTHERS                 = 3
    CODE2 ( Standard Long Text Entry Capturing – First Few Lines )
    Standard Long text Entries are stored in SELECTED_TEXT first time when entered few lines and FLAG_MODIFIED is 1.
    PAI of Standard tab
       CALL METHOD EDITOR->GET_TEXT_AS_STREAM
          EXPORTING
            ONLY_WHEN_MODIFIED = YTRUE ( Value 1 , Modified )
          IMPORTING
            TEXT                               = SELECTED_TEXT ( FIlled with Lines entered in standard long text )
            IS_MODIFIED        = FLAG_MODIFIED.
    CODE 3 ( Standard Long Text Entry Capturing – Second time Few Lines )
    Standard Long text Entries are stored in SELECTED_TEXT  second  time when entered few lines and FLAG_MODIFIED is 1.
    PAI of Standard tab
       CALL METHOD EDITOR->GET_TEXT_AS_STREAM
          EXPORTING
            ONLY_WHEN_MODIFIED = YTRUE
          IMPORTING
            TEXT                               = SELECTED_TEXT ( FIlled with Lines entered in standard long text )
            IS_MODIFIED        = FLAG_MODIFIED. ( Value 1 , Modified )
    CODE4 ( Custom Long text entry capturing – Second Time Few Lines )
    Custom Long text Entries are not stored in LS_OUTTAB-TEXT Second Time when entered few lines and LV_MOD is 0.
    PAI of Custom tab
    CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM
            EXPORTING
              ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=>TRUE
            IMPORTING
              TEXT                                       = LS_OUTTAB-TEXT  ( ZERO ENTRIES )
              IS_MODIFIED            = LV_MOD   ( NOT MODIFIED Flag )
            EXCEPTIONS
              ERROR_DP               = 1
              ERROR_CNTL_CALL_METHOD = 2
              OTHERS                 = 3
    Can anyone help me out of this.
    With Regards,
    Bala M

    Excellent Eitan,
    Here is what I am trying to Achieve.
    In Create Notification IW21 , They need 5 Long Text in Custom Tab ( Say Tab Name is MBR ).
    TAB1 NOTIFICATION Standard Information , TAB2 REFERENCE OBJ , TAB 3 MalFunction , Breakdown Standard one...... TAB 7 ( Custom Tab ).
    In Custom Tab , I added 5 LONG TEXT ( its 5 WHY Concept ).
    When the User enters data in 5 Long text , it should store long text along with Notification number when save.
    But Notification number will be generated @ the time of SAVE , but before that its just shows as
    %0000000001 ( and Number will be generated 1000065479) at Save.
    How to achive this .
    I did this:
    Added 5 Custom Container. and In PBO / PAI
      PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    IN PBO
       CREATE OBJECT TEXT_EDITOR1 ,    CREATE OBJECT TEXT_EDITOR2,    CREATE OBJECT TEXT_EDITOR3 like wise 5
       CALL METHOD TEXT_EDITOR1->SET_TEXT_AS_R3TABLE ,    CALL METHOD TEXT_EDITOR2->SET_TEXT_AS_R3TABLE .. Like wise 5 , So when the user Click on Custom Tab ( MBR ).
    It give 5 Long text.
    When he click tab1 or tab2 or tab3 .. and again tab MBR , still data is available.
    How to store this data for future retrival ( IW22 or IW23 ) ?
    Its working fine when I enter first time and goes here and there and finall save .
    IN SAVE BADI , I imported the Long text and created Standard Text SO10 with Notification Number with LONG1 , LONG2 .. means 1000065479LONG1 as standard text.
    But not working when I entered first time and go to tab1 and tab2 and then to MBR tab and added few more lines , its not exporting full lines and in IMPORT ( SAVE BADI ) giving ZERO Lines.
    Please help and thanks for your quick response.

Maybe you are looking for