Fieldcatalog coltext property question...

Hi all,
Check this out...I build my field catalog field by field as follows:
  lx_fcat-fieldname = 'WERKS'.
  lx_fcat-ref_table = 't_audit'.
  lx_fcat-coltext = 'Plant'(c03). "Need to replace c03 with integer var containing c03
  l_col_pos = l_col_pos + 1.
  lx_fcat-col_pos = l_col_pos.
  lx_fcat-fix_column = 'X'.
  APPEND lx_fcat TO gt_fcat.
The coltext has a static comment associated with it named c03. I want to be able to set the commnet using a variable defined in my code that is dependent upon the value stored in l_col_pos. For instance...if l_col_pos is 2 then the value stored in the comment variable will be c02. The problem is the compiler is looking for an interger and I'm having trouble concatenating 'C' and l_col_pos and then storing that value in an integer. I keep getting a dump...can I define the comment value dynamically?
Thanks much.

At the beginning of your program use:
READ TEXTPOOL PROGRAM INTO itab LANGUAGE sy-langu.
Now you can read the internal table to assign the column texts via a
READ TABLE itab INDEX integer.
Result is in <i>itab-entry</i>.
Regards

Similar Messages

  • StartupFailureisFatal Property question

    What is name of the registeredclass that we need to specify for the
    startupFailureisFatal property. I have set it to the name of my virtual
    startup class, the name of my startup class, left it alone as
    registeredclass but I don't get the weblogic 4.5 server to shutdown when I
    throw an exception from the startup class. I would appreciate it if someone
    could give me an example of its use. Thanks.
    My weblogic.property file
    weblogic.system.startupClass.mezziaStartup=com.mezzia.planner.admin.MezziaSt
    artup
    weblogic.system.startupArgs.mezziaStartup=serverType=development,\
    serverOwner=me
    I have tried each of the following three settings but none of them cause the
    server to shutdown.
    weblogic.system.startupFailureisFatal.mezziaStartup=true
    weblogic.system.startupFailureisFatal.registeredclass=true
    weblogic.system.startupFailureisFatal.MezziaStartup=true
    I get the following error but the server doesn't shutdown.
    Wed Sep 06 16:37:37 EST 2000:<E> <WebLogicServer> Failed to invoke startup
    class mezziaStartup=com.mezzia.planner.admin.MezziaStartup
    I know it is probably something really simple but I can't figure out what I
    am doing wrong. Thanks Again.
    IRfan
    ---- BEA Documentation for Weblogic 4.5 ----
    You can use the following property to require that specific startup classes
    are correctly loaded before the server will start:
    weblogic.system.startupFailureisFatal.registeredclass=boolean
    The default is false, which will not affect the startup of WebLogic Server.
    If set to true, the server will not start if the class or classes registered
    to the indicated name throw an exception.

    If an expression evaluates to multiple objects, then the Powershell pipeline will automatically create and return an array of those objects.
    If the expression evaluates to a single object (sometimes referred to as being
    scalar) then the pipeline will return one object of that type.
    This can cause problems if the expression is normally expected to return multiple objects, and you write your script to always expect an array to be returned.  To mitigate that, in V3 they added a feature that will synthesize a Count property for the
    object with a value of 1.  But this can only work as long as the object doesn't already have Count property.  If the object already has a Count property, then any reference to .count will return the value of the native property.
    You see the same kind of situation with hash tables.  Hash table objects in Powershell have synthetic .keys and .values properties that return arrays of the hash table keys and values, respectively.  But Powershell syntax also allows you to reference
    hash table keys using the same dot notation used for returning properties.  This produces a conflict if the hash table actually has keys that are named 'keys' or 'values'.  If it does then the actual hash table entry having those key names is returned,
    not they key or value collection.  
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Indexed property question

    I have several forms each containing a unique product. Each product has 'other' items that can be associated with each product.
    Rather than creating setter and getter methods for each 'other' item (too many to do), I thought I'd send the values of those 'other' items to an indexed property like String[] other. A user will be presented with a list of 10 or so 'other' items for each, and each 'other' item will have a checkbox. I'd like only the checked values to show up on another page.
    Is an indexed property the way to go with this? Plus I could iterate through the 'other' list on the seperate page. Any examples anyone knows of I can look at for some help? Thanks!

    public String button1_action() {
    setValue("#{AdminBean.rule[1]}",
    selector.getValue());
    How about
    getAdminBean().setRule(1, selector.getValue());Assuming that selector.getValue() returns a Long and that AdminBean is either an Application, Session, or Request Bean.
    Best regards
    Antonio.

  • WEBI Sample Result Set Query Property Question

    Wnen I set the WEBI Sample Result Set query property my retrievals took longer than I thought they should especially with a limited result set.  When I hit the View SQL button and look at SQL I notice that the following order by is added to the query:
    Order by dbms_random.value
    I copied the query and ran it against our Oracle database with and without the order by.  Without the order by the query ran significantly faster.   Is there any way to stop the order by from being generated when the Sample Result Set property is set?
    Thanks,
    Bob

    Thanks for your reply.
    I tried to locate the parameter you mentioned in the parameters for my universe and did not find anything referencing not enforcing order bys.  I checked the documentation and did not see anything there either.   Please respond with the exact name of the parameter or if it is a custom parameter the settings you used to create it.
    Thanks,
    Bob

  • Field's style property question(from sec page)

    hi,
    i am trying to change the style of a particular column on a grid by using the 'style' property. this works fine from the standard page/subpage button fieldchange pplcode, but has no effect when I set the style from a fieldchange pplcode of a button located in a 'secondary page'. does secondary page not allow such field properties to trigger. is there a workaround or am i missing something specific to sec pages ?
    please help....

    can anyone pls reply....

  • Displayed property question!

    Hi All
    I have the the following properties set to be displayed in a layout set (Collection renderer):
    col:app_date,default:cat_ArcoBasisAnnouncements,rnd:displayname(contentLink)
    However I want the 'default:cat_ArcoBasisAnnouncements' to be in bold - does anyone know how to do this?
    Thanks Phil

    Hi Phil
    First read this document: http://help.sap.com/saphelp_nw04/helpdata/en/fd/fe573d675e910fe10000000a114084/frameset.htm
    One solution to your problem could be to use primaryTextStyle to make the property bold. The property should then be entered in your collection renderer like this: default:cat_ArcoBasisAnnouncements(primaryTextStyle)
    If the primaryTextStyle does not look the way you want, you can define the style of the primaryTextStyle and secondaryTextStyle in your resource renderer.
    And again I believe that the options you have in the dropdown menu in the resource renderer are controlled by the portal theme.
    Kind regards,
    Martin

  • Tricky CSS height property question

    Hello,
    Please have a look at my latest project:
    http://www.sitebaker.org
    As you can see I have split the background into three
    seperate images, "notebook_top,jpg", "notebook_middle.jpg" and
    "notebook_bottom.jpg". The notebook_middle image is repeated
    vertically using CSS. The big pitfall of this however is that the
    rings on the left never really match (Have a look on the bottom
    left where the middle and the bottom images meet). Is there any way
    to fix this? Is there any way to define that the middle image
    always HAS to be a multiple of 49 pixels (the image's height)? That
    would make the site look so much more professional...
    I'm really lost here, so please help. Thanks a lot.

    Take a look here - I think this is the best way to accomplish
    something like
    you have -
    http://neapco.beyondunreal.com/film-clip-layouttest.html
    Pay attention to the way the divs are arranged.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Tintin81" <[email protected]> wrote in
    message
    news:e257ke$b6j$[email protected]..
    > Hey guys, thanks for your help.
    > I have made a small change to the CSS, so the footer is
    visible now in
    > Firefox.
    >
    > However, the initial problems remains: Once the page
    height changes (due
    > to
    > e.g. a change in font size), the left edge becomes
    distorted and it looks
    > very
    > ugly to me. Can anybody else think of a way to fix this?
    >
    > Here's the link again:
    http://www.sitebaker.org
    >

  • DropShadowVisible property question for BorderContainer

    var xnewContainer:BorderContainer = new BorderContainer();
    xnewContainer.dropShadowVisible = "true";
    When creating a BorderContainer at runtime, what is the proper way to set dropShadowVisible?

    This works:
    xnewContainer.setStyle("dropShadowVisible", true);
    Use code after addElement or addChild

  • IT_FIELDCATALOG IS NOT GETTING FILLED

    HI friends
      I have returned a program for workflow tracking. Am getting the output has led light alone no data's are displayed. I found that my IT_FIELDCATALOG = GT_FCAT is not getting filled. How to fill that. Am pasting my programming here. Kinldy help me out.
    TYPE-POOLS: ABAP.
    TABLES : PTREQ_ATTABSDATA,PTREQ_HEADER,PTREQ_ITEMS.
    TYPES: BEGIN OF TY_S_OUTTAB,
            EXCEPTION   TYPE LVC_EXLED,
            PERNR TYPE P0001-PERNR,
            BEGDA TYPE PTREQ_ATTABSDATA-BEGDA,
            ENDDA TYPE PTREQ_ATTABSDATA-ENDDA,
            SUBTY TYPE SUBTY,
            STATUS TYPE PTREQ_HEADER-STATUS,
            END OF TY_S_OUTTAB.
    TYPES: TY_T_OUTTAB TYPE STANDARD TABLE OF TY_S_OUTTAB
                       WITH DEFAULT KEY.
    DATA : REQUEST_ID TYPE PTREQ_HEADER-REQUEST_ID.
    DATA:
      GD_REPID         TYPE SYREPID,
      GD_OKCODE        TYPE UI_FUNC,
      GT_FCAT          TYPE LVC_T_FCAT,
      GS_LAYOUT        TYPE LVC_S_LAYO,
      GS_VARIANT       TYPE DISVARIANT,
      GO_DOCKING       TYPE REF TO CL_GUI_DOCKING_CONTAINER,
      GO_GRID          TYPE REF TO CL_GUI_ALV_GRID.
    DATA: FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
    DATA: GT_OUTTAB        TYPE TY_T_OUTTAB.
    PARAMETERS:
    PERNR         TYPE PA0001-PERNR,
    REQ_ID        TYPE PTREQ_HEADER-REQUEST_ID,
    LEA_TY        TYPE PA0001-SUBTY,
    BEGDA         TYPE PA0001-BEGDA,
    ENDDA         TYPE PA0001-ENDDA.
    REQ_ID = '52A08D487A9B5807E10000000A170133'.
    START-OF-SELECTION.
      BREAK-POINT.
    *  SELECT * FROM  PTREQ_ATTABSDATA INTO CORRESPONDING FIELDS OF TABLE gt_outtab
    *         WHERE  PERNR  = PERNR AND SUBTY = LEA_TY.
      SELECT C~PERNR C~BEGDA C~ENDDA C~SUBTY A~STATUS INTO CORRESPONDING FIELDS OF TABLE GT_OUTTAB
        FROM  ( ( PTREQ_HEADER AS A INNER JOIN
        PTREQ_ITEMS AS B ON A~ITEM_LIST_ID = B~ITEM_LIST_ID ) INNER JOIN
        PTREQ_ATTABSDATA AS C ON B~ITEM_INS = C~ITEM_ID )
        WHERE REQUEST_ID = REQ_ID AND REQUEST_TYPE = 'ABSREQ'
        AND VERSION_NO = ( SELECT MAX( VERSION_NO ) FROM PTREQ_HEADER
        WHERE  REQUEST_ID = REQ_ID ) AND
        ITEM_LIST_NO = ( SELECT MAX( ITEM_LIST_NO )
        FROM PTREQ_ITEMS WHERE ITEM_LIST_ID = A~ITEM_LIST_ID ) .
      PERFORM INIT_CONTROLS.
      PERFORM CHECK_CONDITION.
    * Display data
      CALL METHOD GO_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          IS_LAYOUT       = GS_LAYOUT
          IS_VARIANT      = GS_VARIANT
          I_SAVE          = 'A'
        CHANGING
          IT_OUTTAB       = GT_OUTTAB
          IT_FIELDCATALOG = GT_FCAT
        EXCEPTIONS
          OTHERS          = 4.
      IF SY-SUBRC = 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *    MESSAGE ID mid TYPE mtype NUMBER num.
      ENDIF.
      CALL SCREEN '0100'.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.
    *  SET TITLEBAR 'xxx'.
    **      CALL METHOD go_grid1->refresh_table_display
    ***        EXPORTING
    ***          IS_STABLE      =
    ***          I_SOFT_REFRESH =
    **        EXCEPTIONS
    **          FINISHED       = 1
    **          others         = 2
    **      IF sy-subrc  0.
    ***       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    ***                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    **      ENDIF.
    *OK-CODE->GD_OKCODE.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE USER_COMMAND_0100 INPUT.
      CASE GD_OKCODE.
        WHEN 'BACK' OR
             'END'  OR
             'CANC'.
          SET SCREEN 0.
          LEAVE SCREEN.
        WHEN OTHERS.
          CALL METHOD GO_GRID->REFRESH_TABLE_DISPLAY
            EXCEPTIONS
              FINISHED = 1
              OTHERS   = 2.
          IF SY-SUBRC = 0.
    *       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
      ENDCASE.
      CLEAR: GD_OKCODE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  INIT_CONTROLS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM INIT_CONTROLS .
    * Create ALV grid
      CREATE OBJECT GO_GRID
        EXPORTING
          I_PARENT = GO_DOCKING
        EXCEPTIONS
          OTHERS   = 5.
      IF SY-SUBRC = 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      PERFORM BUILD_FIELDCATALOG.
      PERFORM SET_LAYOUT_AND_VARIANT.
    ENDFORM.                    " INIT_CONTROLS
    *&      Form  BUILD_FIELDCATALOG
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM BUILD_FIELDCATALOG.
    *fieldcatalog-fieldname  = 'EXPECTION'.
    *  fieldcatalog-seltext_m  = 'LIGHT'.
    *  fieldcatalog-col_pos    = 1.
    *  fieldcatalog-outputlen  = 3.
    **  fieldcatalog-emphasize  = 'X'.
    *  APPEND fieldcatalog TO fieldcatalog.
    *  CLEAR  fieldcatalog.
      FIELDCATALOG-FIELDNAME  = 'PERNR'.
      FIELDCATALOG-SELTEXT_M  = 'EMPLOYEE NO'.
      FIELDCATALOG-COL_POS    = 1.
      FIELDCATALOG-OUTPUTLEN  = 8.
      FIELDCATALOG-EMPHASIZE  = 'X'.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR  FIELDCATALOG.
      FIELDCATALOG-FIELDNAME  = 'REQ_ID'.
      FIELDCATALOG-SELTEXT_M  = 'REQUEST_ID'.
      FIELDCATALOG-COL_POS    = 2.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR  FIELDCATALOG.
      FIELDCATALOG-FIELDNAME  = 'LEA_TY'.
      FIELDCATALOG-SELTEXT_M  = 'LEAVE_TYPE'.
      FIELDCATALOG-COL_POS    = 3.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR  FIELDCATALOG.
      FIELDCATALOG-FIELDNAME  = 'BEGDA'.
      FIELDCATALOG-SELTEXT_M  = 'BEGIN_DATE'.
      FIELDCATALOG-COL_POS    = 4.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR  FIELDCATALOG.
      FIELDCATALOG-FIELDNAME  = 'ENDDA'.
      FIELDCATALOG-SELTEXT_M  = 'END_DATE'.
      FIELDCATALOG-COL_POS    = 5.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR  FIELDCATALOG.
      FIELDCATALOG-FIELDNAME  = 'STATUS'.
      FIELDCATALOG-SELTEXT_M  = 'STATUS'.
      FIELDCATALOG-COL_POS    = 6.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR  FIELDCATALOG.
    * define local data
      DATA:
        LS_FCAT        TYPE LVC_S_FCAT.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    *    EXPORTING
    *     I_BUFFER_ACTIVE              =
    *      I_STRUCTURE_NAME             = 'TY_S_OUTTAB'
    *     I_CLIENT_NEVER_DISPLAY       = 'X'
    *     I_BYPASSING_BUFFER           =
    *     I_INTERNAL_TABNAME           =
        CHANGING
          CT_FIELDCAT                  = GT_FCAT
        EXCEPTIONS
          INCONSISTENT_INTERFACE       = 1
          PROGRAM_ERROR                = 2
          OTHERS                       = 3.
      IF SY-SUBRC = 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " BUILD_FIELDCATALOG_KNB1
    *&      Form  SET_LAYOUT_AND_VARIANT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM SET_LAYOUT_AND_VARIANT .
      CLEAR: GS_LAYOUT,
             GS_VARIANT.
    *  GS_LAYOUT-CWIDTH_OPT = ABAP_TRUE.
      GS_LAYOUT-ZEBRA      = ABAP_TRUE.
      GS_LAYOUT-EXCP_FNAME = 'EXCEPTION'.  " define column for LED
      GS_LAYOUT-EXCP_LED   = ABAP_TRUE.
      GS_VARIANT-REPORT = SYST-REPID.
      GS_VARIANT-HANDLE = 'GRID'.
    ENDFORM.                    " SET_LAYOUT_AND_VARIANT
    *&      Form  CHECK_CONDITION
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM CHECK_CONDITION .
    * define local data
      DATA: LS_OUTTAB   TYPE TY_S_OUTTAB.
      LOOP AT GT_OUTTAB INTO LS_OUTTAB.
        IF ( LS_OUTTAB-STATUS = 'APPROVED' ).
          LS_OUTTAB-EXCEPTION = '3'.  " GREEN LED/traffic light
        ELSE.
          LS_OUTTAB-EXCEPTION = '1'.  " RED LED / traffic light
        ENDIF.
        MODIFY GT_OUTTAB FROM LS_OUTTAB INDEX SYST-TABIX.
      ENDLOOP.
    ENDFORM.                    " CHECK_CONDITION
    Here in the function module 'LVC_FIELDCATALOG_MERGE'
    GT_FACT is not getting filled. How to do that.
    Regards
    vijay

    some thing you are missing, but any you can also do this..
    change the definiton of the fieldcatalog.
    DATA: FIELDCATALOG TYPE lvc_t_fcat WITH HEADER LINE.
    population change
    FIELDCATALOG-FIELDNAME  = 'PERNR'.
      FIELDCATALOG-COLTEXT  = 'EMPLOYEE NO'.
      FIELDCATALOG-COL_POS    = 1.
      FIELDCATALOG-OUTPUTLEN  = 8.
      FIELDCATALOG-EMPHASIZE  = 'X'.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR  FIELDCATALOG.
      FIELDCATALOG-FIELDNAME  = 'REQ_ID'.
      FIELDCATALOG-COLTEXT  = 'REQUEST_ID'.
      FIELDCATALOG-COL_POS    = 2.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR  FIELDCATALOG.
      FIELDCATALOG-FIELDNAME  = 'LEA_TY'.
      FIELDCATALOG-COLTEXT  = 'LEAVE_TYPE'.
      FIELDCATALOG-COL_POS    = 3.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR  FIELDCATALOG.
      FIELDCATALOG-FIELDNAME  = 'BEGDA'.
      FIELDCATALOG-COLTEXT  = 'BEGIN_DATE'.
      FIELDCATALOG-COL_POS    = 4.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR  FIELDCATALOG.
      FIELDCATALOG-FIELDNAME  = 'ENDDA'.
      FIELDCATALOG-COLTEXT  = 'END_DATE'.
      FIELDCATALOG-COL_POS    = 5.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR  FIELDCATALOG.
      FIELDCATALOG-FIELDNAME  = 'STATUS'.
      FIELDCATALOG-COLTEXT = 'STATUS'.
      FIELDCATALOG-COL_POS    = 6.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR  FIELDCATALOG.
    method call display change..
    * Display data
      CALL METHOD GO_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          IS_LAYOUT       = GS_LAYOUT
          IS_VARIANT      = GS_VARIANT
          I_SAVE          = 'A'
        CHANGING
          IT_OUTTAB       = GT_OUTTAB
          IT_FIELDCATALOG = FIELDCATALOG[]
        EXCEPTIONS
          OTHERS          = 4.
      IF SY-SUBRC EQ  0.
      ENDIF.
    apply all the changes and see...

  • Lost and I need help or point in right direction

    Trying to parse an xml file pass a String[] to my bean and have the jsp display the String. User clicks button get the next String in the array.
    All I keep getting is InstantionException when I run it.
    Code that parses and passes String to bean:
      new parseData(xmlFile);// parse it
      DataBean bean = new DataBean(questionText);// pass String[] to bean
      bean.setQuestionText(1);// set the first String               
      String cmd = null;
      try{
          cmd = "rundll32 url.dll,FileProtocolHandler           http://localhost:8080/mywebapp/index.jsp";
          Process p = Runtime.getRuntime().exec(cmd);
      } catch(Exception e ){}The DataBean:
    package webapp;
    import java.beans.*;
    import javax.swing.*;
    public class DataBean extends Object implements java.io.Serializable {
        private String buttonText;
        private String[] questionText;
        private String question;
        /** Creates new DataBean */
        public DataBean(String[] questionText) {
            this.questionText = questionText;
            System.out.println( getQuestionText() + " <<<< " );
      // setter methods for questions and answers 
        public void setQuestionText(int quesNumber){
            this.question = questionText[quesNumber];
        public String getQuestionText(){
            return question;
      }And finally the jsp page
    <%@ page contentType="text/html"%>
    <html>
    <head><title>Select Survey to Load Page</title></head>
    <body>
    <jsp:useBean id='dataBean' scope='session' class='webapp.DataBean'/>
    <jsp:setProperty name='dataBean' property='question'/>
    <div align="center">
    <%int j = 0;%>
    <p><Font color = "white" size="5"><%=dataBean.getQuestionText()%>></Font></p>?
    <form><input type="button"onclick="<%j++; dataBean.setQuestionText(j);%>window.reset()" value='Click me!'</form>
    </body>
    </html>

    can you post the original error and stack trace?

  • How can I keep track of ans of quest ???? [Struts]

    hi,
    I am trying to develop Question-Answer pages using struts.
    The problem is when user selectes the right option(radio button) of different different quest. how can i keep track of these selected radio buttons ???
    I mean how can i trace the value of selected radio button corresponding to its quest. in my ActionForm and ActionClass.
    //loop for all questions
    <logic:notEmpty name="QUEST_LIST">
         <logic:iterate id="list" name="QUEST_LIST"  indexId="sno">     
         <tr>
              <td><%=(sno.intValue()+1) %>
              </td>
              <td> <bean:write name="list" property="QUESTION" />
              </td>               
         </tr>
         <tr>//loop for all options of corresponding question
    <logic:iterate id="OptionList" name="list" property="OPTION_LIST">
              <td> 
              </td>
              <td><INPUT type="radio" name="<bean:write name="list" property="QUESTION_ID" />" value="<bean:write name="OptionList" />">
                   <bean:write name="OptionList" />
              </td>
              </logic:iterate>
         </tr>     
         <tr><td> </td>
         </tr>
         </logic:iterate>
    </logic:notEmpty>Now my problem is in statement.....
    INPUT type="radio" name="<bean:write name="list" property="QUESTION_ID" />" value="<bean:write name="OptionList" />">
    if I hardcode the valueof "name" attribute then only one radio button is selected from all the question, so i created it dynamically using quesID.
    now its working fine only one radio can be selected for each quest. BUT how I set the values of these selected radio button in my ActionForm and get it into ActionClass
    I hope u understand what i am trying to say.....
    Please help me......

    hi,
    try "last" in the client's terminal. is this what you are looking for?
    cheers,
    Michael.

  • Urgent - JSP error in JDev 3.1 under NT 4.0

    Hi,
    I have an error in the .jsp file(code below). I already defined the bean called FaqBean. But, from the JSP file, it can't recognize the bean. Can you please tell me what I'm doing wrong?
    Thanks in advance,
    Kaiser
    <%@ page import="com.taglib.wdjsp.faqtool.*"
    errorPage="error.jsp" %>
    <%-- <jsp:useBean id="faq" class="FaqBean"/> --%>
    <% FaqBean[] faqs = (FaqBean[])request.getAttribute("faqs"); %>
    <html>
    <head><title>FAQ List</title></head>
    <body bgcolor="white">
    <h2>FAQ List</h2>
    <%
    for (int i=0; i < faqs.length; i++) {
    faq = faqs;
    %>
    <b>Question:</b> <jsp:getProperty name="faq" property="question"/> <! This is the line it complains -->
    <br>
    <b>Answer:</b> <jsp:getProperty name="faq" property="answer"/>
    <p>
    </tr>
    <% } %>
    </body>
    </html>
    ?Error: [14] Error in attribute list: faq is not a defined bean

    The useBean tag is inside a scriptlet, this could be your problem. Change this:
    <%-- <jsp:useBean id="faq" class="FaqBean"/> --%>
    to this
    <jsp:useBean id="faq" class="FaqBean"/>

  • Article database

    Hello,
    I want to develop an article management (users can upload a pdf and input informations about the resource like author, category, year, publisher, ... ).
    I have a resource and for this resource several customer properties like author, category, year,... I have posted before and one of the replies was to watch the tutorial for the bulleting board. I did it and got an overview about the possibilites. Unfortunately I don't get the whole picture and there are some informations not fitting in my brain. Maybe someone can help me how to realize the steps:
    - First of all I would like to create my customer properties for a resource. The path should be /documents/articles. The attributes author, category (technical documentation, summary, ...), year, tags (web dynpro abap, web dynpro java, ... ).
    What do I need to see this attributes in an dialog to upload an resource.  The properties in the bulletin board tutorial are not associated with a resource. There I don't get the point with the several steps I have do in order to see the properties. Can I use the default namespace (like it is in the bulletin board tutorial) or should I create an own? Is there somewhere a step by step guide?
    - To a resource could belong another resource (like a practice). How can I associate the main resource to other resources? If there is no possibility I would just put some fields as resource properties for the urls to the resource.
    Sorry for asking about this stuff again, but like I told. I don't get the point with all this.
    Thanks, Vanessa

    Hi Vanessa, I haven't checked the tutorial you mentioned so I'm not sure what possibilities
    you've seen so far, anyways here goes my solution:
    First thing to do is create the properties (author, year, document type, etc). Have a special
    attention to the following properties:
    Folder Validity Patterns: you wanna classify documents, so it's unlikely any of your properties
    will apply to folders, if that's the case leave this field blank (!! default value is /** so change it)
    Document Validity Patterns: make this something like /documents/articles/** so every document
    below this path will have the metadata you're creating
    That should answer the resource association with property question
    It's up to you to use a default namespace or a create one, it's good to have a custom namespace so you
    have your customers' metadata organized, also avoid conflicting names (eg: author already exists
    in default namespace)
    By now it should be already possible to set the properties when uploading documents, if you
    used default configuration the properties should be on the Miscellaneous tab, depending on your
    requirements checking the Mandatory option on the properties would make sure no document is
    uploaded without proper definitions.
    Having your own tab, groups, and friendly labels with tooltips and all requires more effort, please
    refer to the following document to in depth details regarding propreties:
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/de31ec90-0201-0010-be95-f501d25027a8
    It's not possible to bind a document to another on stadard way, i'd suggest to have a property like
    "see also" or "related documents" where you put a link to document (There is a See Also
    KM command but I never used it so dunno how it works)
    hope it helps,
    Rafael

  • Inserting  data into database

    HI
    im creating an web application using jsp, oracle 8i and tomcat , where 1 page is a registration page for users. (register.html)
    the flow of the program is tht when the user clicks on submit button of register.html , it calls Insertdata.jsp which takes the data from the fields and sends them 2 a bean,CustDataBean.java ,at the same time Insertdata.jsp will call another jsp Accessdata.jsp which has code to call another bean which inserts the data from 1st Bean to database.
    but i am getting error as soon as i click Submit button
    the error is as follows:
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:64: ')' expected.
    request.getParameter(\"fname\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:64: Invalid character in input.
    request.getParameter(\"fname\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:71: String not terminated at end o
    f line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "lname","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:72: Invalid character in input.
    request.getParameter(\"lname\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:79: String not terminated at end o
    f line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "street","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:80: Invalid character in input.
    request.getParameter(\"street\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:87: String not terminated at end o
    f line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "city","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:88: Invalid character in input.
    request.getParameter(\"city\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:95: String not terminated at end o
    f line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "zip","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:96: Invalid character in input.
    request.getParameter(\"zip\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:103: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "country","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:104: Invalid character in input.
    request.getParameter(\"country\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:111: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "usrname","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:112: Invalid character in input.
    request.getParameter(\"usrname\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:119: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "pwd","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:120: Invalid character in input.
    request.getParameter(\"pwd\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:127: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "bdate","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:128: Invalid character in input.
    request.getParameter(\"bdate\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:135: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "month","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:136: Invalid character in input.
    request.getParameter(\"month\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:143: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "year","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:144: Invalid character in input.
    request.getParameter(\"year\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:151: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "question","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:152: Invalid character in input.
    request.getParameter(\"question\")%> ",null,null, false)
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:159: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "answer","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:160: Invalid character in input.
    request.getParameter(\"answer\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:184: Unbalanced parentheses.
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:184: '}' expected.
    ^
    29 errors, 1 warning
    at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
    at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.
    java:733)
    at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.jav
    a:506)
    at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.j
    ava:968)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
    java:875)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833
    at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
    Http10Interceptor.java:176)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
    :494)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:516)
    at java.lang.Thread.run(Thread.java:534)
    2004-03-10 15:33:36 - Ctx() : Exception in R( + /Insertdata.jsp + null) - org.a
    pache.jasper.JasperException: Unable to compile Note: sun.tools.javac.Main has b
    een deprecated.
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:63: String not terminated at end o
    f line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "fname","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:64: ')' expected.
    request.getParameter(\"fname\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:64: Invalid character in input.
    request.getParameter(\"fname\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:71: String not terminated at end o
    f line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "lname","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:72: Invalid character in input.
    request.getParameter(\"lname\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:79: String not terminated at end o
    f line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "street","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:80: Invalid character in input.
    request.getParameter(\"street\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:87: String not terminated at end o
    f line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "city","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:88: Invalid character in input.
    request.getParameter(\"city\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:95: String not terminated at end o
    f line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "zip","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:96: Invalid character in input.
    request.getParameter(\"zip\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:103: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "country","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:104: Invalid character in input.
    request.getParameter(\"country\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:111: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "usrname","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:112: Invalid character in input.
    request.getParameter(\"usrname\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:119: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "pwd","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:120: Invalid character in input.
    request.getParameter(\"pwd\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:127: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "bdate","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:128: Invalid character in input.
    request.getParameter(\"bdate\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:135: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "month","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:136: Invalid character in input.
    request.getParameter(\"month\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:143: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "year","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:144: Invalid character in input.
    request.getParameter(\"year\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:151: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "question","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:152: Invalid character in input.
    request.getParameter(\"question\")%> ",null,null, false)
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:159: String not terminated at end
    of line.
    org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper
    (pageContext.findAttribute("custdatabean"), "answer","<%=
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:160: Invalid character in input.
    request.getParameter(\"answer\")%> ",null,null, false);
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:184: Unbalanced parentheses.
    ^
    C:\Tomcat\work\DEFAULT\ROOT\Insertdata_1.java:184: '}' expected.
    ^
    29 errors, 1 warning
    at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
    at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.
    java:733)
    at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.jav
    a:506)
    at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.j
    ava:968)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
    java:875)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833
    at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
    Http10Interceptor.java:176)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
    :494)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:516)
    at java.lang.Thread.run(Thread.java:534)
    code for register.html
    <html              
            <head>
            <head>
              <title>
                   Help Desk Support
              </title>
    </head>
    <body>
    <center>
                   <b><h1>
                        <font color = blue>
                             Help Desk Support
                        </font>
                   </h1></b>
    </center>
    <form name = "loginform" method = "POST" action = "http://localhost:8080/Insertdata.jsp">
      <p><i>First Name <font color="#FF0000">*: <input type="text" name="fname" size="15"> 
      </font>Last Name<font color="#FF0000">* <input type="text" name="lname" size="15"><br>
      </font>
      Street:<font color="#FF0000">          
      <input type="text" name="street" size="15">  </font>City:<font color="#FF0000">            
      <input type="text" name="city" size="15"><br>
      </font>
      Zip:   <font color="#FF0000">           
      <input type="text" name="zip" size="5">           </font>  
      Country:  <font color="#FF0000">     <input type="text" name="country" size="25"><br>
      </font>
      <p>Username(max 9)<font color="#FF0000">*</font>: <font color="#FF0000"> <input type="text" name="usrname" size="9"><br>
      </font>Password(max 9)<font color="#FF0000">*</font>:<font color="#FF0000"> 
      <input type="password" name="pwd" size="9"></p>
      </font>
      <p>------------------------------------------------------------------------------------------------------------------------------<font color="#FF0000"><br>
      </font>
      BirthDate<font color="#FF0000">*</font>:<font color="#FF0000"> <select size="1" name="bdate">
      <option selected>1
        <option>2
          <option>3
            <option>4
              <option>5
                <option>6
                  <option>7
                    <option>8
        <option>9
          <option>10
            <option>11
              <option>12
                <option>13
                  <option>14
                    <option>15
                      <option>16
                        <option>17
                          <option>18
                            <option>19
                              <option>20
                                <option>21
                                  <option>22
                                    <option>23
                                      <option>24
                                        <option>25
                                          <option>26
                                            <option>27
                                              <option>28
                                                <option>29
                                                  <option>30
                                                    <option>31
      </select>  </font> Month<font color="#FF0000">*</font>:<font color="#FF0000"> <select size="1" name="month">
        <option selected>Jan
          <option>Feb
            <option>Mar
              <option>Apr
                <option>May
                  <option>Jun
                    <option>Jul
                      <option>Aug
                        <option>Sep
                          <option>Oct
                            <option>Nov
                              <option>Dec
      </select>  </font>Year<font color="#FF0000">*</font>: <font color="#FF0000"> <input type="text" name="year" size="10"></p>
      </font>
      <p>Secret Question<font color="#FF0000">*</font>:<font color="#FF0000"> <select size="1" name="question"><option value="Favorite pet's name?"  selected  > Favorite pet's name?<option value="Favorite movie?"  > Favorite movie?<option value="Anniversary [mm/dd/yy]?"  > Anniversary [mm/dd/yy]?<option value="Father's middle name?"  > Father's middle name?<option value="Spouse's middle name?"  > Spouse's middle name?<option value="First child's middle name?"  > First child's middle name?<option value="High school name?"  > High school name?<option value="Favorite teacher's name?"  > Favorite teacher's name?<option value="Favorite sports team?"  > Favorite sports team?  </select><br>
      </font>
      Answer<font color="#FF0000">*</font>:<font color="#FF0000">            
      <input type="text" name="answer" size="35"></p>
      <p>                                                                           
      <input type="reset" value="Reset" name="reset"> <input type="submit" value="LOGIN" name="submit"></p>
    </form>
    </body>-----------------------------------------
    Insertdata.jsp
    <html>
         <head>
              <title>
                   Redirecting to .... Successful registration !
              </title>
                   Thank You for the Registration.
         </head>
         <body>
              <%@ page session = "true" %>
    <% managerservlets.CustDataBean custdatabean = new managerservlets.CustDataBean(); %>
              /* wot abt unum which is a sequence */
              <jsp:setProperty name = "custdatabean" property = "fname" value = '<%=
                   request.getParameter("fname")%> ' />          
              <jsp:setProperty name = "custdatabean" property = "lname" value = '<%=
                   request.getParameter("lname")%> ' />     
              <jsp:setProperty name = "custdatabean" property = "street" value = '<%=
                   request.getParameter("street")%> ' />     
              <jsp:setProperty name = "custdatabean" property = "city" value = '<%=
                   request.getParameter("city")%> ' />     
              <jsp:setProperty name = "custdatabean" property = "zip" value = '<%=
                   request.getParameter("zip")%> ' />     
              <jsp:setProperty name = "custdatabean" property = "country" value = '<%=
                   request.getParameter("country")%> ' />     
              <jsp:setProperty name = "custdatabean" property = "usrname" value = '<%=
                   request.getParameter("usrname")%> ' />     
              <jsp:setProperty name = "custdatabean" property = "pwd" value = '<%=
                   request.getParameter("pwd")%> ' />     
              <jsp:setProperty name = "custdatabean" property = "bdate" value = '<%=
                   request.getParameter("bdate")%> ' />     
              <jsp:setProperty name = "custdatabean" property = "month" value = '<%=
                   request.getParameter("month")%> ' />     
              <jsp:setProperty name = "custdatabean" property = "year" value = '<%=
                   request.getParameter("year")%> ' />     
              <jsp:setProperty name = "custdatabean" property = "question" value = '<%=
                   request.getParameter("question")%> ' />     
              <jsp:setProperty name = "custdatabean" property = "answer" value = '<%=
                   request.getParameter("answer")%> ' />
              ThankYou
         </body>
    </html>-------------------------------
    Custdatabean.java has only setProperty and getProperty methods
    can somebody tell me how to rectify this error?
    thanks
    tej_jay

    Couple of things:
    1 - You really should be using a jsp:useBean tag rather than just declaring your variable in a scriptlet.
    2 - Get rid of the space between the %> and the '
    ie :<jsp:setProperty name = "custdatabean" property = "fname" value = '<%= request.getParameter("fname")%>' />

  • BPEL and OWSM Security

    I am new to OSWM.
    I am using BPEL Process as my consumer. Meaning it is an outbound message and will be sending out WSS header as username token.
    I noticed that OWSM's Request Pipeline, I need to add
    1. Extract Credential Policy Step - to specify to use WS-BASIC
    2. File Authenticate Policy Step - Store the user [such as ABCD]and password[such as ABCD] in a file -.htpasswd
    At the sametime, For the Partnerlink, BPEL.xml has this property name tag
    <property name ="wsseUsername">ABCD</property>
    <property name ="wssePassword">ABCD</property>
    Question :
    Do I need to do the File Authenticate Policy Step in OWSM ?
    or
    Do I need to do in BPEL only ?
    or
    Do I need to do both in OWSM and BPEL ?

    HI,
    I hope that depends on how you want to secure the BPEL service.
    Either you can define the username and password in BPEL. Or
    If you use OWSM, you need to again authenticate the username and password else just extacting the credentials does not make sense.
    For example, if you do not use File authenticate in OWSM policy then only security the OWSM gateway will provide is "proxifying the BPEL Web Service".
    Also can you clarify, if BPEL PM is sending out WSS headers then I think it is message producer not consumer.

Maybe you are looking for

  • All events are missing in iCal view

    iPhone can still sync with the events so they are still there, but I can't see them. If I add a new event, I can't edit it and then when I leave iCal and come back the event has also disappeared. Any thoughts?

  • Size/time limit for AppleTV movie files?

    Scenario: I have a few hundred iMovie projects that I want to convert to AppleTV movies. My first project was just under two hours, and it converted fine. The second project was just under three hours total (33GB .DV file), and it crashed at 99% comp

  • Upgrade from 11.5.9 to R12.1.1

    Hi, We have 11.5.9 CU2 with 9.2.0.7 database running on solaris 8, we would like this to be migrated and upgraded to 12.1.1 with 11.1.0.7 database on RHEL4. Could anyone confirm whether this approach is fine? 1. Upgrade the source database on solaris

  • Making an object serializable

    Hey guys, im new at this so i dont know almost anything about serialization, so here's my problem: Got an array of an object "Article" that i defined, wanna write it to a file but i get the "NotSerializableException", here's my object's constructor:

  • Only want to use Black ink, not color

    I have used all pro 8500 with black ink only. other colors are empty . I dont want to print with color and only Black ink needed. black ink is full but still calling out needs ink fill