How to use a javaBean in a servlet without FORMS...

Hi,
I would like to use a javaBean in a Servlet.
I know how you can do this with the code
HttpSession session = request.getSession();
in your servlet.
However, by using this code you have to call the servlet by a FORM. Is it possible to call the servlet (which calls the javaBean) in your JSP file without a FORM?
Greetings
Tigi

Thanks Anthony,
I'm working with Tigi on the same project and now I can tell you that the problem is solved.
request.getRequestDisptacher("/myServlet");hehe, you switched the 't' and the 'a'
<%@ include file="/myServlet" %>this is the one we use :)
But what is the difference between the first one and the last one? Now We are using the last one because that's the shortest :) not a pretty good reason huh :)
cheers,
Soep

Similar Messages

  • How to use the Javabeans in the servlets

    I want to use the beans in the servlets ..
    Please help me out with some good examples...
    and the resources where I can get the related hints

    For visual beans, check out jsp:plugin
    This will convert you bean to an applet.
    For non-visual beans, check out jsp:useBean

  • How to use Draw documnet wizar to a  user form?

    Hi all,
             I  have created one form with matrix.I want to get a  copy of sales quotation's data in my form. How to get through coding.
    (How to use Draw document wizard through coding)
             My form using UDO.Just like In my form i have created one button .If i click that button the list of sales quotations for the particular cutomer has to be displayed.
              From that i have to select one quotation,that data has to be filled   in my form.
             Please help me.How to do that?
            What is the menu ID for Draw document wizard.If i get that how can i link it with the my form having datas using UDO.
             Please help me to solve this problem
    Regards
    V.Rangarajan

    Hi,
    If you want to search for a specific menu ID you only have to activate the "System Information" with the B1 menu View -> System Information. After that when you use the Menus in the top of B1 application (all menus included the same ones as in the Modules form) you will be able to ee the MenuIDs in the bottom of B1 application.
    If you want to open a document form with information inside it I will say to better create a grid with the list of documents you want to show everytime (please have a look to UI API Grid item in help file, there is also a sample in the SDK UI samples) and make one of the columns a LinkButton, when the user will click in the link button the document form will open automatically. You have also many posts talking about how to create a link button in a grid, please use the search capabitility of this forum.
    Hope it helps
    Trinidad.

  • The use of javabean in a servlet

    I used a javabean in (scope=application) a jsp, but now I want to use that bean in my servlet, can anybody show me how?

    why not share with others ??
    please write out

  • How to use an IFrame with my servlet?

    Hello, my question is this (basically, I'm building a "social" application for one of the social networks out there,
    but I'm using a java servlet as my back-end server, though I don't know if it matters to my question) -
    I want to insert an iframe to my application, but I didn't find good material on how to use this, and what to add to my servlet
    for completing the communication with the iframe - can anyone give an example maybe, or a link to a good piece of code.
    Basically, what I want for my application is to simply allow a user to record a voice message, and save it somewhere,
    and for that I need to use a java library, and this is why I thought building it with an iframe that will directly communicate with my java servlet. - IS THIS A GOOD IDEA?
    thanks :)
    Kogan.

    IFrame is just a HTML element. You normally embed HTML elements in a JSP file. How to use an IFrame is covered by every average HTML tutorial.
    What's your actual problem?

  • How to use connection pool in jsp/servlet ?

    I found I can "lookup" it in either java beans/servlets/JSP using JNDI. why?
    what is the best practice to use it in a jsp/servlet web app considering JNDI lookuping expensive?
    Thanks!
    Bo
    Edited by: BobXu on Nov 17, 2008 2:27 PM
    Edited by: BobXu on Nov 17, 2008 2:32 PM

    Huh?
    You can lookup a JNDI resource from anywhere in java code you want to. As long as you have a repository set up to search on :-)
    Of course whether that resource is available or not is a different matter. If you let the server set up the JNDI resource for you, then you can't run it standalone outside the server without something else setting the same thing up :-)
    So its not so much a limitation of beans, but just the environment you run the code in.
    Best practice? Don't write sql queries in JSP pages :-)
    For the rest you might consider the DAO pattern. Or ignore SQL altogether and let hibernate do the work there for you.
    Cheers,
    evnafets

  • How can I send XML to a servlet without a WebService?

    I have created some XML on my Flex app now I want to send it
    back to the Servlet, any suggestions on how to do this?
    I don't have a web service setup, so I just need to do this
    without a webservice.
    I appreciate an help!!!!

    Hi,
    You can use HTTPService or RemoteObject.
    If you are using HTTPService, then it is very similar to Form
    post from a HTML page. HTTPService will allow you to select the
    method (POST/GET) in which you want to send the data to the server.
    You can add parameters with the data and the send the request to
    the server. On the server side, you can either use JSP/Servlet/ASP
    or any other server side scripting technology and access the
    parameters using request.getParameter("<parameter name>").
    Please find more details on how to pass parameters at the URL
    below.
    http://livedocs.adobe.com/flex/3/html/data_access_5.html#200238
    If you are using RemoteObject, then you need to have
    BlazeDS/LCDS on the server which will allow you to invoke methods
    in any Java class. When invoking any method you can pass arguments
    as you were invoking that method from another Java class. Please
    find more details on how to use RemoteObject at the URL below.
    http://sujitreddyg.wordpress.com/2008/01/14/invoking-java-methods-from-adobe-flex/
    Hope this helps.

  • How to use Ajax Get Multiple Values in Tabular form?

    Hi All-
    I am trying to use AJAX to get multiple values in tabular form by using Denes Kubicek's example in the following link -
    http://apex.oracle.com/pls/otn/f?p=31517:239:9172467565606::NO:::
    Basically, I want to use the drop down list to populate rest of the values on the form.
    I have created the example(Ajax Get Multiple Values, application 54522) on Oracle site -
    http://apex.oracle.com/pls/apex/f?p=4550:1:0:::::
    Workspace: iConnect
    login: demo
    password: demo
    I was able to duplicate his example on page 1 (home page).
    However, I want to use system generate tabular form to finish this example, and was not able to populate the data correctly.
    Page 2 (method 2) is the one that I am having trouble to populate the column values. When I checked application item values in Session, and the values seems to be populated correctly.
    This is what I have done on this page:
    1. Create an Application Process On Demand - Set_Multi_Items_Tabular2:
    DECLARE
      v_subject my_book_store.subject%TYPE;
      v_price my_book_store.price%TYPE;
      v_author my_book_store.author%TYPE;
      v_qty NUMBER;
      CURSOR cur_c
      IS
      SELECT subject, price, author, 1 qty
      FROM my_book_store
      WHERE book_id = :temporary_application_item2;
    BEGIN
      FOR c IN cur_c
      LOOP
      v_subject := c.subject;
      v_price := c.price;
      v_author := c.author;
      v_qty := c.qty;
      END LOOP;
      OWA_UTIL.mime_header ('text/xml', FALSE);
      HTP.p ('Cache-Control: no-cache');
      HTP.p ('Pragma: no-cache');
      OWA_UTIL.http_header_close;
      HTP.prn ('<body>');
      HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
      HTP.prn ('<item id="f04_' || :t_rownum || '">' || v_subject || '</item>');
      HTP.prn ('<item id="f05_' || :t_rownum || '">' || v_price || '</item>');
      HTP.prn ('<item id="f06_' || :t_rownum || '">' || v_author || '</item>');
      HTP.prn ('<item id="f07_' || :t_rownum || '">' || v_qty || '</item>');
      HTP.prn ('</body>');
    END;
    2. Create two application items - TEMPORARY_APPLICATION_ITEM2, T_ROWNUM2
    3. Put the following in the Page Header:
    <script language="JavaScript" type="text/javascript">
    function f_set_multi_items_tabular2(pValue, pRow){
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_Multi_Items_Tabular2',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM2',pValue)
    get.add('T_ROWNUM2',pRow)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM2','null')
        gReturn = get.get('XML');
        if(gReturn){
            var l_Count = gReturn.getElementsByTagName("item").length;
            for(var i = 0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("item")[i];
                var l_ID = l_Opt_Xml.getAttribute('id');
                var l_El = html_GetElement(l_ID);   
                if(l_Opt_Xml.firstChild){
                    var l_Value = l_Opt_Xml.firstChild.nodeValue;
                }else{
                    var l_Value = '';
                if(l_El){
                    if(l_El.tagName == 'INPUT'){
                        l_El.value = l_Value;
                    }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
                        l_El.parentNode.innerHTML = l_Value;
                        l_El.parentNode.id = l_ID;
                    }else{
                        l_El.innerHTML = l_Value;
        get = null;
    </script>
    Add the follwing to the end of the above JavaScript:
    <script language="JavaScript" type="text/javascript">
    function setLOV(filter, list2)
    var s = filter.id;
    var item = s.substring(3,8);
    var field2 = list2 + item;
    f_set_multi_items_tabular2(filter, field2);
    4. Tabular form query:
    select
    "BOOK_ID",
    "BOOK",
    "SUBJECT",
    "PRICE",
    "AUTHOR",
    "QTY",
    "BOOK_ID" BOOK_ID_DISPLAY
    from "#OWNER#"."MY_BOOK_STORE"
    5. In Book_ID_DISPLAY column attribute:
    Add the following code to element attributes: onchange="javascript:f_set_multi_items_tabular2(this.value,'#ROWNUM#');"
    Changed to -> onchange="javascript:setLOV(this,'f03');"
    Now,  T_ROWNUM2 returns value as f03_0001. But, TEMPORARY_APPLICATION_ITEM2 returns as [object HTMLSelectElement]...
    Please help me to see how I can populate the data with this tabular form format. Thanks a lot in advanced!!!
    Ling
    Updated code in Red..

    Ling
    Lets start with looking at what the javascript code is doing.
    function f_set_multi_items_tabular(pValue, pRow){
      /*This will initiate the url for the demand process to run*/
      var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
                              'APPLICATION_PROCESS=Set_Multi_Items_Tabular',0);
      if(pValue){
        /*If there is an value than submit item name with value*/
        get.add('TEMPORARY_APPLICATION_ITEM',pValue)
        get.add('T_ROWNUM',pRow)
      }else{
        /*Else set the item TEMPORARY_APPLICATION_ITEM to null*/
        get.add('TEMPORARY_APPLICATION_ITEM','null')
      /*Submit the url and te returned document is of type XML*/
      gReturn = get.get('XML');
      if(gReturn){
        /*There is something returned*/
        var l_Count = gReturn.getElementsByTagName("item").length;
        /*For all elements of the tag item*/
        for(var i = 0;i<l_Count;i++){
          /*Get the item out of the XML*/
          var l_Opt_Xml = gReturn.getElementsByTagName("item")[i];
          /*Get the id of the item*/
          var l_ID = l_Opt_Xml.getAttribute('id');
          /*Get the element in the original page with the same id as
          **the item we have in the XML produced by the ondemand process
          var l_El = html_GetElement(l_ID);
          /*Now get the value of the item form the XML*/
          if(l_Opt_Xml.firstChild){
            var l_Value = l_Opt_Xml.firstChild.nodeValue;
          }else{
            /*There is no value*/
            var l_Value = '';
          if(l_El){
            /*There is an element with the same id as the item we are processing*/
            if(l_El.tagName == 'INPUT'){
              /*The element is an input item just set the value*/
              l_El.value = l_Value;
            }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
              /*If it is a span elment and has the class grabber
              **Then set the innerHTML of the parent to the value
              **and the id of the parent to the id
              l_El.parentNode.innerHTML = l_Value;
              l_El.parentNode.id = l_ID;
            }else{
              /*Else set the value as innerHTML*/
              l_El.innerHTML = l_Value;
      get = null;
    Now where it went wrong in your initial post
    The XML that was returned by your XML process would be something like
    <body>
      <desc>this xml genericly sets multiple items</desc>
      <item id="f02_1">CSS Mastery</item>
      <item id="f03_1">22</item>
      <item id="f04_1">Andy Budd</item>
      <item id="f05_1">1</item>
    </body>
    When you don't use apex_item to create your tabular form a item in the table will look like
    <input id="f02_0001" type="text" value="CSS Mastery" maxlength="2000" size="16" name="f05" autocomplete="off">
    Notice the id's f02_1 and f02_0001 don't match.
    So to make it work the XML would have to look like
    <body>
      <desc>this xml genericly sets multiple items</desc>
      <item id="f02_0001">CSS Mastery</item>
      <item id="f03_0001">22</item>
      <item id="f04_0001">Andy Budd</item>
      <item id="f05_0001">1</item>
    </body>
    To do that simply use lpad in the ondemand process like
    HTP.prn ('<item id="f02_' || lpad(:t_rownum,4,'0') || '">' || v_subject || '</item>');
    HTP.prn ('<item id="f03_' || lpad(:t_rownum,4,'0') || '">' || v_price || '</item>');
    HTP.prn ('<item id="f04_' || lpad(:t_rownum,4,'0') || '">' || v_author || '</item>');
    HTP.prn ('<item id="f05_' || lpad(:t_rownum,4,'0') || '">' || v_qty || '</item>');
    Keep in mind that the above is based on your original post and #ROWNUM# not being lpadded with zero's.
    Nicolette

  • How to use add row button of a tabuler form.

    Hi all,
    I have created a Tabuler form in my application.Could you please tell me 'How can i use the add row button of this form' as When i click the button "NOTHING HAPPENS".
    Thanks
    Regards,
    Neha

    Hi,
    If you edit the button, the button name has to be 'ADD'. You can make the text / label whatever you like. On the form edit page, the button should appear with this text next to it: submit as "ADD".
    HTH

  • How to use iPhone USB tethering / Personal Hotspot without iTunes

    I have a corporate laptop so didn't want to install the whole of iTunes to enable USB tethering / Personal Hotspot.
    Here's how you can enable USB tethering / Personal Hotspot without installing iTunes.
    1. Download iTunes from https://www.apple.com/itunes/download/
    2. Extract the contents of the downloaded file using winRAR or 7zip. In particular you want the following files:
    For 32 bit systems:
    - AppleApplicationSupport.msi
    - AppleMobileDeviceSupport.msi
    For 64 bit systems:
    - AppleApplicationSupport64.msi
    - AppleMobileDeviceSupport6464.msi
    Note: If you don't have either winRAR or 7zip you can do the following instead:
    Start the iTunes installation, then on reaching the first screen, the required files will be extracted to your machine, perform a search for one of the files above on your C drive whilst the iTunes installation window is open, it should find them in a temp folder somewhere, you can then copy and paste them somewhere and close the iTunes installation.
    3. Before continuing, ensure your iphone is not connected to the computer. Then, install AppleApplicationSupport.msi (or AppleApplicationSupport64.msi for 64 bit machine)
    4. Install AppleMobileDeviceSupport.msi (or AppleMobileDevice6464.msi)
    5. Restart your computer
    6. After your computer has restarted, enable Personal Hotspot on your iPhone (select USB only option) and plug in your iPhone using the USB cable. Some device drivers will install and then your computer should automatically connect to the iPhone internet connection.

        Hi kveille,
    Using the personal hotspot can become tricky as there are three different options available. Based on your details, it sounds like you've been trying the option to connect using WiFi on your computer and iPad. We have the steps needed for iOS 6 to activate and use WiFi so I encourage to use these exact steps to get it to work http://bit.ly/SFLD2b. You will need to check that the MacBook Pro is setup to pick up the network the right way. Check by following http://bit.ly/PJkOWZ. Step 9 demonstrates how to find the network name that you can look for on your computer. Try these steps and keep us posted to the status of the connection.
    Thank you,
    MariaC_VZW
    Please follow us on Twitter @VZWSupport

  • How to use Microsoft DateTime Picker ActiveX control in Forms 6i?

    Does anyone have idea on how to use Microsoft Date-Time Picker ActiveX component in Forms 6i? Please give me coding examples for using this control to retrieve & store date at the backend.
    Regards

    when u load activex (spreedsheet) the corresponting menu also u can see when u run through which also you can set the attribute values
    im also check the same it is working
    sorry i saw it on design time
    kansih
    Edited by: Kanish on Apr 28, 2009 2:54 AM

  • How to use advanced PL/SQL concepts in oracle forms/reports

    Hi all,
    Can any one suggest me how to use the advanced PL/SQL Concepts(nested tables,PAA,Varrays,Objects...) in Oracle forms.
    Actually i Created a Table having column of Varray datatype. now i want to create a item in oracle forms on this field. can any one suggest me the way to do this.
    Thanks,
    Kumar

    Hello,
    Have a look at this one:
    http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm
    particularly the chapter about block that contain a collection (2.3.3). The sample is built around a nested table but you have the idea to adapt it to work with a varray.
    Kind regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • How to use RMI objects in a servlet

    Hi,
    I have just run the example RMI program in the java tutorial in my linux pc. Also I have another method to just echo a string back. It works fine when calling from command line.
    Now I want to write a servlet that get a string when POSTed and call the RMI objects echo method and display the returned string.
    I use Tomcat-5.0 which is installed in /usr/local. I moved the remote object interface jar to the common/lib folder and import the interface in my Servlet. I use the following statements inside the servlet to get the RMI object reference.
                Registry registry = LocateRegistry.getRegistry("localhost");
                Rser comp = (Rser) registry.lookup("rmiser");When i use this in my servlet the tomcat stops working.
    Also I don't know how to specify the code base and security policy which I use in command prompt when calling RMI object.
    Pls suggest me what to do and also specify any resources that explain this task step by step.
    Thanks.

    restarted the system and caught the following exception while calling the servlet.
    Apr 30, 2009 12:24:15 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3861 ms
    java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
         at java.security.AccessController.checkPermission(AccessController.java:546)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
         at java.net.Socket.connect(Socket.java:513)
         at java.net.Socket.connect(Socket.java:469)
         at java.net.Socket.<init>(Socket.java:366)
         at java.net.Socket.<init>(Socket.java:180)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at RequestParamExample1.doGet(RequestParamExample1.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at filters.ExampleFilter.doFilter(ExampleFilter.java:101)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:619)
    Apr 30, 2009 12:25:19 PM org.apache.coyote.tomcat5.CoyoteAdapter service
    SEVERE: An exception or error occurred in the container during the request processing
    java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
         at java.security.AccessController.checkPermission(AccessController.java:546)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.Thread.setContextClassLoader(Thread.java:1351)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:619)
    Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
         at java.security.AccessController.checkPermission(AccessController.java:546)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.Thread.setContextClassLoader(Thread.java:1351)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1623)
         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
         at java.lang.Thread.run(Thread.java:619)
    Hope u can find it now.
    the line
    at RequestParamExample1.doGet(RequestParamExample1.java:94)
    is the file I am editing and using to call RMI.
    Edited by: itsraja on Apr 30, 2009 12:06 AM

  • How to use a JavaBean with request scope from one page to other page

    Hi,
    I want to use in one jsp file a javabean with scope of request for it, I use:
       <jsp:useBean id="entry" class="jsps.SaleEntry" scope="request" />and after in that page I make operations with it using the jsp:setProperty and jsp:getProperty operations
    My question is that if I want to get the result of that javabean in the following page, Have I to record the javabean doing : request.setAttribute(""objectId",id) and then in the following jsp page I can rescue the object doing: SaleEntry sE=(SaleEntry) request.getAttribute("objectId") ???
    or in the contrary, only using jsp:setProperty the information is available to recover it in the following jsp doing : SaleEntry sE=(SaleEntry) request.getAttribute("objectId") because setProperty records the information without need of doing : request.setAttribute(""objectId",id). ????
    Thanks with anticipation and sorry if it is a silly question but I am beginner in the use of JavaBeans

    Thanks Anthony,
    I'm working with Tigi on the same project and now I can tell you that the problem is solved.
    request.getRequestDisptacher("/myServlet");hehe, you switched the 't' and the 'a'
    <%@ include file="/myServlet" %>this is the one we use :)
    But what is the difference between the first one and the last one? Now We are using the last one because that's the shortest :) not a pretty good reason huh :)
    cheers,
    Soep

  • How to use jdb for debugging a servlet?

    I'm using Apache/JServ with jdk 1.4 (via Textpad on win2K SP 3).
    The 'gospel' I'm trying to follow is:
    'Start the server manually and record the password for remote debugging
    (this is displayed on the console).'
    'Start the Java debugger:'
    'jdb -host your_host -password the_password'
    'You should be able to debug your Java classes now using the jdb
    command.'
    My problem is that I can't find the password from Apache.
    I normally start/restart apache as a windows Service.
    If I start it from DOS I get:
    'C:\orant9i\Apache\Apache>apache -k start'
    'Oracle HTTP Server Powered by Apache/1.3.12 (Win32) ApacheJServ/1.1
    mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.24 running...'
    I've searched the log, conf & property files but can't find any password.
    I've also searched the Apache website for 'jdb' without luck.
    I've printed out (and read!) the 'Using Apache with MS Windows' manual.
    I did a Google:
    --Someone suggested starting Apache using using the -X flag, but I don't
    seem to have this option.
    --Someone else suggested changing jvm12.conf, but I don't have one.
    I have tried the following, just-in-case I don't really need a password,
    but it doesn't tell me a lot, and I would appreciate some help:
    JDB -sourcepath E:\javaPackages org.apache.jserv.JServServletManager
    C:\orant9i\Apache\Apache>JDB org.apache.jserv.JServServletManager
    Initializing jdb ...
    > run
    run org.apache.jserv.JServServletManager
    Set uncaught java.lang.Throwable
    Set deferred uncaught java.lang.Throwable
    >
    VM Started:
    Exception occurred: java.lang.ClassNotFoundException (uncaught)"thread=main", java.net.URLClassLoader$1.run(), line=199 bci=72
    main[1] list
    Source file not found: URLClassLoader.java
    main[1]
    Thanks,
    Peter.
    Posted to alt.apache.configuration, comp.lang.java, http://groups.yahoo.com/group/win-apache and
    comp.infosystems.www.servers.misc with no response

    Hello
    You wrote:
    I added the following to jserv.properties:
    wrapper.bin.parameters=-Xdebug
    wrapper.bin.parameters=-Xrunjdwp:transport=dt_socket,address=2930,suspend=n,server=y
    and it ran the servlet okay.Fine so far. This means your debugee VM is started and running. The "suspend=n" means it
    will start running without waiting for a debugger to attach... so you can attach later whenever you
    decide to debug. Note that 'later' could be weeks later, or possibly never.
    Now: Time to attach jdb to the victim/debugee process you started above.
    You wrote:
    But I get the following when I try to start jdb:
    jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=2930 org.apache.jserv.JServServletManager
    gives:
    Cannot specify command line with connector:
    com.sun.jdi.SocketAttach:hostname=localhost,port=2930,
    and
    jdb -attach localhost:2930 org.apache.jserv.JServServletManager
    gives:
    Cannot specify command line with connector: com.sun.jdi.SharedMemoryAttach:name=localhost:2930,The problem here is that you are trying to supply too much information to jdb.
    When you are using the attach connectors, all you need to supply is the
    host name and socket (for the socket connectors), or the name of the shared memory
    area (for the shared memory connector). The connectors you tried above are throwing
    an error because you are trying to supply something extra (the class name).
    When doing an attach, the debugee VM is already launched. The debugger will
    attach to it and inspect the classes loaded.
    If you are still running with the wrapper.bin.parameters you listed above,
    then all you need to connect with jdb is:
      jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=2930 You should get a jdb prompt, and you will be able to inspect the debugee
    VM by entering commands such as threads and classes. Typically
    the next thing would be to set some breakpoints (stop in package.class.method,
    or stop at package.class:line. Then restart the debugee with a resume.

Maybe you are looking for

  • Unicode filename in download box

    I need to upload/download files with Unicode names from a file hosting service. Every thing is going fine except one thing - internet explorer. The problem is that IE doesn't recognize the file name i'm sending as Unicode - showing me an encoded stri

  • Creating infered entity instances

    How can I create infered entity instances..in opa 10.4. When I am trying to write rule using the "exists" keyword.. its not compiling as "Infered Instance" but it compiles as normal conclusion. and how can I create inferred instances conditionally..

  • Creating /opt

    I purchased a new Sun Blade 150, and need to install DB2. This system still has its factory-installed disk partitions. I need to create a /opt under which I'll do the installation. I presume I may need to use format and newfs to create /opt, but the

  • Philosophy on using 'old' mini

    Not a question, this, more of a view regarding the vexed question of how one feels when a new product replaces the one you're using. I've read some posts etc from people miffed about their Mac being replaced - iMac users when the new Intel version ap

  • Manual BRS FF67  Through BDC

    HI, We are using the BDC program to upload the manual bank reconciliations statement for FF67 and when we are uploading the BRS the receipt entries are updating but the payment entries are not updating (For the past 5 years working fine but, June 201