Process method in InputProcessor/InputProcessorSupport

Hi All,
To process HTML form data we have to implement/extend
InputProcessor interface /InputProcessorSupport class and
implement/override process method. This process method
returns "java.lang.Object" .
How do I obtain the value of "java.lang.Object" in
destination JSP?
Thanks
Vinay

Vinay,
The return value should just be strigifiable. Look at any WLP example
app to understand the syntax. Secondly, the return value is not a value
for your destination, but a value that determines the flow itself. In
order to share data between an InputProcessor and JSP, use the
PipelineSession instead. Refer to Webflow documentation for more details.
Subbu
Vinay Ram wrote:
Hi All,
To process HTML form data we have to implement/extend
InputProcessor interface /InputProcessorSupport class and
implement/override process method. This process method
returns "java.lang.Object" .
How do I obtain the value of "java.lang.Object" in
destination JSP?
Thanks
Vinay

Similar Messages

  • Non-application exception occurred while processing method createReportsExc

    Hi,
    Any one get the following exception
    Non-application exception occurred while processing method createReportsExcelFile on bean BeanId(bsd#bsdejb.jar#ReportsDownload, null): java.lang.NoSuchMethodError: java.lang.RuntimeException: method <init>(Ljava/lang/Throwable;)V not found
         at jxl.write.biff.File.write(File.java(Compiled Code))
         at jxl.write.biff.SheetWriter.write(SheetWriter.java(Compiled Code))
         at jxl.write.biff.SheetWriter.write(SheetWriter.java(Compiled Code))
         at jxl.write.biff.WritableSheetImpl.write(WritableSheetImpl.java:1165)
         at jxl.write.biff.WritableWorkbookImpl.write(WritableWorkbookImpl.java:805)
         at com.bsdnet.ejb.report.ReportsDownloadEJB.writeToBUReportExcelFile(ReportsDownloadEJB.java(Compiled Code))
         at com.bsdnet.ejb.report.ReportsDownloadEJB.createBUReport(ReportsDownloadEJB.java:2151)
         at com.bsdnet.ejb.report.ReportsDownloadEJB.createReportsExcelFile(ReportsDownloadEJB.java:411)
         at com.bsdnet.ejb.report.EJSRemoteStatelessReportsDownload.createReportsExcelFile(EJSRemoteStatelessReportsDownload.java:49)
         at com.bsdnet.ejb.report._ReportsDownload_Stub.createReportsExcelFile(_ReportsDownload_Stub.java:258)
         at com.bsdnet.batch.report.ReportsJobProcessingThread.run(ReportsJobProcessing.java:282)
    IF Yes, Then Please help me out asap.
    Thanks,
    Sumit Gupta

    Since you want to use a class that is not part of your EJB environment you cant access it.
    Like you said your ELUWS14 class is part of your web project, most likely to be inside a war. And the session bean inside an ear.
    If you need that class on both environments (session beans and web components) the best approach is to create a JAR file and include it there. If it is going to change a lot then the best approach is to have it on your ear (EJB side), and your web components should call the session beans method to invoke operations.
    Your business rules should not access your presentation layer:
    EJB -> Web components Not a good idea
    EJB <-> Web components Not a good idea
    EJB <- Web components This is the way to go
    So, web components should access classes from the ear, and not viceversa. This is why containers make ear classes accesible to web component, and not in the other way

  • Non-application exception occurred while processing method "fnExtRiskAccum"

    I am getting the following error when starting the Server ?
    Please help me to find out what it means
    Non-application exception occurred while processing method "fnExtRiskAccum". Exception data: com.ibm.ejs.container.CreateFailureException: ; nested exception is:
         java.lang.reflect.InvocationTargetException
         at com.ibm.ejs.container.StatelessBeanO.<init>(StatelessBeanO.java:151)
         at com.ibm.ejs.container.CMStatelessBeanO.<init>(CMStatelessBeanO.java:53)
         at com.ibm.ejs.container.CMStatelessBeanOFactory.create(CMStatelessBeanOFactory.java:40)
         at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:666)
         at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:753)
         at com.ibm.ejs.container.activator.UncachedActivationStrategy.atActivate(UncachedActivationStrategy.java:78)
         at com.ibm.ejs.container.activator.Activator.activateBean(Activator.java:516)
         at com.ibm.ejs.container.EJSContainer.preInvoke_internal(EJSContainer.java:2762)
         at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2487)
         at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2472)
         at uw.EJSRemoteStatelessUWGC_ejbVERIFY_34c1773e.fnExtRiskAccum(EJSRemoteStatelessUWGC_ejbVERIFY_34c1773e.java:52)
         at uw._UWGC_ejbVERIFYRemote_Stub.fnExtRiskAccum(_UWGC_ejbVERIFYRemote_Stub.java:918)
         at ren.RNLB_cPL_MAIN.doGet(RNLB_cPL_MAIN.java:3045)
         at ren.RNLB_cPL_MAIN.doPost(RNLB_cPL_MAIN.java:65)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at ren.RNLB_cPL_MAIN.service(RNLB_cPL_MAIN.java:4055)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
         at common.UTIL_cENTRY.doGet(UTIL_cENTRY.java:84)
         at common.UTIL_cENTRY.doPost(UTIL_cENTRY.java:89)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
         at common.UTIL_cTUNNEL.doGet(UTIL_cTUNNEL.java:129)
         at common.UTIL_cTUNNEL.doPost(UTIL_cTUNNEL.java:151)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
         at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
         at com.ibm.ejs.container.StatelessBeanO.<init>(StatelessBeanO.java:144)
         ... 64 more
    Caused by: javax.ejb.CreateException: Unable to create EJB: UWGC_ejbVERIFYBean.
         at uw.UWGC_ejbVERIFYBean.ejbCreate(UWGC_ejbVERIFYBean.java:100)
         ... 69 more

    Since you want to use a class that is not part of your EJB environment you cant access it.
    Like you said your ELUWS14 class is part of your web project, most likely to be inside a war. And the session bean inside an ear.
    If you need that class on both environments (session beans and web components) the best approach is to create a JAR file and include it there. If it is going to change a lot then the best approach is to have it on your ear (EJB side), and your web components should call the session beans method to invoke operations.
    Your business rules should not access your presentation layer:
    EJB -> Web components Not a good idea
    EJB <-> Web components Not a good idea
    EJB <- Web components This is the way to go
    So, web components should access classes from the ear, and not viceversa. This is why containers make ear classes accesible to web component, and not in the other way

  • Process method modification

    Hi,
    process method of class Applet throw ISOException. But when it is overwritten by applet developer, i see that the "throws ISOException" is ignored. You can check this from Helloworld example.
    Hence i would like to ask when this ISOException occurs? is the exception lost if user overwrites it without stating "throws ISOException" ?
    thanks,
    Hoang Long

    ISOException is a runtime exception so does not need to be declared as thrown. It can be thrown regardless of the method signature.
    Cheers,
    Shane

  • What is Processing Method and Processing Class in Action Profile

    Dear all,
    I have defined an action for case management, to trigger an email after saving the case in Enterprise portal.
    Action is getting initiated in case document after saving, but after a while it is showing message 'Incorrect'.
    In the actions monitor report, error message showing that some problem in Processing Method.
    In my action I have maintained settings as below.
    Form name - SCMG_SMART_FORM_CASE
    Processing class - CL_SCMG_CASE_CONTEXT_PPF
    But I don't know what processing method should I give
    I could not find and values under F4 functionality.
    Please do advice me what method I can use here.
    and why we use processing method and processing class.
    your help will be highly appreciated.
    Thank you
    Raghu ram

    Hi
    DSD means Daily Salary Deduction for more check this table to understand abd DSD and the respective Processing class 77 V_T7INO1

  • How to get data from the GUIBB FORM on processing method PROCESS_EVENT?

    Hello Community,
    one more question do I have.
    I need to process some form data, that were entered by a user. One field was additional added via the method IF_FPM_GUIBB_FORM~GET_DEFINITION, so it is not in the BOL.
    I listen to an FPM_EVENT in the IF_FPM_GUIBB_FORM~PROCESS_EVENT.
    IF io_event->mv_event_id EQ 'FPM_SAVE_AND_BACK_TO_MAIN' OR io_event->mv_event_id = 'FPM_SAVE_1'.
         " Here I need to access the data from the GUINN FROM
      ENDIF.
    How can I access to the data, entered in the GUIBB FORM?
    Thank you and best regards, Christian

    Hello Jens and Christian,
    Thanks very much for your help.
    Could you help me check where the problem is ? My detail step is as below:
    1.      Structure     'S_TR_FILE' ,  which  include component  'MIME_TYPE' with data type 'String'  and 'UPLOAD_FILE' with data type 'String'.
    2.    IF_FPM_GUIBB_FORM~GET_DEFINITION
        DATA: lo_structdescr    TYPE REF TO cl_abap_structdescr.
        FIELD-SYMBOLS: <ls_new_field_descr> TYPE fpmgb_s_formfield_descr.
        lo_structdescr  ?= cl_abap_typedescr=>describe_by_name( 'S_TR_FILE' ).
        eo_field_catalog = lo_structdescr.
        APPEND INITIAL LINE TO et_field_description ASSIGNING <ls_new_field_descr>.
        <ls_new_field_descr>-name = 'MIME_TYPE'.
        <ls_new_field_descr>-label_by_ddic = 'X'.
        <ls_new_field_descr>-visibility = '01'.
        <ls_new_field_descr>-default_display_type = 'IN'.
        UNASSIGN <ls_new_field_descr>.
        APPEND INITIAL LINE TO et_field_description ASSIGNING <ls_new_field_descr>.
        <ls_new_field_descr>-name = 'UPLOAD_FILE'.
        <ls_new_field_descr>-label_by_ddic = 'X'.
        <ls_new_field_descr>-visibility = '02'.
        <ls_new_field_descr>-default_display_type = 'FU'.
        <ls_new_field_descr>-mime_type_ref = 'MIME_TYPE'.
    3.  After the OVP page is displayed, I select a xlsx file in 'UPLOAD_FILE', and click "upload" button(toolbar on the top  page) , I can't get any data from IS_DATA in flush method or CS_DATA in Get_DATA.
    Thanks& Best Regards,
    Yupeng

  • Why uses the methods in the InputProcessorSupport class

    Hi, there
    InputProcessorSupport provides some methods you can use to set/retrieve the
    name/value to the session scope or request scope. But what are the
    differences between them and the traditional Request.setAttribute() and
    Session.setAttribute() method? What are the advantages of using these new
    API?
    Thanks
    Coco

    "coco" <replyto@newsgroup> wrote:
    Hi, there
    InputProcessorSupport provides some methods you can use to set/retrieve
    the
    name/value to the session scope or request scope. But what are the
    differences between them and the traditional Request.setAttribute() and
    Session.setAttribute() method? What are the advantages of using these
    new
    API?
    Thanks
    Coco

  • Where to include connection processing methods?

    In an architecture which uses JSPs as the presentation layer, and contains objects representing each table of an Oracle database (one object per table), should the connection processing be included in the JSPs, or should it be included within the method of each database object that prepares the SQL statement?
    By connection processing, I mean methods for establishing the connection, returning a reference to it, and closing it.

    You should not include that type of logic in the JSP at all! It's usually not clean to do that. You should separate that portion of the code and put them inside the DAO perhaps...

  • WAVMUX process method

    I have written a class that uses a WAVEMux at some place. I instantiated a wavemux and called
    System.out.println("Before process");
    mux.process( buffer , trackno);
    System.out.println("After process");
    I donno what happens in the process but "After process" is not outputted.

    ISOException is a runtime exception so does not need to be declared as thrown. It can be thrown regardless of the method signature.
    Cheers,
    Shane

  • Process method of ExcelProcessor giving nullpointerexception

    I am trying to export a 10g BI Publisher report in excel format using the BIP API's.
    I am using FOProcessor (oracle.apps.xdo.termplate.FOProcessor).
    I am setting a .xdo file in the setData method of FOProcessor.
    The .xdo files contains the queries with placeholders.
    The FOProcessor expects a template in .xsl format .
    I am able to generate a .xls when i have a .rtf as template by using RTFProcessor (oracle.apps.xdo.termplate.RTFProcessor), but when i use an excel (.xls) as template and try to generate a .xls by using ExcelProcessor (oracle.apps.xdo.termplate.ExcelProcessor) .. it gives me a null pointer exception.
    I am not able to dig deeper because there is no source code available neither is there any documentation on ExcelProcessor in the API documentation.
    Can someone please guide me as to how to proceed further in this regard ?
    Any help is appreciated..
    Thanks..

    Hello Wayne,
    Apologies for the delay.
    I went through your post and tried to reproduce the issue. I was able to reproduce it. Based
    on its complexity and as it requires more in-depth analysis, your question falls into the paid support category which requires a more in-depth level of support.
    Please visit the below link to see the various paid support options that are
    available to better meet your needs. http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone
    Thanks,
    Anush

  • Problem with Runtime,process method exec and jar

    I have a application in java and it execute a executable C with method exec.
    It work well. But when I make the jar file, I have the exucatable inside of jar, but I don't know like I have to write the executable's path in the method exec(".......")
    thank you and sorry for my english

    You can't. You have to use the zip mechanism and extract it before using it.

  • Should "rv_value = 'submit'." force processing of the Setter method?.

    When new values are entered into the field 'Country' for the Account screen the code associated with this field does not seem to be run unless I press ENTER after the field is populated from the list of values.
    I have a method with the appropriate code to force it to process:
    method GET_P_COUNTRY.
    case iv_property.
    when if_bsp_wd_model_setter_getter=>fp_server_event.
      rv_value = 'submit'.
    endcase.
    endmethod
    I was under the illusion that this should force the Setter code to be executed, as though I had manually hit ENTER within the field.
    I have just placed a break point in the GET_P_COUNTRY method and can see that the rv_value field is never being set. The iv_property is never matching the value from  if_bsp_wd_model_setter_getter=>fp_server_event.
    The method is being called multiple times with the iv_property being equal to:
    'fieldType'
    'onclick'
    'tooltip'
    'DetailLink'
    'focus'
    'disableSVH'
    and if_bsp_wd_model_setter_getter=>fp_server_event having a value of 'ServerEvent'.
    What might be the best way of detecting that a value has been chosen from the pull-down list and then trigger the SET_COUNTRY method?.
    Jason

    Ah, It's not a manual input and is indeed a drop-down. The Country field is one of the SAP standard fields which, via config, displays a drop-down list of values to choose from. Once chosen it then updates the Country description.
    Within the SET_COUNTRY method I detect if the country value has been changed, and if so set a boolean variable called ZCountry_flag to 'X'. This attribite is created against the class for the context node of the Country attribute.
    Then, within the controller impl class I have entered code against the do_prepare_output method to detect whether the ZCountry_flag field is set, and then if so get data from ERP and post it into a Z-field, which is actually in a different context node, but for the same controller class. The ZCountry_flag attribute is then cleared.
    This process works fine after I have selected a country code from the drop-down and then hit ENTER, but I need a way to emulate hitting ENTER after a value is selected from the list.
    I hope that makes sense.
    I could just moved the code from the do_prepare_output of the controller class to one of the Save related methods, but then this will only update the other fields when saving.

  • Displaying a SimpleUniverse object in process(Buffer in, Buffer out) method

    Hi there,
    Does anyone know how to display a SimpleUniverse object on the display window via the process(Buffer in, Buffer out) method?
    SimpleUniverse is a class from Java3D API (com.sun.j3d.utils.universe), and process() method is from the codec interface of JMF API.
    I managed to combine a graphical object with an input video frame into a SimpleUniverse object via the process(Buffer, Buffer) method.
    However, I have problems display the resulting object in the process(Buffer, Buffer) method.
    Hope someone can help. Thanks!

    Please see
    http://forum.java.sun.com/thread.jsp?forum=28&thread=198087
    Dave.

  • Loops in method are never executed??

    Hello,
    I have a short program that I wrote to practice manipulating arrays and to
    practice modular design. The source compiles and the program executes,
    however the 2 loops in the process() method are never entered, I have tried
    do-while loops and the for loop(which was effective for the same program
    written with non-modular design). the program will execute the
    System.out.println("\nThe array values recieved are:\n");
    inside of the process(), but ignores the 2 for loops. I have purposely declared int size; without a value such as int size=0, because I am prompting the user to enter a value for the array and I pass that value into the size of the array.
    I have worked and researched for a couple of days on this. I will post the
    code below and any help would be greatly appreciated. Thanks, Jeff
    import java.io.PrintStream;
    import javabook2.*;
    public class Tester
    public static void main (String [] args)
    {  App a;
    a = new App();
    a.start();
    class App//data members of the App class
    SimpleInput input;
    String tittle;
    int size;
    double [] rainfall;
    public App()
    { //constructor
    input = new SimpleInput();
    rainfall = new double[size];
    public void start()//start method
    describe();
    process();
    public void describe()//prompts the user for info
    tittle = SimpleInput.getString("What is your name?\n");
    System.out.println("\nNice to meet you " + tittle);
    System.out.println("\nWe are now going to get some practice with arrays!");
    size = SimpleInput.getInteger("\nPlease enter the size of your array:");
    System.out.println("\nThe size array you specified is " + size);
    System.out.println("You will be prompted " + size +" times for rainfall values.");
    public void process() // array method, declared in the start() method
    for( int i =0; i<rainfall.length; i++)
    rainfall[i] = SimpleInput.getDouble("\nPlease enter rainfall amount " +(i + 1));
    System.out.println("\nThe array values recieved are:\n");
    for( int i=0; i<rainfall.length; i++)//.length is used if you dont know the size of aray
    System.out.println(rainfall );

    Add rainfall = new double[size]; as the first
    statement in your process method.Thank you all for your responses. I tried adding the above statement as the first line in the process() method and the program worked perfectly. I learned that I tried to construct the array before I even got the value from the user, and that after I got the value is when I should have just passed that value into the array size. thanks, Jeff

  • How to Modify Smartform Methods in CRM 5.0

    Hi,
       I have to modify the CRM Sales Order Smartform which requires adding new fields to the existing layout,for which I will have to modify the Method .Kindly help me and provide me with a solution to populate new data in the standard layout.
    The Class and Method are mentioned below:
    Processing Class CL_DOC_PROCESSING_CRM_ORDER
    Processing Method CRM_ORDER_EXEC_SMART_FORM
    Thanks and Regards,
    Faisal

    you need to copy this class and make the changes..in the method.
    Assign the new Z class, to the action profile.
    Rgds,
    Arjun

Maybe you are looking for