Handle lists

I'd like to print a list in my jsp. For example this is the code:
<%@ page language="java" import="java.util.*,java.lang.*" %>
<% List<String> l1 = new List();
l1.add("Hi!");
l1.add(" How");
l1.add(" are");
l1.add(" you?");
ListIterator<String> iter = l1.iterator(); %>
<html>
<title>Test</title>
<body>
<%
while(iter.hasNext()) { %>
<%= iter %>
<% iter.next();
} %>
</body>
</html>
And when I try to run it... the following error appears :
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 3 in the jsp file: /index.jsp
Generated servlet error:
Syntax error on token "<", invalid AssignmentOperator
An error occurred at line: 3 in the jsp file: /index.jsp
Generated servlet error:
Syntax error on token "=", != expected
An error occurred at line: 3 in the jsp file: /index.jsp
Generated servlet error:
Syntax error on token "<", invalid AssignmentOperator
An error occurred at line: 3 in the jsp file: /index.jsp
Generated servlet error:
Syntax error on token "=", != expected
Can someone help me please? Did I make a mistake or what should I do?

I found that you cannot sync your distributioin lists from Outlook but you can creat distribution/groups in the cloud. You creat a group name, then you click on all contacts.  Then when the names appear on the right hand side you drag the name across to the group name.

Similar Messages

  • Please tell me how to handle list item in this concern

    please tell me how to handle list item in this concern
    My problem is:
    i have a category table with column categoryname(varchar type)
    I want to display the records of categoryname in a drop down list (i.e., list item )
    So ..please tell me how to do it
    Thanks in advance..

    This code is just a sample from the Help documentation. It won't work until you modify it for your form.
    Why do you have "steps" in your code? You are suppose to do what the steps tell you. You don't place the steps in your code. The steps must be removed from your code.
    Step 1 code goes in a program unit, not in a trigger.
    Step 2 and 3 code usually goes in a trigger.
    You will have to replace the names of the items and record group with your own names as you have defined them in your form.
    step 1: create a procedure in your application
    procedure load_list(itm in VARCHAR2, rg in VARCHAR2) is
    group_id RecordGroup := Find_Group(rg);
    list_id Item := Find_Item(itm);
    Begin
    if Populate_Group(group_id)<>0 then
    Message('Unable to populate record group');
    Raise Form_Trigger_Failure;
    end if;
    Clear_List(list_id);
    Populate_list(list_id, group_id);
    end;
    step 2: create a record group named rg_cat and assign Record Group Query to something like "select categoryname from category"
    step 3: call this procedure as
    load_list('categoryname','rg_cat');

  • Handling list box in alv

    hai all
    please check the code and tell how i can call in both open and close sales orders
    NAME = 'CATEGORY'.
      VALUE-KEY = 'OPEN'.
      VALUE-TEXT = 'OPEN'.
      APPEND VALUE TO LIST.
      VALUE-KEY = 'CLOSE'.
      VALUE-TEXT = 'CLOSE'.
      APPEND VALUE TO LIST.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID     = NAME
          VALUES = LIST.

    Reported to SCN Moderators for multiple postings:
    handling list box in alv
    The specified item was not found.
    pk

  • BSP runtime node got deactivate automatically after changing Handler list

    Hi folks,
    We made a change in Handler list of BSP node ( Default_host/sap/bc/bsp) in SICF T code. So basically we added our own Z  BSP HTTP Request Handler class into the Handler List just before the standard class CL_HTTP_EXT_BSP.
    Everything worked fine in Developement, but after moving the change to Quality system, the BSP node automatically got deactivated and we had to activate it again manually.
    What we are wondering is that, why the node got deactivated? Dit it get deactivated  because of the change in Handler list or it might had happend because of some other reason?
    Please provide your openion on this issue.
    Thanks
    PG

    Hi Joaquin
    Thanks for your reply.
    So does it mean, when we will move this new TP request to Production system, there also BSP runtime node will be deactivated automatically?
    And does thtis issue occurs only when there is a transport touching the BSP runtime? Since it did not occur before with other Transports!
    Thanks
    PG

  • Handling list items.

    Hi Masters
    I have a requirement where in there will be two list items. The first and second list items default value has to be taken from the database for the record.
    I have acheived this in post-query trigger. like take the values for the list tiems form the database and set them as default values. this is done programatically. The user has to be able to select a different value from the first list. Then a correspoding list fo values for the second list has to be retrieved from the database. after selecting the required changes the user will have to be able to submit the form where the changes get recorded in the database.
    how ever i am facing the problem, as i am doing this work in post-query trigger . what ever the value i select it is not changing.
    the code in the post_query looks like
    if populate_group(grp_id) = 0 then
    populate_list('datablock.list_item1',grp_id);
    select rec_id into v_rec_id from my_table where primary_key = 1;
    :datablock.list_item1 := v_rec_id ;
    else
    message('error ');
    end if;
    can you suggest a better way to implement the requirement.
    Thank you very much for the answers.

    Say you have created procedure to populate list 2
    PROCEDURE populate_list2 IS
    group_query varchar2(1000);
    group_id RECORDGROUP ;
    errorcode Number;
    begin
    group_id := Find_Group('MY_GROUP1');
    if not id_null(group_id) then
    delete_group('my_group1');
    end if;
    -- Here I'm assuming that datablock.list_item1 is varchar. You can make changes according to your datatype
    group_query := 'SELECT a, b FROM test where b = '''||:datablock.list_item1||'''';
    group_id := create_group_from_query('MY_GROUP1',group_query);
    errorcode := populate_group(group_id);
    if errorcode = 0 then
    populate_list('datablock.list_item2',group_id);
    else
    message('Error populating group '||errorcode);
    end if;
    end;
    Now in Post-Query you have following code :
    -- Code to populate first list item
    if populate_group(grp_id) = 0 then
    populate_list('datablock.list_item1',grp_id);
    select rec_id into v_rec_id from my_table where primary_key = 1;
    :datablock.list_item1 := v_rec_id ;
    else
    message('error ');
    end if;
    -- Code to populate second list item
    If :datablock.list_item1 Is Not Null
    Populate_list2;
    End If;
    This way your second list will be populated.
    Now in the When-List-Changed trigger of datablock.list_item write
    --Code to populate second list item
    Populate_list2.
    This will re-populate the list2 when you change the selection in List1.
    Hope this helps.

  • How to handle list with way more than 5,000 items?

    Hello SharePoint Fam,
    I have a library that will be rather large with nothing but pdf files that are around 30-80KB per file.  Currently I am at around 40k files in the library and of course I have the error message about 5k list view threshold and was wanting to get advice
    on what I should do, I am not using no extra fields at all just a name/title field.  There will be around 100-150k files per year in the library
    Thanks so much n advance

    Nothing at all, basically using this library for our account payable folks to begin scanning in invoices so that they can have a url that links the ap software to these files easier instead of fileshare url.  They use a Fujitsu scanner that scans the
    invoice directly to sp library and the file name is just 20150313064630.pdf format and that is it.  I am open to fields/metadata but that would mean i'd have to go back and touch all 40k files already loaded?
    Thanks so much n advance

  • Handling List Subject ?

    Hi Folks,
    I want to store different types of subjects in a list, so the type of each is unknown. When retrieving items, I know which type they are (T), so I do a cast. How can I check this cast in order to get rid of the compiler warning?
    class GenericsTest {
       List<Subject<?>> list;
       // list.add(new Subject<String>());
       // list.add(new Subject<Integer>());
       <T> Subject<T> getElement(int index) {
          Subject<?> element = list.get(index);
          return (Subject<T>) element;
       class Subject<T> {
          void doSomething(T arg) {
    Warning: type safety: Unchecked cast from GenericsTest.Subject<capture#1-of ?> to GenericsTest.Subject<T>

    Yes, I see that such a cast is potentially risky. So all I want to do is check the cast at runtime and throw the appropriate exception.
       <T> Subject<T> getElement(int index) {
          Subject<?> element = list.get(index);
          if (element instanceof Subject<T>) {
             return (Subject<T>) element;
          throw new RuntimeException("Type error");
       }Something like this.. but isn't possible beacuse the generics seem not to be accessible at runtime (through instanceof).
    So, what stands behind my confusing questions is, that the Subject<T> in fact is an interface for object transcoders:
    public interface Transcoder<T> {
       public void transcode (T source);
    }And so I have transcoder classes that transcode a specific T that implement this interface:
    public class IntegerTranscoder implements Transcoder<Integer> {
       public void transcode (Integer source) {
    }So my idea was to put all those transcoder objects into a list of Transcoder<?>, and if I want to transcode a specific object, I have to find the correct one:
       List<Transcoder<?>> list;
       // list.add(new IntegerTranscoder());
       // list.add(new StringTranscoder());
       public static <T> Transcoder<T> getTranscoder (T object) {
          for (Transcoder<?> t : list) {
             if (t instanceof Transcoder<T>) {
                return (Transcoder<T>) t;
          throw new IllegalArgumentException("No transcoder found");
       }This would be perfect if it was working..

  • Handle list of list of objects in actionForm

    Hi,
    In my struts application, I am getting results from database, based on my search query.
    In result, I am getting set of list of objects mean set contain lists and list contain objects.
    I am passing these values from my action class to jsp page using one bean class.
    Now I want to pass all changed value from jsp page to my next action class using actionForm.
    but problem is, How can I do. because there are set of list of objects.
    pls give me suggestion.

    <html:select property="allEntity" style="width: 200px">
                                  <html:option value="Select an Entity" selected />
                                  <html:optionsCollection property="entity" value"id" label="name" />
                                  </html:select>
    Action Form class:
         private Collection entity;
    private String allEntity;
         public Collection getEntity() {
              return entity;
         public void setEntity(Collection entity) {
              this.entity = entity;
    entity holds all values, you can use it in the action class.
    you can use below too:
    String name[] = request.getParameterValues("name");
    Message was edited by:
    skp71

  • Handling List box element in JSP

    Hi,
    I have a List box which gets populated on the client side, depending on the user's activity on a form, when i finally submit the form, i want the list box with all the values to go to the server, Can anyone help me with the code on the server-side (JSP Scriplet) about how i can do this?
    Thanks
    Varadaraj

    Assuming that by list box, you mean an HTML element using <select ...> tag,...
    Only the currently selected values get submitted to the server. If thatis where you got kind of stuck.

  • Handling Lists in an editable TextArea

    I'm in the process of creating an internal app that has a WYSIWYG component (build on TLF2.0).  The SimpleEditor and TextLayoutEditor sample apps have been a great help in this area.  The feature I'm really struggling with is Lists.  They're an absolute requirement (and the main reason we're using tlf 2.0).  I found the EditManager.createList method which has made creating lists incredibly simple and gives exactly the UX I wanted for creating a list.  However, removing the list (without removing its content) is turning out to be a huge pain.  Is there an easy way that I'm missing?  What would you suggest?

    The MoveChildrenOperation was designed for this use case.
    Richard

  • List Events in J2ME

    Hi!
    Can we add an event to List?
    Like say: I want to display at the ticker the content of the list which is selected.
    If I select List index[0], then the content of the List at zero will be shown at the ticker and so on for which ever index I select from the List.
    When I press down the down arrow of my keyboard that particular index should be displayed only and not on Pressing the Ok button which goes for the commandAction (Command c, Displayable d) method. There must be some event handling for the problem which I am facing but not sure about it.
    Using this code only display the text of the first selected item which is selected by default:
    Code:
    getTicker().setString(titleArray[0]);
    mainList.setTicker(getTicker());If someone can please throw some lights on this.
    Thanks,

    In MIDP, there is no way for the application to handle List traversal events.
    It is possible to do something like that with CustomItem designed to simulate list look and feel but the code would be quite complicated. Also, even though it's doable that way, I generally doubt that passing list element text to ticker while traversing would make nice [user experience|http://en.wikipedia.org/wiki/User_experience|Wikipedia article].
    To do stuff like showing (large? detailed?) content of selected List element I'd personally prefer good old commandAction. And I'd show it on a dedicated "helper" screen, not on a ticker.
    By the way - as far as I understand you are trying to avoid commandAction... why?

  • Customer written Request Handler at Webdynpro SICF Node

    Hi,
    We tried to activate our own request handler in the handler list of the SICF node of our ABAP webdynpro application. However, the handler is not called, i.e. the method IF_HTTP_EXTENSION~HANDLE_REQUEST of my own handler class is not executed.  Why?
    If this is - despite of the documentation - is not working, how can we enhance the request handling?
    thanks for feedback,
    Andreas

    Hi,
    Created a node under default_host and added the custom class to handlers tab, activated the service and then tried to test..browser shows the message
    404   Not Found
    *          SAP J2EE Engine/7.00*
      The requested resource does not exist.
      *Details:      *
      Go to main page of this application!
    BR,
    Anubhav.

  • How to handle Column with Adobe Output Designer 5.7 ??

    Hello,
    I have to handle lists of articles with 2 columns pages.
    1 article = 1 title + 1 text.
    When the data has filled up Column 1 on page 1, it will go to the top of Column 2, on page 1.
    When the fist page is filled then it goes to Page2 Column 1.
    I tryed to modify the preamble but I 'm not able  which is the best option :
    - group !OnOverflow
    - Intelligent pagination commands : \position
    - group!OnBOF
    - group!OnEntry
    - group!OnExit
    It doesn't work !!!
    Could you help me ??
    Thanks in Advance
    Sylvain

    Look here: http://www.adobe.com/products/server/outputdesigner/overview.html
    There is a link at the top to have Adobe contact you.

  • Handling events inooabap

    Hi all,
    As iam new to ooabap i want to know how to declare events in classes and how to trigger them. please give me a sample code so that i can understand easily and also links related to that.

    hi lakshmi,
    look at this sap standard example its available in your system open SE38 and insert demo_abap_objects
    REPORT demo_abap_objects_events NO STANDARD PAGE HEADING.
    INCLUDE <list>.
    Declarations
    INTERFACE i_vehicle.
      DATA     max_speed TYPE i.
      EVENTS:  speed_change EXPORTING value(new_speed) TYPE i.
      METHODS: drive,
               stop.
    ENDINTERFACE.
    CLASS c_ship DEFINITION.
      PUBLIC SECTION.
        METHODS constructor.
        INTERFACES i_vehicle.
      PRIVATE SECTION.
        ALIASES max FOR i_vehicle~max_speed.
        DATA ship_speed TYPE i.
    ENDCLASS.
    CLASS c_truck DEFINITION.
      PUBLIC SECTION.
        METHODS constructor.
        INTERFACES i_vehicle.
      PRIVATE SECTION.
        ALIASES max FOR i_vehicle~max_speed.
        DATA truck_speed TYPE i.
    ENDCLASS.
    CLASS status DEFINITION.
      PUBLIC SECTION.
        CLASS-EVENTS button_clicked EXPORTING value(fcode) TYPE sy-ucomm.
        CLASS-METHODS: class_constructor,
                       user_action.
    ENDCLASS.
    CLASS c_list DEFINITION.
      PUBLIC SECTION.
        METHODS: fcode_handler FOR EVENT button_clicked OF status
                                   IMPORTING fcode,
                 list_change   FOR EVENT speed_change OF i_vehicle
                                   IMPORTING new_speed,
                 list_output.
      PRIVATE SECTION.
        DATA: id TYPE i,
              ref_ship  TYPE REF TO c_ship,
              ref_truck TYPE REF TO c_truck,
              BEGIN OF line,
                id TYPE i,
                flag(1) TYPE c,
                iref  TYPE REF TO i_vehicle,
                speed TYPE i,
              END OF line,
              list LIKE SORTED TABLE OF line WITH UNIQUE KEY id.
    ENDCLASS.
    Implementations
    CLASS c_ship IMPLEMENTATION.
      METHOD constructor.
        max = 30.
      ENDMETHOD.
      METHOD i_vehicle~drive.
        CHECK ship_speed < max.
        ship_speed = ship_speed + 10.
        RAISE EVENT i_vehicle~speed_change
                    EXPORTING new_speed = ship_speed.
      ENDMETHOD.
      METHOD i_vehicle~stop.
        CHECK ship_speed > 0.
        ship_speed = 0.
        RAISE EVENT i_vehicle~speed_change
                    EXPORTING new_speed = ship_speed.
      ENDMETHOD.
    ENDCLASS.
    CLASS c_truck IMPLEMENTATION.
      METHOD constructor.
        max = 150.
      ENDMETHOD.
      METHOD i_vehicle~drive.
        CHECK truck_speed < max.
        truck_speed = truck_speed + 50.
        RAISE EVENT i_vehicle~speed_change
                    EXPORTING new_speed = truck_speed.
      ENDMETHOD.
      METHOD i_vehicle~stop.
        CHECK truck_speed > 0.
        truck_speed = 0.
        RAISE EVENT i_vehicle~speed_change
                    EXPORTING new_speed = truck_speed.
      ENDMETHOD.
    ENDCLASS.
    CLASS status IMPLEMENTATION.
      METHOD class_constructor.
        SET PF-STATUS 'VEHICLE'.
        WRITE 'Click a button!'.
      ENDMETHOD.
      METHOD user_action.
        RAISE EVENT button_clicked EXPORTING fcode = sy-ucomm.
      ENDMETHOD.
    ENDCLASS.
    CLASS c_list IMPLEMENTATION.
      METHOD fcode_handler.
        CLEAR line.
        CASE fcode.
          WHEN 'CREA_SHIP'.
            id = id + 1.
            CREATE OBJECT ref_ship.
            line-id = id.
            line-flag = 'C'.
            line-iref = ref_ship.
            APPEND line TO list.
          WHEN 'CREA_TRUCK'.
            id = id + 1.
            CREATE OBJECT ref_truck.
            line-id = id.
            line-flag = 'T'.
            line-iref = ref_truck.
            APPEND line TO list.
          WHEN 'DRIVE'.
            CHECK sy-lilli > 0.
            READ TABLE list INDEX sy-lilli INTO line.
            CALL METHOD line-iref->drive.
          WHEN 'STOP'.
            LOOP AT list INTO line.
              CALL METHOD line-iref->stop.
            ENDLOOP.
          WHEN 'CANCEL'.
            LEAVE PROGRAM.
        ENDCASE.
        CALL METHOD list_output.
      ENDMETHOD.
      METHOD list_change.
        line-speed = new_speed.
        MODIFY TABLE list FROM line.
      ENDMETHOD.
      METHOD list_output.
        sy-lsind = 0.
        SET TITLEBAR 'TIT'.
        LOOP AT list INTO line.
          IF line-flag = 'C'.
            WRITE / icon_ws_ship AS ICON.
          ELSEIF line-flag = 'T'.
            WRITE / icon_ws_truck AS ICON .
          ENDIF.
          WRITE: 'Speed = ', line-speed.
        ENDLOOP.
      ENDMETHOD.
    ENDCLASS.
    Global data of program
    DATA list TYPE REF TO c_list.
    Program events
    START-OF-SELECTION.
      CREATE OBJECT list.
      SET HANDLER: list->fcode_handler,
                   list->list_change FOR ALL INSTANCES.
    AT USER-COMMAND.
      CALL METHOD status=>user_action.
    REPORT demo_abap_objects_events NO STANDARD PAGE HEADING.
    INCLUDE <list>.
    Declarations
    INTERFACE i_vehicle.
      DATA     max_speed TYPE i.
      EVENTS:  speed_change EXPORTING value(new_speed) TYPE i.
      METHODS: drive,
               stop.
    ENDINTERFACE.
    CLASS c_ship DEFINITION.
      PUBLIC SECTION.
        METHODS constructor.
        INTERFACES i_vehicle.
      PRIVATE SECTION.
        ALIASES max FOR i_vehicle~max_speed.
        DATA ship_speed TYPE i.
    ENDCLASS.
    CLASS c_truck DEFINITION.
      PUBLIC SECTION.
        METHODS constructor.
        INTERFACES i_vehicle.
      PRIVATE SECTION.
        ALIASES max FOR i_vehicle~max_speed.
        DATA truck_speed TYPE i.
    ENDCLASS.
    CLASS status DEFINITION.
      PUBLIC SECTION.
        CLASS-EVENTS button_clicked EXPORTING value(fcode) TYPE sy-ucomm.
        CLASS-METHODS: class_constructor,
                       user_action.
    ENDCLASS.
    CLASS c_list DEFINITION.
      PUBLIC SECTION.
        METHODS: fcode_handler FOR EVENT button_clicked OF status
                                   IMPORTING fcode,
                 list_change   FOR EVENT speed_change OF i_vehicle
                                   IMPORTING new_speed,
                 list_output.
      PRIVATE SECTION.
        DATA: id TYPE i,
              ref_ship  TYPE REF TO c_ship,
              ref_truck TYPE REF TO c_truck,
              BEGIN OF line,
                id TYPE i,
                flag(1) TYPE c,
                iref  TYPE REF TO i_vehicle,
                speed TYPE i,
              END OF line,
              list LIKE SORTED TABLE OF line WITH UNIQUE KEY id.
    ENDCLASS.
    Implementations
    CLASS c_ship IMPLEMENTATION.
      METHOD constructor.
        max = 30.
      ENDMETHOD.
      METHOD i_vehicle~drive.
        CHECK ship_speed < max.
        ship_speed = ship_speed + 10.
        RAISE EVENT i_vehicle~speed_change
                    EXPORTING new_speed = ship_speed.
      ENDMETHOD.
      METHOD i_vehicle~stop.
        CHECK ship_speed > 0.
        ship_speed = 0.
        RAISE EVENT i_vehicle~speed_change
                    EXPORTING new_speed = ship_speed.
      ENDMETHOD.
    ENDCLASS.
    CLASS c_truck IMPLEMENTATION.
      METHOD constructor.
        max = 150.
      ENDMETHOD.
      METHOD i_vehicle~drive.
        CHECK truck_speed < max.
        truck_speed = truck_speed + 50.
        RAISE EVENT i_vehicle~speed_change
                    EXPORTING new_speed = truck_speed.
      ENDMETHOD.
      METHOD i_vehicle~stop.
        CHECK truck_speed > 0.
        truck_speed = 0.
        RAISE EVENT i_vehicle~speed_change
                    EXPORTING new_speed = truck_speed.
      ENDMETHOD.
    ENDCLASS.
    CLASS status IMPLEMENTATION.
      METHOD class_constructor.
        SET PF-STATUS 'VEHICLE'.
        WRITE 'Click a button!'.
      ENDMETHOD.
      METHOD user_action.
        RAISE EVENT button_clicked EXPORTING fcode = sy-ucomm.
      ENDMETHOD.
    ENDCLASS.
    CLASS c_list IMPLEMENTATION.
      METHOD fcode_handler.
        CLEAR line.
        CASE fcode.
          WHEN 'CREA_SHIP'.
            id = id + 1.
            CREATE OBJECT ref_ship.
            line-id = id.
            line-flag = 'C'.
            line-iref = ref_ship.
            APPEND line TO list.
          WHEN 'CREA_TRUCK'.
            id = id + 1.
            CREATE OBJECT ref_truck.
            line-id = id.
            line-flag = 'T'.
            line-iref = ref_truck.
            APPEND line TO list.
          WHEN 'DRIVE'.
            CHECK sy-lilli > 0.
            READ TABLE list INDEX sy-lilli INTO line.
            CALL METHOD line-iref->drive.
          WHEN 'STOP'.
            LOOP AT list INTO line.
              CALL METHOD line-iref->stop.
            ENDLOOP.
          WHEN 'CANCEL'.
            LEAVE PROGRAM.
        ENDCASE.
        CALL METHOD list_output.
      ENDMETHOD.
      METHOD list_change.
        line-speed = new_speed.
        MODIFY TABLE list FROM line.
      ENDMETHOD.
      METHOD list_output.
        sy-lsind = 0.
        SET TITLEBAR 'TIT'.
        LOOP AT list INTO line.
          IF line-flag = 'C'.
            WRITE / icon_ws_ship AS ICON.
          ELSEIF line-flag = 'T'.
            WRITE / icon_ws_truck AS ICON .
          ENDIF.
          WRITE: 'Speed = ', line-speed.
        ENDLOOP.
      ENDMETHOD.
    ENDCLASS.
    Global data of program
    DATA list TYPE REF TO c_list.
    Program events
    START-OF-SELECTION.
      CREATE OBJECT list.
      SET HANDLER: list->fcode_handler,
                   list->list_change FOR ALL INSTANCES.
    AT USER-COMMAND.
      CALL METHOD status=>user_action.
    REPORT demo_abap_objects_events NO STANDARD PAGE HEADING.
    INCLUDE <list>.
    Declarations
    INTERFACE i_vehicle.
      DATA     max_speed TYPE i.
      EVENTS:  speed_change EXPORTING value(new_speed) TYPE i.
      METHODS: drive,
               stop.
    ENDINTERFACE.
    CLASS c_ship DEFINITION.
      PUBLIC SECTION.
        METHODS constructor.
        INTERFACES i_vehicle.
      PRIVATE SECTION.
        ALIASES max FOR i_vehicle~max_speed.
        DATA ship_speed TYPE i.
    ENDCLASS.
    CLASS c_truck DEFINITION.
      PUBLIC SECTION.
        METHODS constructor.
        INTERFACES i_vehicle.
      PRIVATE SECTION.
        ALIASES max FOR i_vehicle~max_speed.
        DATA truck_speed TYPE i.
    ENDCLASS.
    CLASS status DEFINITION.
      PUBLIC SECTION.
        CLASS-EVENTS button_clicked EXPORTING value(fcode) TYPE sy-ucomm.
        CLASS-METHODS: class_constructor,
                       user_action.
    ENDCLASS.
    CLASS c_list DEFINITION.
      PUBLIC SECTION.
        METHODS: fcode_handler FOR EVENT button_clicked OF status
                                   IMPORTING fcode,
                 list_change   FOR EVENT speed_change OF i_vehicle
                                   IMPORTING new_speed,
                 list_output.
      PRIVATE SECTION.
        DATA: id TYPE i,
              ref_ship  TYPE REF TO c_ship,
              ref_truck TYPE REF TO c_truck,
              BEGIN OF line,
                id TYPE i,
                flag(1) TYPE c,
                iref  TYPE REF TO i_vehicle,
                speed TYPE i,
              END OF line,
              list LIKE SORTED TABLE OF line WITH UNIQUE KEY id.
    ENDCLASS.
    Implementations
    CLASS c_ship IMPLEMENTATION.
      METHOD constructor.
        max = 30.
      ENDMETHOD.
      METHOD i_vehicle~drive.
        CHECK ship_speed < max.
        ship_speed = ship_speed + 10.
        RAISE EVENT i_vehicle~speed_change
                    EXPORTING new_speed = ship_speed.
      ENDMETHOD.
      METHOD i_vehicle~stop.
        CHECK ship_speed > 0.
        ship_speed = 0.
        RAISE EVENT i_vehicle~speed_change
                    EXPORTING new_speed = ship_speed.
      ENDMETHOD.
    ENDCLASS.
    CLASS c_truck IMPLEMENTATION.
      METHOD constructor.
        max = 150.
      ENDMETHOD.
      METHOD i_vehicle~drive.
        CHECK truck_speed < max.
        truck_speed = truck_speed + 50.
        RAISE EVENT i_vehicle~speed_change
                    EXPORTING new_speed = truck_speed.
      ENDMETHOD.
      METHOD i_vehicle~stop.
        CHECK truck_speed > 0.
        truck_speed = 0.
        RAISE EVENT i_vehicle~speed_change
                    EXPORTING new_speed = truck_speed.
      ENDMETHOD.
    ENDCLASS.
    CLASS status IMPLEMENTATION.
      METHOD class_constructor.
        SET PF-STATUS 'VEHICLE'.
        WRITE 'Click a button!'.
      ENDMETHOD.
      METHOD user_action.
        RAISE EVENT button_clicked EXPORTING fcode = sy-ucomm.
      ENDMETHOD.
    ENDCLASS.
    CLASS c_list IMPLEMENTATION.
      METHOD fcode_handler.
        CLEAR line.
        CASE fcode.
          WHEN 'CREA_SHIP'.
            id = id + 1.
            CREATE OBJECT ref_ship.
            line-id = id.
            line-flag = 'C'.
            line-iref = ref_ship.
            APPEND line TO list.
          WHEN 'CREA_TRUCK'.
            id = id + 1.
            CREATE OBJECT ref_truck.
            line-id = id.
            line-flag = 'T'.
            line-iref = ref_truck.
            APPEND line TO list.
          WHEN 'DRIVE'.
            CHECK sy-lilli > 0.
            READ TABLE list INDEX sy-lilli INTO line.
            CALL METHOD line-iref->drive.
          WHEN 'STOP'.
            LOOP AT list INTO line.
              CALL METHOD line-iref->stop.
            ENDLOOP.
          WHEN 'CANCEL'.
            LEAVE PROGRAM.
        ENDCASE.
        CALL METHOD list_output.
      ENDMETHOD.
      METHOD list_change.
        line-speed = new_speed.
        MODIFY TABLE list FROM line.
      ENDMETHOD.
      METHOD list_output.
        sy-lsind = 0.
        SET TITLEBAR 'TIT'.
        LOOP AT list INTO line.
          IF line-flag = 'C'.
            WRITE / icon_ws_ship AS ICON.
          ELSEIF line-flag = 'T'.
            WRITE / icon_ws_truck AS ICON .
          ENDIF.
          WRITE: 'Speed = ', line-speed.
        ENDLOOP.
      ENDMETHOD.
    ENDCLASS.
    Global data of program
    DATA list TYPE REF TO c_list.
    Program events
    START-OF-SELECTION.
      CREATE OBJECT list.
      SET HANDLER: list->fcode_handler,
                   list->list_change FOR ALL INSTANCES.
    AT USER-COMMAND.
      CALL METHOD status=>user_action.

  • Why does my lists look different in Firefox

    Please take a look at the following pages in both browsers. pay attention to the right column and see the lists.  In firefox they are ok but explorer does not show the same thing.  any suggestions?
    http://greenpwwhh.com/wisdom.html
    http://www.greenpwwhh.com/wealth.html
    http://www.greenpwwhh.com/health.html
    codes for health page:  note that style in blue was used to take care of margin space for bullets.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/health.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>GreenP - Wealth, Wisdom, Health &amp; Happiness</title>
    <style type="text/css">
    ul {padding-left:16px}
    </style>
    <style type="text/css">
    <!--
    A:link {text-decoration: none}
    -->
    </style>
    <!-- InstanceEndEditable -->
    <link href="main_page.css" rel="stylesheet" type="text/css" />
    <!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .thrColFixHdr #sidebar1 { width: 180px; }
    .thrColFixHdr #sidebar2 { width: 190px; }
    </style>
    <![endif]-->
    <!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .thrColFixHdr #sidebar2, .thrColFixHdr #sidebar1 { padding-top: 30px; }
    .thrColFixHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    var gDivaGPSfree=",index.html,,";
    //-->
    </script>
    <script type="text/javascript" src="diva/divaCommon.js"></script>
    <script type="text/javascript" src="diva/divaGPSfree/divaGPSfree.js"></script>
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    </head>
    <body class="thrColFixHdr">
    <div id="container">
      <div id="header">
        <div id="headerLogo"><img src="greenP_logo.gif" width="293" height="90" alt="logo" /></div>
        <!-- InstanceBeginEditable name="headerad" -->
        <div id="headerAd"><a href="http://www.patrickgreen.cruiseshipcenters.com/Home.aspx#"><img src="cruiseshipcenter_728x90.gif" width="728" height="90" alt="cruise" /></a></div>
        <!-- InstanceEndEditable -->
        <h1> </h1>
        <!-- end #header -->
      </div>
      <div id="nav">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="index.html" class="thrColFixHdr">Home</a></li>
          <li><a href="wisdom.html" target="_top" class="thrColFixHdr">Wisdom</a></li>
          <li><a href="wealth.html" class="thrColFixHdr">Wealth</a></li>
          <li><a href="health.html" class="thrColFixHdr">Health</a></li>
          <li><a href="happiness.html" class="thrColFixHdr">Happiness</a></li>
          <li><a href="#" class="thrColFixHdr">Opportunities</a></li>
          <li><a href="#" class="thrColFixHdr">Seminars</a></li>
          <li><a href="#" target="_top" class="MenuBarItemSubmenu">Store</a>
            <ul>
              <li><a href="Books.html" target="_top">Books</a></li>
              <li><a href="posters.html" target="_top">Posters</a></li>
            </ul>
          </li>
          <li><a href="#" class="thrColFixHdr MenuBarItemSubmenu">Stress Release</a>
            <ul>
              <li><a href="crossword_main_page.html">Crossword</a></li>
              <li><a href="jigsaw_things.html">Jigsaw</a></li>
            </ul>
          </li>
    <li><a href="advertising.html" class="thrColFixHdr">Advertise</a></li>
    <li><a href="membership.html" class="thrColFixHdr">Members</a></li>
          <li><a href="about_us.html" class="thrColFixHdr">About us</a></li>
        </ul>
      </div>
      <div id="search">
    <form name="fbsearch" method="get" action="http://ss662.fusionbot.com/b/q" style="margin:0;">
      <div align="left"><font size="2" face="arial"><a href="http://www.fusionbot.com" target="_blank">Site Search</a>:</font>
        <input type="text" name="keys" size="15">
        <input type="submit" value="GO">
        </div>
        <input type="hidden" name="sn" value="160516902">
    </form>
      </div>
      <div id="nav2"><a href="http://pub27.bravenet.com/chat/show.php?usernum=2253679465&amp;cpv=2"><img src="_image/Chat-with-friends-&amp;-network.gif" width="173" height="25" alt="chat" /></a><a href="http://pub27.bravenet.com/calendar/show.php?usernum=2253679465"><img src="_image/calendar_button.gif" width="173" height="25" alt="calendar" /></a><a href="http://pub27.bravenet.com/postcard/post.php?usernum=2253679465"><img src="_image/Send-Some-Love-Today.gif" width="173" height="25" alt="send some love" /></a><a href="comments.html"><img src="_image/Your-comments-please.gif" width="173" height="25" alt="your comments" /></a></div>
      <div id="chat">
        <!-- Start Bravenet.com Service Code -->
        <div align="center"></div>
        <!-- End Bravenet.com Service Code -->
      </div>
      <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
      <p> </p>
      <div id="healthLeft">
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_259055d2-c397-4de3-a156-df6e49cfcab4"  WIDTH="300px" HEIGHT="250px"> <PARAM NAME="movie" VALUE="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V200708 22%2FUS%2Fgreenpwwhh-20%2F8003%2F259055d2-c397-4de3-a156-df6e49cfcab4&Operation= GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V200708 22%2FUS%2Fgreenpwwhh-20%2F8003%2F259055d2-c397-4de3-a156-df6e49cfcab4&Operation= GetDisplayTemplate" id="Player_259055d2-c397-4de3-a156-df6e49cfcab4" quality="high" bgcolor="#ffffff" name="Player_259055d2-c397-4de3-a156-df6e49cfcab4" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="250px" width="300px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V200708 22%2FUS%2Fgreenpwwhh-20%2F8003%2F259055d2-c397-4de3-a156-df6e49cfcab4&Operation= NoScript">Amazon.com Widgets</A></NOSCRIPT>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
      </div>
      <!-- InstanceBeginEditable name="EditRegion2" -->
      <div id="healthMid">
        <p>health articles go here</p>
    <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
      </div>
      <!-- InstanceEndEditable -->
      <div id="healthRight">
        <div id="healthVideos">
          <div id="healthVideoHead">Videos</div>
          <div id="healthvideoContent">
            <ul>
              <li><a href="ten best foods to eat.html" target="_top">10 best foods to eat</a></li>
              <li><a href="ten worst foods to eat.html" target="_top">10 worst food to eat</a></li>
              <li><a href="ten worst drinks.html" target="_top">10 worst drinks</a></li>
              <li><a href="whole foods and weight loss.html" target="_top">Whole foods &amp; weightloss</a></li>
              <li><a href="super foods.html" target="_top">Super foods</a></li>
              <li><a href="sugar effects 1.html">Sugar is very bad 1</a></li>
              <li><a href="sugar effects 2.html">Sugar is very bad 2</a></li>
              <li><a href="mother of all illness.html" target="_top">Mother of your illness</a></li>
              <li><a href="meat or vegetables.html" target="_top">Meat or vegetables</a></li>
              <li><a href="healthy ways to lose weight.html" target="_top">Healthy weightloss</a></li>
              <li><a href="food for the mind.html" target="_top">Food for the mind</a></li>
              <li><a href="fiber facts.html" target="_top">Fiber facts</a></li>
              <li><a href="fiber fakes.html" target="_top">Fiber fakes</a></li>
              <li><a href="life saving food tips.html">Life-saving food tip</a></li>
            </ul>
            <p> </p>
            <p> </p>
          </div>
          <div id="healthArticles">
            <p> </p>
            <p> </p>
            <p> </p>
            <p> </p>
          </div>
          <div id="healthResources">
            <div id="healthResourceHead">Resources</div>
            <p> </p>
            <p> </p>
            <p> </p>
            <p> </p>
            <p> </p>
          </div>
          <p> </p>
          <p> </p>
          <p> </p>
          <p> </p>
          <p> </p>
          <p> </p>
          <p> </p>
        </div>
        <p><a href="ten worst foods to eat.html" target="_top"></a></p>
        <p> </p>
        <p> </p>
      </div>
      <div id="healthFooterAd">Content for  id "healthFooterAd" Goes Here</div>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <p> </p>
      <br class="clearfloat" />
      <div id="footer">
        <p>Copyright &copy; GreenP. All rights reserved. Site designed by Patrick L Green</p>
        <!-- end #footer -->
      </div>
      <!-- end #container -->
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    <!-- InstanceEnd --></html>

    Hi
    They are different because of the way IE/Opera and FF/Safari handle list indents, you will have to change the default margin and padding values to achieve a consistent list positioning, (do not forget negative values are allowed).
    See the section on positioning in this article for more info - http://www.alistapart.com/articles/taminglists/.
    PZ

Maybe you are looking for

  • How to fix conflicting version of adobe flash player 4.6 on CS6 installation?

    I am basically just wondering how I go about fixing this issue. I am installing the trial of CS6, on top of  CS5.5. When I start the installation of CS6 I get an error for Adobe Flash Player 4.6 saying it is conflicting with a previous version. How d

  • Upgrading from OS 10.4.11 to Snow Leopard

    Hello, I've heard mixed reviews from people at the Apple store to people on the street whether it's possible to upgrade directly from 10.4.11 to Snow Leopard. Below are my specs, and I'd love to hear a second opinion from someone! Model Name: Mac Pro

  • I-tunes wont download podcast or purchased music

    After upgrading i-tunes and getting the crazy spinning i-con i managed to sort that problem but ever since i cant download any podcasts or purchase music i get a message reading your are not connected to the internet or the url is incorrect etc etc.

  • JSF problem -  An internal error occurred during: "Updating JSP Index".

    Hello Friends, I am facing following problem in ecplise. Whenever I open JSP page or whenever I save my jsp page. !ENTRY org.eclipse.core.jobs 4 2 2008-06-14 13:54:24.151 !MESSAGE An internal error occurred during: "Updating JSP Index". !STACK 0 java

  • Possible to use laptop as monitor?

    I just ordered a mac pro and a monitor (not apple) separately. The mac pro has arrived but the monitor is not here yet. Is there any way I can use my powerbook as a monitor so I can start installing programs and configuring the mac pro before the mon