Create HTTPConnection using javabean?

Hi All,
I hav few questions about jsp...
1. If there are 2 files jsp. A & B. A send params to B. Is that the response of B (such as HTTP200, etc) r sent to A automatically after B received the params?
2. What if A send params to B. & The params r processed through 3 steps in B. There r validation, count, & saving. Can B send a response to A after the 2nd process?
3. Can A wait for a response?How can i do that?
4. if A use a javabean, can the javabean add function of creating HTTPConnection?
Hope there will be gud advices from u guys...
Thx b4 in advance...

Ok...ill try to make it clearly...
I have four questions about jsp...
1. If there are two files jsp.they are A & B. A send
params to B. Is that the response of B (such as
HTTP200, etc) are sent to A automatically after B
received the params?Are you talking about forwarding between JSP pages?
2. What if A send params to B. & That params are
processed through 3 steps in B. There r validation,
count, & saving. Can B send a response to A after the
2nd process?Are you talking about JSP forwarding?
3. Can A wait for a response?How can i do that?Are you talking about JSP forwarding?
4. if A use a javabean, can that javabean add
function of creating HTTPConnection?A bean can do whatever it likes.

Similar Messages

  • Problem Creating Portles Using JAVABEANS

    I have an application that uses JSP and JavaBeans that works perfectly outside of a portlet. When implementing it as a portlet it is unable to find the JavaBeans.
    I have stored the JavaBeans in the default /WEB-INF/classes directory. The JSP files are in their own directory.
    Request URI:/jnetjsp/adminusersearch/AdminUserSearch.jsp
    Exception:
    oracle.jsp.parse.JspParseException: Line # 28, Error: Unable to find class for bean: UserResults defined by tag with class: adminusersearch.UserSearchResults
    9iAS 1.0.2.2.0

    You need to make sure that your JavaBean classes are on the classpath. Not sure why you mention the WEB-INF directory, it doesn't exist under JServ.
    As far as I remember you need to edit the wrapper.classpath entry in the jserv.properties file. For example, if you have your beans in a the mybeans.jar file, you'd need to create an entry like this:
    wrapper.classpath=D:\jpdk\lib\mybeans.jarand copy mybeans.jar to the D:\jpdk\lib folder.
    Hope this helps.

  • Using JavaBeans in a JSP Page

    I wan't to know the advantages and disadvantages of using JavaBeans in a JSP page.
    Like for example general traditional approach for a database connection
    is to create a connection and access the database from that and close the connection
    at the end of the page, instead of the If I use a common connection bean for making connections,
    is that suggestable and then when should i close the connection then.
    One good application of JavaBeans is using a Set and Get methods for form fields in
    a registration form to get back the values.
    So may i know how best can we use the JavaBeans other than this application.
    ThanX in advance,
    kiran
    [email protected]

    I believe putting processing and query code in the JavaBean was one of the reasons for putting JavaBeans support in JSP in the first place. The original idea was to use the setXXX methods to populate the bean's data from the posted form, then do the processing (or database query), then use the getXXX methods to display the bean's data.
    Efficiency-wise, it's exactly the same as putting all the code in-line in the JSP page (actually, it might be a bit slower, because of the reflection required to do it.) Code-wise though, it makes the JSP easier to read.
    Of course, we have EJBs now too, which tie very closely and can match database queries almost one-to-one, one way to incorporate these is inside the JavaBean you reference from the JSP, another way from a servlet you redirect the JSP to, etc...

  • Dynamic UI using JavaBeans?

    Hi,
    Several years ago I created a Windows application where the complete UI was dynamically created depending upon the ActiveX components that the container application found registered on the system.
    Does anyone know if this kind of thing can be achieved using JavaBeans ?
    I have a feeling that it can, but I cannot find any documentation or samples of this kind of thing being done.
    To this end I have a couple of questions. Any help would be greatly appreciated.
    1. Does anyone know how a Java container client application can detect which beans are "registered" on the system.
    2. Is there even a "registration" even for beans ?
    3. How about "un-registering" beans ?
    4. Given that a registered bean CAN be detected by the application, can the bean make modifications to the container, for example, adding menu and toolbar items specific to that bean?
    Thanks
    FC

    Several years ago I created a Windows application
    where the complete UI was dynamically created
    depending upon the ActiveX components that the
    container application found registered on the system.Arranged in what manner? If I had a Button ActiveX component "registered" on my system, how would it know that my current UI needed ten buttons? How would it lay them out in the panel?
    Does anyone know if this kind of thing can be achieved using JavaBeans ?Registration = Windoze registry? There's the Preferences API.
    I have a feeling that it can, but I cannot find any documentation or samples of this kind of thing being
    done.
    To this end I have a couple of questions. Any help
    would be greatly appreciated.
    1. Does anyone know how a Java container client application can detect which beans are "registered" on
    the system.I'd be able to answer if I understood what "registered" really meant.
    2. Is there even a "registration" even for beans ?See previous answer.
    3. How about "un-registering" beans ?See previous answer.
    4. Given that a registered bean CAN be detected by the application,
    can the bean make modifications to the
    container, for example, adding menu and toolbar items
    specific to that bean?I don't see how a Bean can know how to modify ten completely different containers. A single registration can't possibly handle every disparate UI that comes along.
    You sound like you need something along the lines of a UIBuilder class that could take some kind of descriptor and create a UI panel from it. That descriptor could be held in a properties or XML descriptor file as well as a registry. The UIBuilder would have to read the descriptor and pump out the UI panel that you wanted.
    Perhaps I don't understand the Windoze registry that you're talking about, but I don't see how it can possibly handle arbitrarily complex UIs.
    Somebody else was just asking about this kind of thing yesterday. I'll see if I can find the link.

  • Use JavaBean in Tomcat4.0

    Hi all!!!!
    I wanna use JavaBeans in my JSP page, but I dont know how to locate my beans.
    I put my jsp-page in the ..\webapps\ROOT\, and I try to put my beans in the \webapps\ROOT\WEB-INF\classes\.But I got the following message...
    org.apache.jasper.JasperException: Unable to compile class for JSPerror: File E:\tomcat\webapps\ROOT\WEB-INF\classes\user\Select.class does not contain type user.Select as expected, but type Select. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
    Plz help me....thanx alot!!!!!!

    For this example the web root is at c:\web, and the bean class file is SimpleBean.java and the package name is FoobarPackage.
    Step one, put your java file/s into the package. At the top of your java file put "package FoobarPackage;"
    Step two, put all your java files at c:\web\WEB-INF\classes\FoobarPackage\
    Step three, compile.
    Step four, restart tomcat.
    Step five, make a jsp page and place it at c:\web. In your jsp page to load the bean you place the following in your page.
    <jsp:useBean id="TheBean" scope="whatever you want" class="FoobarPackage.SimpleBean" />
    Step six, create a context mapping in your tomcat config file to c:\web to host your files.
    Step seven, load the page in your browser.
    -S-

  • How to use javabean

    can anyone can have a easy understand explain for how to use javabean?
    for example, if i am going to have a bean named "Dog", which will can speak "blah blah blah". what is the procedure to get it work?
    thanks

    Hi.
    I'm not quite sure what you're asking, but I'll give it a shot at a simple explanation. Let's say you create a Dog bean. A Bean is really just a Class that follows some general rules and naming conventions to make interpreting of the exported interface easier.
    The Java Beans specification says that the Dog bean should be serializable - That is, you can modify the values in the fields of Dog (i.e., you could change it's breed, or it's name, or it's owner, or what ever other fields you have), and write it out to a file, and load it back at a later time, and these fields would still have memory of the changes you made earlier. This is called persistance.
    Further to this, a bean declares properties as fields xxx that have matching methods getXxx and setXxx. Let's say you wish to have several dogs, one that speaks "arf", one that says "ruff", another that says "woof", one that says "yip yip, one that says "bow wow", and finally, one that says "yo quiero Taco Bell". Then, you would have a property called word that would be defined in the following way:
    private String word;
    public void setWord(String word) { this.word = word; }
    public String getWord() { return word; }Then, using your favourite Bean box or design tool, you would create several dogs, and set the word differently for each one.
    The code for speak would be this:
    public void speak() { System.out.println(word); }The benifit provided using the beans conventions of getXxx and setXxx allows the Bean Box to determine that there is a property called word, and that you can set this property to allow you to change the word that is spoken without overwriting the speak method.
    I'll say this again, becuase this is important: Anything that can be done with beans can be done without. The advantage to using beans is that a tool like a bean box, or the Introspector class, can dynamically determine which fields provided by a class are intended for use by another external class, AND which methods are used to set or retrieve the values of those fields.
    For example, you could define the same property with the following code:
    public String word;
    public void changeToNewWord(String word) { this.word = word; }
    public String whatDoesItSay() { return word; }The problem with this code, however, is that an introspector or bean box would have ABSOLUTELY NO IDEA that the changeToNewWord method is the method that should be called to set the property word.
    That's the basic idea. It goes much further than this, as you can then define events, such as the SawAnotherDogEvent that cause the bean to call the method speak. Also, you could create a custom bean info class that would tell the introspector that the changeToNewWord method was the setter method for word. The whole point is to provide extra information about you're class so that it can be recognized by some other coding as certain types of fields.
    To find out more, there is an excellent tutorial for Beans on the java developer website (java.sun.com), and the Beans specification is also there. Hope this helps you out. Good Luck!

  • How to use JavaBeans when the number of inputs is variable

    I have a problem. The number of textboxes in a HTML form is read from a database. How can I avoid reentry from users? Is it possible to use JavaBeans or may be there is some other way? Thanks in advance.

    Well, I meant that when a Jsp page is generated the number of textboxes is read from the database. So it it is apriory unknown. But I have found a solution to this problem: create a bean of String type for each textbox. Thanks.

  • Use javaBeans with Microsoft ActiveX Components

    Hello,
    I would like to use javaBeans with Microsoft ActiveX Components.
    As I start the Packager and my jdk is installed in c:\jdk1.4
    I set the following command
    "c:\jdk1.4:bin\java.exe -cp jre\lib\rt.jar;jre\lib\jaws.jar
    sun.beans.ole.Packager"
    and receive error messages "Exception in thread main
    java.lang.NoClassDeFoundErrror:sun/beans/ole/Packager"
    Please give me some suggestions.
    Thanks a lot.

    Hello Twupack,
    Thank you provide me the information.
    If I just want to use javaBeans to create Microsoft ActiveX Components
    used in VBScript.
    sdk v1.4.2 is not suitable,right?
    Any Suggestion?
    Thank you very much.

  • Error while creating stock using tcode: MB1C

    Error while creating stock using tcode: MB1C
    The Error is: Check table T004F:entry G006 does not exist

    Hi ,
    Please check the FSV (field status variant) for your company code in OBY6 .
    then go to transaction code OB14 --> enter the FSV --> Check if field status group G006(Material account) is maintained there or not.
    if not please maintain it.
    Thanks & Regards
    Anshu

  • Logical error in creating tables using db link in solaris

    Hi,
    While creating table using the syntax create table newtab...as select * from tab@dblink .. I am facing a problem. The newtab table created is having a structure different (from datalength point of view of varchar2 and char datatypes) from the source. The data length is getting tripled i.e. if a column a is varchar2(20) in tab then it is becoming --- a varchar2(60) in newtab. This is happening in solaris environment when the two databases are in 2 different servers. Please let me know if there are any patches to resolve the problem.
    Thanks
    Arnab

    ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
    The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link?

  • How to save report in PersonalCategory  after creating it using java panel?

    Hi,
    Anybody knows How to save report in PersonalCategory  after creating it using java panel?
    I dont want to save it in public folder. I want to save report (webi) in user's personal category.
    can anybody send me source code?
    It will help me a lot.
    Thanks in advance
    Amol Mali

    Hi teda,
    i'm assuming that you have seen my post that i did successfuly save report in user's personal category.
    Actually the report is created in webi java panel using RE SDK and  is saved in Report Sample Folder then i'm saving it in user's personal category by following code
    string query = "Select SI_PERSONAL_CATEGORIES From CI_INFOOBJECTS Where "
                         + "SI_INSTANCE=0 And SI_ID=" + reportID;
                    InfoObjects infoObjects = infoStore.Query(query);
                    InfoObject infoObject = infoObjects[1];
                    Webi wreport = (Webi)infoObject;
                    ObjectRelativeIDs personalIDs = wreport.PersonalCategories;
                /personalIDs.Add(Convert.ToInt32(categoryID));
                   infoStore.Commit(infoObjects);
    But the report is presents in the Folder also and in user's personal category also.
    I dont want the report to be in the folder (Report Sample) if i saved it in user's personal category.
    How can i do that?
    any idea.
    Please help me.
    Thanks in advance
    Amol Mali
    Edited by: amol mali on Jan 9, 2009 7:55 PM

  • I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

  • Why Dynamic Parameter is not working, when i create report using stored procedure ?

    Post Author: Shashi Kant
    CA Forum: General
    Hi all
    Why Dynamic Parameter is not working, when i create report XI using stored procedure ?
    Only i shaw those parameters which i used in my stored procedure, the parameter which i create dynamic using stored procedure
    is not shown to me when i referesh the report for viewing the results.
    I have used the same procedure which i mention below but can not seen the last screen which is shown in this .
    ============================================================================================
    1. Select View > Field Explorer2. Right-click on Parameter Fields and select New from the right-click menu.3. Enter u201CCustomer Nameu201D as the name for your parameter4. Under u201CList of Valuesu201D select u201CDynamicu201D5. Under the Value column, click where is says u201Cclick here to add itemu201D and select Customer Name from the drop-down list. The dialog shown now look like the one shown below in Figure 1. Click OK to return to your report design.
    Dynamic Parameter Setup6. Next, select Report > Select Expert, select the Customer Name field and click OK.7. Using the drop-down list beside select u201CIs Equal Tou201D and using the drop-down list, select your parameter field (it should be the first field). 8. Click OK to return to your report design and see the parameter dialog.The parameter dialog will appear and show you a dynamic list of values that is updated each time your run your report. It couldnu2019t be easier! In our next tutorial, we will be looking at how to use this feature to create cascading parameter fields, where the values are filtered by the preceding selection.
    Dynamic Parameters in Action
    My question is that whether dynamic parameter is working with storedprocedure or not.
    When i added one table and try to fetch records using dyanmic prameters. after that i am not be able to find the dynamic parameter option when i referesh my report.
    One more thing when i try the static parameter for my report, the option i see when i referesh the screen.
    Please reply soon , it's urgent
    Regards
    shashi kant

    Hi Kishore,
    I have tested the issue step by step by following you description, while the first issue works well in my local environment. Based on my research, this can be caused by the lookup expression or it indeed return Male value based on the logic. If you use the
    expression below, it will indeed only return the Male record. So please try to double-check the record in the two datasets and the expression in your environment:
    =lookup(first(Fields!ProgramID.Value,"DataSet1"),Fields!ProgramID.Value,Fields!Gender.Value,"DataSet2")
    As to the second issue, please try to use the following expression:
    =Count(Lookup(fields!ProgramID.value,fields!ProgramID.value,fields!Gender.value,"DataSet2"))
    Besides, if this issue still exist, in order to trouble shoot this issue more efficiently, could you please post both the .rdl  file with all the size properties to us by the following E-mail address?  It is benefit for us to do further analysis.
    E-mail: [email protected]
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Creating Report using EPM Functions with Dynamic Filters

    Hi All,
    I am new to BPC, In BPC 7.5 i seen like we can generate EPM report using EVDRE function very quickly and easy too. Is the same feature is existing in BPC 10.0 ? if no how can we create EPM reports using EPM Functions with Dynamic Filters on the Members of the dimension like in BPC 7.5.
    And i searched in SDN, there is no suitable blogs or documents which are related to generation of Reports using EPM Functions. All are described just in simple syntax way. It is not going to be understand for the beginners.
    Would you please specify in detail step by step.
    Thanks in Advance.
    Siva Nagaraju

    Siva,
    These functions are not used to create reports per se but rather assist in building reports. For ex, you want to make use of certain property to derive any of the dimension members in one of your axes, you will use EPMMemberProperty. Similary, if you want to override members in any axis, you will make use of EPMDimensionOverride.
    Also, EvDRE is not replacement of EPM functions. Rather, you simply create reports using report editor (drag and drop) and then make use of EPM functions to build your report. Forget EvDRE for now.
    You can protect your report to not allow users to have that Edit Report enabled for them.
    As Vadim rightly pointed out, start building some reports and then ask specific questions.
    Hope it clears your doubts.

  • How to create invoice using bapi  base on delivery number with example

    hi,
    Pl give me one example to create invoice using bapi base on delivery number (PGI).

    Use this code
    * Pass the delivery no to the FM to create the invoice
          wa_vbsk-smart = u2018Fu2019.
            wa_komfk-vbeln = nast-objky. u201CuF0DF-----delivery number
            APPEND wa_komfk TO it_komfk.
            CLEAR wa_komfk.
    *    To fill the message structure
    *        l_wa_error-vbeln_vl = nast-objky. " Delivery No.
    *        l_wa_error-fkart = wa_ztab-bil_doc_type." Billing Doc type
            CALL FUNCTION 'RV_INVOICE_CREATE'
                    EXPORTING
    *                 delivery_date             = 0
                     invoice_date              = v_date  u201C<- date
    *                 invoice_type              = '    '
    *                 pricing_date              = 0
                     vbsk_i                    = wa_vbsk
                     with_posting              = u2018Du2019
    *                 select_date               = 0
                     i_no_vblog                = ' '
                     i_analyze_mode            = ' '
                     id_utasy                  = ' '
                     id_utswl                  = ' '
                     id_utsnl                  = ' '
                     id_no_enqueue             = ' '
                     id_new_cancellation       = ' '
    **             IMPORTING
    *               VBSK_E                    =
    *               OD_BAD_DATA               =
    *               DET_REBATE                =
                    TABLES
                      xkomfk                    = it_komfk
                      xkomv                     = it_komv
                      xthead                    = it_thead
                      xvbfs                     = it_vbfs
                      xvbpa                     = it_vbpa
                      xvbrk                     = it_xvbrk
                      xvbrp                     = it_vbrp
                      xvbss                     = it_vbss
    *               XKOMFKGN                  =
    *               XKOMFKKO                  =

Maybe you are looking for

  • Pull the PO from Work Flow

    Hi, Could you please help me on how to pull the PO from a workflow ? I could access we20 to find the agent #.How do I see if the PO as item under that again and find what is the issue with that PO. Appreciate you help on transactions,process. Regards

  • SRM brf N-Step approval questoin to allow more then one approver

    hey guys, I am new to brf and for my PO it is sending it to the contracting officer for approval after the buyer creates the PO.   If the buyer edits the PO that is waiting for approval it is resending it to the contracting officer for approval.  I a

  • Ironport Email License Usage

    Hi, do you know how the ironport use the licenses that are licensed on the appliance. For example if i have a domain of 100 user do i have to license it for the 100% users or only for the concurrent users? Thanks!

  • Reloading photoshop CS5

    My operating system got corrupt and Microsoft is suggesting loading a new one. Ok by me on their terms but I will loose my adobe photoshop CS5 extended Win UE according to them.  My question is how can I reload it back. I have product code and serial

  • I bought Pages on my iPad, but do I have again for using it on my iPod?

    I bought Pages on my iPad, but do I have again for using it on my iPod?