Java Bean usage

folks
i have a pageflow and i have one jsp in a pageflow and i am using a Java Bean class inside this pageflow to collect all the information from the JSP when the user submits the page, Well i want to know whether i can use this Java Bean outside of the JPF as a value object or i should use a different value object, Infact my JPF is talks to a Java Control, So i was thinking how do i get that Java Bean object inside a Java Control,
Any advices is appreciated,
Thanks
portalman

here is an idea: forget about patterns, stop worrying about doing it "the one and only correct way" and simply use your brain.
Its all personal preference and usually very much depending on the situation. You could use only one bean, but some situations will call for the creation of a separate bean that can hold additional information, or even several beans. Sometimes the framework you use already forces the creation of specific beans.
There is only one thing that will help you to determine which situation calls for which approach: experience. Until then you'll just have to make plenty of mistakes like the rest of us have at the beginning of our careers. But there is one tip I can give you that may save you some time: if you look at your code and things just aren't as simple as they should be: you have a design flaw. Usually when you keep going with it, you'll hit some sort of limitation that'll cause you to see how the code design should have been from the beginning. Eventually you'll get into that situation often enough that you'll automatically do it right from the beginning. As I said: experience.

Similar Messages

  • Query on Java Bean Usage in R12 Forms

    Hi,
    I have a scenario,
    There is a Java bean which has been working on Oracle 11i Forms for quite a while now.The bean is used to display two text fields which are populated on selecting a file using the Browse button on the right hand side.
    We have recently migrated this form to R12 and from then, the textfields dissappered.
    I have tried multiple ways, tried changing the background and foreground for the canvas, bean, fields.. I compiled the Bean using Java 1.5, so as to make it compatible to R12, but have not been able to make the fields visible.
    Anyone who could give me more insight in this regard would be of great help!!!
    Regards,
    Prathima.

    Following is the whole log :
    MSBeanArea is the name of my Java Bean.
    I have put some messages in my Java class in order to check if there is any where it is failing, but as you can see, there is no error raised :(
    ====================================================================================
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/cedarhr.gif
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.3
    Loaded image: jar:http://gmsuna.cedarhr.com:7854/forms/java/frmall.jar!/oracle/forms/icons/frame.gif
    Entered MSBeanArea
    In msbean class..
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/hr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/datalink.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/cnc_launch.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/dms.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tas.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/hsr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/system.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/chg_pass.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/re_conn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/discover.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasremid.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_help.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Find.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/keys.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/save.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/list.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/addrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_print.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/delrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/exit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/up.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/down.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmeals.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasresce.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmodr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasnomlt.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplmts.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasevent.gif
    Entered MSBeanArea
    In msbean class..
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_help.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Find.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/keys.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/save.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/list.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/addrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_print.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/delrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/exit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/up.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/down.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasqlrec.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasqlwiz.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmodr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasunkwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasdeldt.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplmts.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasaudit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tastnote.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasevlog.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/taslettr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplcpy.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasaccom.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmeals.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasresce.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmodr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasnomlt.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplmts.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasevent.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/cedarhr.gif
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.3
    Entered MSBeanArea
    In msbean class..
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/hr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/datalink.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/cnc_launch.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/dms.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tas.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/hsr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/system.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/chg_pass.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/re_conn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/discover.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasremid.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_help.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Find.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/keys.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/save.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/list.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/addrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_print.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/delrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/exit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/up.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/down.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmeals.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasresce.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmodr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasnomlt.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplmts.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasevent.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/cedarhr.gif
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.3
    Entered MSBeanArea
    In msbean class..
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/hr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/datalink.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/cnc_launch.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/dms.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tas.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/hsr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/system.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/chg_pass.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/re_conn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/discover.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasremid.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_help.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Find.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/keys.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/save.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/list.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/addrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_print.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/delrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/exit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/up.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/down.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmeals.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasresce.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmodr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasnomlt.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplmts.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasevent.gif
    Entered MSBeanArea
    In msbean class..
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_help.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Find.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/keys.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/save.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/list.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/addrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_print.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/delrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/exit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/up.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/down.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasqlrec.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasqlwiz.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmodr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasunkwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasdeldt.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplmts.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasaudit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tastnote.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasevlog.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/taslettr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplcpy.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasaccom.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    ====================================================================================
    Regards,
    Prathima.

  • Context mapping vs. Java beans

    Hi,
    I'm making a "Server" Component (Java Web Dynpro) that exposes a view to other "Client" Components (other Java Web DynPros). The Clients can insert the exposed view into their views to use the Server's services.
    The Server, obviously, has to be initialized with specific data from the Client.
    At first I thought of creating a context node in the Server, structured with all the attributes needed for its configuration, and then expose that node in the interface. In this way the Client creates a local copy of that node via node mapping and then populates its attributes with values. Once the client populates it in its wdDoInit() method, the embedded view's wdDoInit() method is called and the Server's View can initialize itself.
    Now, instead, I was considering using Java Beans (a class that wraps all the data that I've currently put in the context) because:
    1- The Client should not be able to alter the Server's configuration once it has been initialized. With context mapping the Client can alter at runtime the configuration node's content.
    2- The Server configuration has to be shared between multiple Server's views. When passing a configuration NodeElement as argument to methods shared between views, I've always the problem that I have to deal with the type of the NodeElement (the public interface of the component controller, the private interfaces of the views).
    What is the right way to do things in this scenario?
    Thanks to anyone who drops an answer,
    See you,
    Pietro
    PS. If it's unclear, let me know!

    You can implement some inteface at server,
    declare usage of this interface at client.
    then,
    you can initalise server component by getting that interface from server component,
    and calling methods with desired objects as arguments.
    other methods of this interface can be used to return server's configuration,
    so it will be shared.

  • Java Bean Model in WebDynpro

    Hi,
    I have build am Java Bean Class which I use in a WebDynpro Model. In this Java Bean Class i want to call a remote method via RMI.
         public String calculate(int aFirst, int aSecond)
              float theResult = 0;
              try {
                   Properties p = new Properties();
                   p.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
                   p.put(Context.PROVIDER_URL, "nitse06u:50004");
                   p.put(Context.SECURITY_PRINCIPAL, "Administrator");
                   p.put(Context.SECURITY_CREDENTIALS, "admin");
                   Context initialContext = new InitialContext(p);
                   Object ob = initialContext.lookup("Calculator");
                   CalculatorHome home = (CalculatorHome) PortableRemoteObject.narrow(ob, CalculatorHome.class);
                   Calculator theCalculator = home.create();
                   theResult = theCalculator.add(aFirst, aSecond);
              catch (Exception ex)
                   ex.printStackTrace();
              return new Integer(((new Float(theResult))).intValue()).toString();
    At runtime following exception occurred.
    java.lang.NoClassDefFoundError: com.sap.examples.calculator.CalculatorHome
         at com.sap.calculator.helper.CalculatorHelper.calculate(CalculatorHelper.java:109)
         at caom.sap.webdynpro.CalculatorComponentView.onActionCalculate(CalculatorComponentView.java:150)
         at caom.sap.webdynpro.wdp.InternalCalculatorComponentView.wdInvokeEventHandler(InternalCalculatorComponentView.java:144)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:100)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:299)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:635)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
    How can I add the home and remote classes to my webdynpro?
    Regards 
    Richard

    You could try to put the ejbClient.jar (the jar file that was generated in your ejb project) into the lib directory of your webdynpro project.
    Everything in the lib directory is deployed with the Webdynpro application.
    To see the lib directory you have to change to the navigator view in the IDE.
    It is right under the Project root.
    If you have Development Component Projects this is a different story. You can add the public part in your ejb DC (of type assembly) to the DC usages in the WebDynpro DC. The type assembly means then, that the jar file from the ejb project is taken and packaged with the WebDynpro DC. But watch out. For this to work you have to do a real DC build and a real DC deploy not the deploy and run function. Hope this helps.

  • Need help for traping imported java bean exception

    hi everyone
    i have imported a java bean into my forms 9i using java importer utility which tries to rename a file on a give path(bean works fine when executed through sql client).
    i have problem when called from when button pressed trigger, it throws me an ("FRM-40735 and ORA-105101 NON ORACLE EXCEPTION") error.
    i have imported java.lang.exception class and constructed an exception handler to trap java exception in the trigger
    as
    EXCEPTION
         WHEN ORA_JAVA.JAVA_ERROR then
              message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
              --check for ORA-105101
         WHEN ORA_JAVA.EXCEPTION_THROWN THEN
              ex:= ORA_JAVA.LAST_EXCEPTION;
              message('Java Exception --: '||BIException.toString(ex));
              ORA_JAVA.CLEAR_EXCEPTION;
         WHEN OTHERS THEN
              message('error :'||SQLERRM);
    when i imported java.lang.exception i did not find any wrapper pl/sql function or procedure declared to read or get the error messages except for the functions named "new" ,my exception handler failed.
    so i tried with BIException which also fails to trap the error i have no idea about BIException and its usage with in forms ,Please do help me out with this issue ASAP.
    thanks in advance
    Rgds
    yash

    Hi,
    don't understand what the BIException is supposed to do in your code, can you try
         WHEN ORA_JAVA.EXCEPTION_THROWN then
         ex := ORA_JAVA.LAST_EXCEPTION;
         message('Exception: '||Exception_.toString(ex));
    where Exception_ is the imported java.lang.Exception package.
    Frank

  • What is the difference between java direct or java bean in JSP?

    What is the difference if I use java code directly in JSP or use java bean in JSP?
    Which class to use for receiving the passed parameter from html or java script? Any difference for java code and java bean in the way receiving the passed data?
    How can I pass string from jsp to html or java script?

    it's generally accepted as better design to separate presentation from logic. meaning, the java code in the jsp should be used to support displaying data, as oppsoed to implementing the application - like database access, etc.
    when the logic is separated from the presentation, it allows you to reuse logic components within several jsp pages.
    if you decide to change the presentation layer in the future (to support wap, for example) you don't need to rewrite your entire application, since the "guts" of the application is outside of the jsps.
    it is also a good idea to separate your business logic from your data layer. adding a "buffer zone" between these layers helps in the same manner as in separating presentation from logic. if you're using flat files for storage now, upgrading to a database wouldn't require rewriting all your business logic, just the methods which write out the data to a file, for example.
    once you feel comfortable with separating the various layers, check out the struts framework at http://jakarta.apache.org/
    to answer your second question, to get parameters passed in from HTML forms, use ServletRequet's getParameter() method.
    in tomcat:
    <% String lastName = request.getParameter( "lastname" ); %>
    to answer your third question: when displaying the HTML from withing a jsp, print out the string to a javascript variable or a hidden form element:
    <% String firstName = "mike"; %>
    <input type="hidden" name="firstname" value="<%= firstName %>">
    <script language="javascript1.2">
    var firstName = "<%= firstName %>";
    </script>
    this jsp results in the following html:
    <input type="hidden" name="firstname" value="mike">
    <script language="javascript1.2">
    var firstName = "mike";
    </script>

  • Java Bean Connectivity and Closing Connections (XI 3.0)

    Hi guys,
    We have existing Java Beans that we would like to use with Crystal Reports. Our current Java beans return a disconnected GridModel and explicitly close the connection immediately after so that they can be returned to the connection pool (Oracle).
    Once we modified these beans to return ResultSets we found that closing the connection also closes all the associated ResultSets and Statements.
    What is the best practice here?
    Modify the Java bean to close the connection in the finally block?
    Will Crystal clean up after itself?
    I also see there is something called a CachedRowSet which is disconnected:
    http://java.sun.com/j2se/1.5.0/docs/api/javax/sql/rowset/CachedRowSet.html
    Is this supported by Crystal?
    Thanks,
    Kevin D Lee =)

    Hello Kevin,
    Enterprise XI 3.0 CRConfig.xml points to Java JRE 1.5 provided with the install, so you should be ok with the CachedRowSet. 
    It's used by other customers for disconnected operation.
    Since you're going to Oracle, you'd likely encounter issues mapping Oracle fields to POJO property types.
    Furthermore, POJO Factory libraries that were shipped with Crystal Reports XI Release 2 aren't shipped with Enterprise XI 3.0, so you'd not find that an out-of-the-box option. 
    Another alternative to CachedRowSet is to define callback method in your JavaBeans class that Crystal will call when it's done with the data source. 
    This has been implemented in XI 3.0 (track ADAPT00877915) - excerpt from the track note:
    <JavaBeans>
        <CacheRowSetSize>100</CacheRowSetSize>
         <JavaBeansClassPath>c:\javabeans\</JavaBeansClassPath>
         <CallBackFunction>CrystalReportsLogoff</CallBackFunction>
    </JavaBeans>
          Customer can configuration the <CallBackFunction/> to let CR know
          which function should be invoked when loging off.
    Advantage of CachedRowSet is that you can immediately close it after you've read all the data, disadvantage would be the default implementation stores all data in memory.
    Advantage of the callback method is that it would use the JavaBean you've supplied (and not load all data immediately in memory), but callback won't be called immediately, but only after the report is done with.
    Sincerely,
    Ted Ueda

  • Problem with java beans and jsp on web logic 6.0 sp1

              HI ,
              I am using weblogic6.0 sp1.
              i have problem with jsp and java beans.
              i am using very simple java bean which stores name and email
              from a html form.
              but i am getting following errors:
              Full compiler error(s):
              D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              cannot resolve symbol
              symbol : class userbn
              location: class jsp_servlet._savename2
              userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              ^
              D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              cannot resolve symbol
              symbol : class userbn
              location: class jsp_servlet._savename2
              userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              ^
              D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:94:
              cannot resolve symbol
              symbol : class userbn
              location: class jsp_servlet._savename2
              ud = (userbn) java.beans.Beans.instantiate(getClass().getClassLoader(),
              "userbn"); //[ /SaveName2.jsp; Line: 7]
              ^
              3 errors
              in which directory should i place java bean source file(.java file)
              here is my jsp file:
              <%@ page language = "java" contentType = "text/html" %>
              <html>
              <head>
              <title>bean2</title>
              </head>
              <body>
              <jsp:usebean id = "ud" class = "userbn" >
              <jsp:setProperty name = "ud" property = "*" />
              </jsp:usebean>
              <ul>
              <li> name: <jsp:getProperty name = "ud" property = "name" />
              <li> email : <jsp:getProperty name = "ud" property = "email" />
              </ul>
              </body>
              <html>
              here is my bean :
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              import java.io.*;
              public class userbn implements Serializable
                   private String name ;
                   private String email;
                   public void setName(String n)
                        name = n;
                   public void setEmail(String e)
                        email = e;
                   public String getName()
                        return name;
                   public String getEmail()
                        return email;
                   public userbn(){}
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              pls help me.
              Thanks
              sravana.
              

              You realy can do it like Xiang says, but the better way is to use packages. That's
              the way BEA is designed for. If you use packages you can but your bean classes
              in every subfolder beneath Classes. Here for example we have the subfolders test
              and beans:
              You have to declare the package on top of your Bean Source Code:
              package test.beans;
              In your JSP you don't need the import code of Xiang. You only have to refer the
              path of your bean class:
              <jsp:useBean id="testBean" scope="session" class="test.beans.TestBean" />
              There are some other AppServers that only can deploy Java Beans in packages. So
              if you use packages you are always on the right side.
              ciao bernd
              "sravana" <[email protected]> wrote:
              >
              >Thank you very much Xiang Rao, It worked fine.
              >Thanks again
              >sravana.
              >
              >"Xiang Rao" <[email protected]> wrote:
              >>
              >><%@ page import="userbn" language = "java" contentType = "text/html"
              >>%> should
              >>work for you.
              >>
              >>
              >>"sravana" <[email protected]> wrote:
              >>>
              >>>HI ,
              >>>
              >>>I am using weblogic6.0 sp1.
              >>>
              >>>i have problem with jsp and java beans.
              >>>
              >>>i am using very simple java bean which stores name and email
              >>>
              >>>from a html form.
              >>>
              >>>but i am getting following errors:
              >>>
              >>>________________________________________________________________
              >>>
              >>>Full compiler error(s):
              >>>D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              >>>cannot resolve symbol
              >>>symbol : class userbn
              >>>location: class jsp_servlet._savename2
              >>> userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              >>> ^
              >>>D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              >>>cannot resolve symbol
              >>>symbol : class userbn
              >>>location: class jsp_servlet._savename2
              >>> userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              >>> ^
              >>>D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:94:
              >>>cannot resolve symbol
              >>>symbol : class userbn
              >>>location: class jsp_servlet._savename2
              >>> ud = (userbn) java.beans.Beans.instantiate(getClass().getClassLoader(),
              >>>"userbn"); //[ /SaveName2.jsp; Line: 7]
              >>> ^
              >>>3 errors
              >>>
              >>>____________________________________________________________
              >>>
              >>>in which directory should i place java bean source file(.java file)
              >>>
              >>>here is my jsp file:
              >>>--------------------------------------------------------
              >>>
              >>><%@ page language = "java" contentType = "text/html" %>
              >>><html>
              >>><head>
              >>><title>bean2</title>
              >>></head>
              >>><body>
              >>><jsp:usebean id = "ud" class = "userbn" >
              >>><jsp:setProperty name = "ud" property = "*" />
              >>></jsp:usebean>
              >>><ul>
              >>><li> name: <jsp:getProperty name = "ud" property = "name" />
              >>><li> email : <jsp:getProperty name = "ud" property = "email" />
              >>></ul>
              >>></body>
              >>><html>
              >>>
              >>>-------------------------------------------------------------
              >>>
              >>>here is my bean :
              >>>
              >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              >>>
              >>>import java.io.*;
              >>>
              >>>public class userbn implements Serializable
              >>>{
              >>>
              >>>     private String name ;
              >>>
              >>>     private String email;
              >>>
              >>>     public void setName(String n)
              >>>     {
              >>>
              >>>          name = n;
              >>>     }
              >>>
              >>>     public void setEmail(String e)
              >>>     {
              >>>
              >>>          email = e;
              >>>     }
              >>>
              >>>     public String getName()
              >>>     {
              >>>
              >>>          return name;
              >>>     }
              >>>
              >>>     public String getEmail()
              >>>     {
              >>>
              >>>          return email;
              >>>     }
              >>>
              >>>     public userbn(){}
              >>>}
              >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              >>>
              >>>pls help me.
              >>>Thanks
              >>>sravana.
              >>>
              >>
              >
              

  • Crystal report generation with Java Bean AS  Data source on RAD

    <p>Hi,</p><p>&#160;</p><p>          Our company wants report generation in IBM RAD 7.0  using crystal reports with a Java Bean as data source. i HAVEN&#39;T FOUND ANY ARTICLES TO WORK ON RAD. Any inputs appreciated..</p><p>&#160;</p><p>Thanks,</p><p>Manju</p>

    Look for Java POJO in the doc, i'm using RAD 7.0 and it's working like RAD 6.0

  • How to make view Java Bean as .ocx file.

    Hi All,
    I want to use a visual Java Bean in Visual basic. So that I can modify all the bean properties as modify properties in a ocx file.
    I used ActiveX Com bridge downloaded from Sun's site. But the packager
    makes a .tlb file .
    This file can only be added as a reference in visual basic but not as a ActiveX control. Is there any way out to do that???
    Thanks & regards.
    Nimesh

    The packager creates a registry file and a tlb file.
    After registering this .reg file, java bean can be used as an ActiveX control.
    From within Visal Basic, select the "Tools" menu and "Custom Controls" item and add the Bean control that was generated.
    Avinash.

  • Urgent : java bean having bidirectional one to many relationship

    Hi,
    We have complex requirement in our application.
    We need to copy java bean having bidirectional one to many relationship to another javabean having bidirectional one to many relationship..
    E.g
    Class Basket1 {
    public String color;
    pubic String type;
    public List<Basket1> basketList = new ArrayList()
    Class Basket2 {
    public String color;
    pubic String type;
    public List<Basket2> basketList = new ArrayList()
    We need to exact copy Basket1 to Basket2. We are in trouble to copy List of child because we do not have how many child Basket1 have of same type..
    Can someone help us how we can implement such kind of complex object bidirectional one to many relationship??

    I can't see anything bidirectional about these relationships. What I can see is a couple of BasketN classes that look identical so I don't know why they both exist, and they both contain lists of themselves as members, which suggests some kind of tree structure. Nothing bidirectional there. I can see tat these things can form circular object graphs but I don't see why you would want to do that.
    We need to exact copy Basket1 to Basket2And I don't know what that means. Please explain.

  • How to read the current value of hyperlink java bean in multiple record,

    I have used a java bean for a multi-record block item. On When-new form-instance I m using fbean package as follows
    FBean.Register_Bean(hHyperlink,1,'oracle.forms.demos.beans.Hyperlink');
    FBean.Invoke(hHyperlink,1,'setURL','Abc_Entry');
    FBean.Invoke(hHyperlink,1,'setLabel','Abc Document');
    FBean.Enable_Event(hHyperlink,1,'actionListener',true);
    You can see that I am using the number 1 which is hardcoded,for which I will replace with a incremental loop and remove it. Now when I m using the When-Custom-Item-Event, I want to read the URL for the current instance.
    I m using
    vcEventData := Fbean.Invoke_Char('CONTROL.HYPERLINK',2,'getURL');
    to get the second record value , where in I want to avoid the hardcoded 2 or 1
    Thank you

    I recommend you these forums for your question:
    Forums Home » Oracle Technology Network (OTN) » Products » Database » JVM
    Java in the Oracle Database
    Forums Home » Oracle Technology Network (OTN) » Technologies » Java » Java Server Pages (JSP)
    Java Server Pages (JSP)
    Forums Home » Oracle Technology Network (OTN) » Technologies » Java
    http://forums.oracle.com/forums/index.jsp?cat=24
    Joel Pérez

  • Need Help-How Store the input parameter through java bean

    Hello Sir,
    I have a simple Issue but It is not resolve by me i.e input parameter
    are not store in Ms-Access.
    I store the input parameter through Standard Action <jsp:useBean>.
    jsp:useBean call a property IssueData. this property exist in
    SimpleBean which create a connection from DB and insert the data.
    At run time servlet and server also show that loggging are saved in DB.
    But when I open the table in Access. Its empty.
    Ms-Access have two fields- User, Password both are text type.
    Please review these code:
    login.html:
    <html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="tmp" >
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>LoginServlet.java:
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException{
    try
    String user=request.getParameter("user");
    String pass=request.getParameter("pass");
    co.SimpleBean st = new co.SimpleBean();
    st.setUserName(user);
    st.setPassword(pass);
    request.setAttribute("user",st);
    request.setAttribute("pass",st);
    RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
    dispatcher1.forward(request,response);
    catch(Exception e)
    e.printStackTrace();
    }SimpleBean.java:
    package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean {
    private String user="";
    private String pass="";
    private String s="";
    public String getUserName() {
    return user;
    public void setUserName(String user) {
    this.user = user;
    public String getPassword() {
    return pass;
    public void setPassword(String pass) {
    this.pass = pass;
    public String getIssueData() //method that create connection with database
    try
    System.out.println("Printed*************************************************************");
    getUserName();
    getPassword();
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("Loading....");
    Connection con=DriverManager.getConnection("jdbc:odbc:simple");
    System.out.println("Connected....");
    PreparedStatement st=con.prepareStatement("insert into Table1 values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String User=getUserName();
    st.setString(1,User);
    String Password=getPassword();
    st.setString(2,Password);
    st.executeUpdate();
    System.out.println("Query Executed");
    con.close();
    s=  "Your logging is saved in DB ";
    System.out.println("Your logging is saved in DB *****************");
    return(s);
    catch(Exception e)
    e.printStackTrace();
    return "failed";
    }submit.jsp:
    This is Submit page
    <html><body>
    Hello
    Student Name: <%= ((co.SimpleBean)request.getAttribute("user")).getUserName() %>
    <br>
    Password: <%= ((co.SimpleBean)request.getAttribute("pass")).getPassword() %>
    <br>
    <jsp:useBean id="st" class="co.SimpleBean" scope="request" />
    <jsp:getProperty name="st" property="IssueData" />
    </body></html>web.xml:<web-app>
    <servlet>
    <servlet-name>one</servlet-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>one</servlet-name>
    <url-pattern>/tmp</url-pattern>
    </servlet-mapping>
    <jsp-file>issue.jsp</jsp-file>
    <jsp-file>submit.jsp</jsp-file>
    <url-pattern>*.do</url-pattern>
    <welcome-file-list>
    <welcome-file>Login.html</welcome-file>
    </welcome-file-list>
    </web-app>Please Help me..Thanks.!!!
    --

    Dear Sir,
    Same issue is still persist. Input parameter are not store in database.
    After follow your suggestion when I run this program browser show that:i.e
    This is Submit page Hello Student Name: vijay
    Password: kumar
    <jsp:setProperty name="st" property="userName" value="userValue/> Your logging is saved in DB
    Please review my code.
    login.html:
    {code}<html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="tmp" >
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>{code}
    LoginServlet.java:
    {code}import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException{
    try
    String userValue=request.getParameter("user");
    String passValue=request.getParameter("pass");
    co.SimpleBean st = new co.SimpleBean();
    st.setuserName(userValue);
    st.setpassword(passValue);
    request.setAttribute("userValue",st);
    request.setAttribute("passValue",st);
    RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
    dispatcher1.forward(request,response);
    catch(Exception e)
    e.printStackTrace();
    }{code}
    SimpleBean.java:
    {code}package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean {
    private String userValue="";
    private String passValue="";
    private String s="";
    public String getuserName() {
    return userValue;
    public void setuserName(String userValue) {
    this.userValue = userValue;
    public String getpassword() {
    return passValue;
    public void setpassword(String passValue) {
    this.passValue= passValue ;
    public String getissueData() //method that create connection with database
    try
    System.out.println("Printed*************************************************************");
    getuserName();
    getpassword();
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("Connection loaded");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@VijayKumar-PC:1521:XE","SYSTEM","SYSTEM");
    System.out.println("Connection created");
    PreparedStatement st=con.prepareStatement("insert into vij values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String userName=getuserName();
    st.setString(1,userName);
    String password=getpassword();
    st.setString(2,password);
    st.executeUpdate();
    System.out.println("Query Executed");
    con.close();
    s= "Your logging is saved in DB ";
    System.out.println("Your logging is saved in DB *****************");
    return(s);
    catch(Exception e)
    e.printStackTrace();
    return "failed";
    }{code}
    submit.jsp:
    {code}This is Submit page
    <html><body>
    Hello
    Student Name: <%= ((co.SimpleBean)request.getAttribute("userValue")).getuserName() %>
    <br>
    Password: <%= ((co.SimpleBean)request.getAttribute("passValue")).getpassword() %>
    <br>
    <jsp:useBean id="st" class="co.SimpleBean" scope="request" />
    <jsp:setProperty name="st" property="userName" value="userValue/>
    <jsp:setProperty name="st" property="password" value="passValue"/>
    <jsp:getProperty name="st" property="issueData" />
    </body></html>web.xml:<web-app>
    <servlet>
    <servlet-name>one</servlet-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>one</servlet-name>
    <url-pattern>/tmp</url-pattern>
    </servlet-mapping>
    <jsp-file>submit.jsp</jsp-file>
    <url-pattern>*.do</url-pattern>
    <welcome-file-list>
    <welcome-file>Login.html</welcome-file>
    </welcome-file-list>
    </web-app>Sir I can't use EL code in jsp because I use weblogic 8.1 Application Server.This version are not supported to EL.
    Please help me...How store th input parameter in Database through Java Bean                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to call a .jar file from a java bean?

    any body knows how to call a .jar file from a java bean?

    Crosspost!
    http://forum.java.sun.com/thread.jspa?messageID=4349619

  • WDVisibility type paramter in Java Bean(Web Dynpro DC in CE 7.1)

    Hi All,
    I need to set a WDVisibility type paramter in a java bean and i am able to do so.It imports com.sap.tc.webdynpro.progmodel.api.WDVisibility class .
    The problem is when i am creating a Java Bean model  it is not allowing me to select the Java bean class it gives an error message" Invalid Class : No class files found for JavaBean : com/sap/tc/webdynpro/progmodel/api/WDVisibility".
    The java Bean class exists in Web Dynpro DC>src folder.
    Any Pointers?
    Regards
    Avinash

    Hi Ondrej ,
    Refer the above links to convert the component of the first dc as a public part.
    Then declare the methods which are written in the component controller of the first DC in the interface controller with the same signature.( When method is called automatically component controller method is called)
    In second dc in component controller properties tab add the reference of the first dc.
    Then access the method in second dc as
    wdthis.wdget<UsedComponent name>Interface.methodname();
    Thanks & Regards,
    Ardhendu

Maybe you are looking for

  • Med Rec medrec tutorial 10 deployments-- EJB Modules EJB is not shown

    This note adds missing steps in the Med Rec (medrec) Tutorial 10 The tutorial shows how to use EJBGEN to generate EJB classes (incl java source) from .ejb files. Unfortunately it is missing a few key details. These are described below. Many thanks to

  • How to print lever arch spine labels on HP Officejet Pro 8600

    how do you print level arch spine labels on HP Officejet Pro 8600?

  • Sharp 4K Display 60Hz Mac Pro Bugs

    Mac Pro (latest generation) 8x3.0Ghz + Dual 6GB AMD D700's 2x Sharp PN-K321 4K Display When the display is put in MST mode (multi-stream transfer) it does not allow for rotation to portrait mode (270*).  As far as I know the drivers allow for this an

  • Project Code for Variables

    Hello All, I am able to use Variables in procedures and open tools ,interfaces etc. Variables #VariableName works well. But I was reading that the standard is to use #ProjectCode.VariableName . Whenever we try to use #ProjectCode.VariableName our pro

  • Keep footer div at the bottom of the page

    ok, really simple im sure, il i want to do is keep a div at the bottom of the page.. not the browser window so it can always be seen, but at the bottom of all the content, what information would i apply to this div? ive tried top;100% minus the heigh