How to rename a EJB's jndi name?

Using Sun Appserver, having deployed all EJBs, I want to rename a EJB's jndi name, for instance,
to rename object "java:comp/env/ejb/User" to "java:comp/env/ejb/User1". By using InitialContext.rename(oldName,newName), a NamingException is thrown and its message is "java:comp namespace cannot be modified ". How to solve it?

It is not possible.
Prohibited by the EJB spec.

Similar Messages

  • How to lookup EJB3 beans using JNDI names without defining ejb-ref in DD?

    Hi Kenneth,
    I am just continuing the topic:
    How Lookup SLSB from other SLSB? <HELP>
    http://forum.java.sun.com/thread.jspa?threadID=5117484&tstart=0
    (my original forums account failed, so I am using new one)
    if I am not seeking portability I should be able to lookup a bean directly through JNDI without using the ejb-ref. (I just want to see how it can be done)
    http://forum.java.sun.com/thread.jspa?forumID=13&threadID=751907
    http://www.theserverside.com/discussions/thread.tss?thread_id=16402
    I am using SJSAS PE 9.0 I am failing to lookup my beans from other beans directly without ejb-ref.
    Is there some sample code to look at?
    Thanks!

    Global JNDI names are vendor-specific and not known until deployment time. That is one
    of the main reasons the Java EE component environment model defines a level of
    indirection for accessing component dependencies. It is best to use either an ejb-ref
    or @EJB annotation when accessing EJBs from a Java EE component.
    If you choose not to, you just have to make sure the global JNDI name you use matches
    the one assigned to the target EJB. We have a lot of information on how this works
    in our EJB FAQ.
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
    If you're still encountering an error, please provide more specifics about your application,
    the code you're using for the lookup, and the error message you're receiving. Just
    saying "my looking fails" doesn't help us diagnose the problem :-)
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Conflicts binding EJB to JNDI names

    Hi everyone, I'm having a problem to run an application client due to JNDI errors during the binding of EJB modules.
    I'm using NetBeans 5.5 and Sun Java Application Server 9 PE.
    the server log shows these messages:
    SEVERE| Exception in creating EJB container [javax.naming.NameAlreadyBoundException: Use rebind to override]
    SEVERE| appId=+CorpTour+ moduleName=+Tour+_jar ejbName=+reservationBean+
    SEVERE| Jndi name conflict found in [+CorpTour+]. Jndi name [+reservationRemote+] for bean [+reservationBean+] is already in use.
    SEVERE| Naming exception while creating EJB container: javax.naming.NameAlreadyBoundException: Use rebind to override
    here the components are:
    Enterprise application: CorpTour
    EJB: Tour
    Session Bean: reservationBean
    Session Bean remote interface: reservationRemote
    I created all the EJB calls using the IDE assitant so I don't know what's wrong.
    Another thing is that the IDE created the application-client.xml file but not the ejb-jar file.
    I would reeeeally appreciate any help on this problem. Thanks in advance

    What version of WLS are you using?
    Bart Jenkins, Globeflow SA
    "Rafal Mantiuk" <[email protected]> wrote in message
    news:[email protected]..
    Can I do a thing like this:
    -) I deploy an EJB on a server A.
    -) I bind the EJB that is deployed on the server A to jndi on a server
    B. The EJB is not deployed on server B.
    -) Web client that runs on server B can lookup the EJB in its local
    jndi. However all calls go to the server A.
    Server A and B are not in the cluster.
    Rafal

  • How to Rename Project to its original name without deleting the version?

    One of the users have accidently renamed the project definition, several versions exist for the project already.  SAP will not allow to simply re-name the project.  I dont want to delete the old versions because i dont want to loose all the data associated with the previous versions?
    Any solution??

    Just give it a try, it may work for Time-dependent version also.
    I think the note say,the WBSE number in project version will get changed to old number and once you change the WBSE number in operative project then again it will change the WBSE number in project version.
    Eg. Your WBSE number is A0001 and also in version. Now you change it A0002 in operative project. But now if you change back from A0002 to A0001 system wont allow, because of existence of project version. Now, If you follow the solution suggested in Note, You will be able to change A0001 to A0002 in Project version. So you will be free to change the WBSE number of Operative project. Once you change the operative project from A0002 to A0001, the project version will also change from A0002 to A0001.

  • EJB Refs ( coded name and JNDI name )

    Hi
    I am just starting to develop EJBs . I can't get to work the EJB refs as expected . In a session bean I have a lookup for an Entity bean . Both beans are in separate JAR files , but in the same ear .
    The lookup from session bean to entity bean only works when
    the coded name in EJB ref is defined exactly the same as JNDI name for enity bean , also the name in lookup method must be the same in session bean .
    To my surprise , the JNDI name for the target EJB , defined in EJB ref for session bean , does not mater at all . Even if I change it to a non existant name , the bean lookup works .
    Theoritacally I understand that EJB ref is there to provide a mapping between the name of bean mentioned in code to the actual JNDI name of another bean , at the time of deployment .
    The above is happening in J2EE 1.4 envoirment .
    Please let me know , what am I doing here that is wrong .
    ( All examples and tutorials , usually give coded name same as JNDI name ) .
    Thanks
    Tarun

    Hi Tarun,
    The ejb-ref-name lives in a different namespace than the global JNDI names. Any names of ejb-refs, ejb-local-refs, resource-refs, etc. are scoped within a particular component's private namespace. All environment references are accessed via the java:comp/env namespace at runtime. So, if your ejb-ref-name(a.k.a "coded name") is ejb/foo in the deployment descriptor, you would access it from the code as follows :
    initialContext.lookup("java:comp/env/ejb/foo");
    This way, neither the standard deployment descriptor nor the code has any dependency on the global JNDI name. That's a good thing since the decision about which target EJB should be linked to is often not made until deployment time rather than development time. Furthermore, it means if you want to change the linking you can always do it without recompiling your code.
    As for the global JNDI names, the first thing to note is that they are completely vendor-specific. That's why they don't appear in the standard deployment descriptor. In the J2EE SDK, each EJB that exposes a Remote view is assigned a global JNDI name in sun-ejb-jar.xml. This JNDI name is assigned from the global namespace of the application server. There's nothing stopping it from also being "ejb/foo", but it refers to a different thing than the "ejb/foo" above.
    Now we have an ejb-ref called ejb/foo and an ejb whose JNDI name is ejb/foo, but we haven't linked the two. When it comes to linking, you have two choices:
    1. If the target ejb is in the same .ear as the client component, you can use the ejb-link mechanism. This allows you to specify the target ejb by referring to its ejb-name. Since ejb-name is only guaranteed to be unique within an ejb-jar, the syntax allows for you to give the uri of the containing ejb-jar, followed by #, followed by ejb-name.
    2. Alternatively, you can specify the global JNDI name of the target ejb using sun-ejb-jar.xml Note that this will work whether the target ejb is in the same .ear or not. However, it's the only option if the target ejb is in a different .ear. In this case, you would create an ejb-ref entry for the client component within the sun-ejb-jar.xml. e.g. :
    <ejb>
    <ejb-name>MyClientBean</ejb-name>
    <ejb-ref>
    <ejb-ref-name>ejb/foo</ejb-ref-name>
    <jndi-name>ejb/foo</jndi-name>
    </ejb-ref>
    </ejb>
    Again, it's just a coincidence that both names happen to be ejb/foo. They refer to different things.
    When you do a global lookup from your code, initialContext.lookup('ejb/foo"), it will work in some environments because you're simply bypassing the level of indirection provided by your component environment and going straight to the global namespace. This is non-portable and not a good idea, since you've now tightly coupled the name of the target ejb to your client component. That means if it changes you need to recompile your code. Hope this helps.
    --ken

  • How to call one EJB in another EJB?

    How to call one EJB in another EJB? Please explain with some example code.

    To refer a Ejb from another Ejb include <ejb-ref> element in ejb-jar.xml
    <session>
    <ejb-name>EjbA</ejb-name>
    <ejb-ref>
    <ejb-ref-name>EjbB</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <home>com.ejb.EjbBHome</home>
    <remote>com.ejb.EjbB</remote>
    </ejb-ref>
    </session>
    Include a <reference-descriptor> in weblogic-ejb-jar.xml
    <weblogic-enterprise-bean>
    <ejb-name>EjbA</ejb-name>
    <reference-descriptor>
    <ejb-reference-description>
    <ejb-ref-name>EjbB</ejb-ref-name>
    <jndi-name>com.ejb.EjbBHome</jndi-name>
    </ejb-reference-description>
    </reference-descriptor>
    </weblogic-enterprise-bean>
    In EjbA Bean class refer to EjbB with
    a remote reference to EjbB.
    InitialContext initialContext=new InitialContext();
    EjbBHome EjbBHome=(EjbBHome)
    initialContext.lookup("com.ejb.EjbBHome");
    EjbB ejbB=EjbBHome.findByPrimaryKey(primarykey);

  • Define jndi  name in jdeveloper

    I am trying my first EJB in JDeveloper 9.0.34,and I am wondering how to go about defining the jndi name that I might use in my client class when I call the ejb.
    I already have my ejb-jar.xml file ready with all the remote session and entity beans that I have created and now its time to test my ejb's ,and hence wondering how to go about defining the jndi's.
    thx
    man

    I tried that yesterday ,but gave me the error below .Since I was debugging ,I found that error was in this line
    ProductHome productHome = (ProductHome)PortableRemoteObject.narrow(context.lookup("Product"), ProductHome.class);
    See the code below ,if you are interested in details.
    ERROR
    javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
         java.net.ConnectException: Connection refused: connect
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
              RMIContext.java:134
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
              InitialContext.java:350
         void cihi.request.ejb.ProductClient.main(java.lang.String[])
              ProductClient.java:20
    CODE
    public class ProductClient
    public static void main(String [] args)
    ProductClient productClient = new ProductClient();
    try
    Context context = getInitialContext();
    ProductHome productHome = (ProductHome)PortableRemoteObject.narrow(context.lookup("Product"), ProductHome.class);
    Product product;
    // Use one of the create() methods below to create a new instance
    product = productHome.create("1");
    // Call any of the Remote methods below to access the EJB
    product.setPrice(10);
    product.setName("Professional JSP");
    // product.getPrice( );
    // product.getName( );
    // product.getId( );
    // Retrieve all instances using the findAll() method
    // (CMP Entity beans only)
    Collection coll = productHome.findAll();
    Iterator iter = coll.iterator();
    while (iter.hasNext())
    product = (Product)iter.next();
    System.out.println("id = " + product.getId());
    System.out.println("name = " + product.getName());
    System.out.println("price = " + product.getPrice());
    System.out.println();
    catch(Throwable ex)
    ex.printStackTrace();
    }

  • MySQL data source/JNDI name not found

    Hi,
    I created a JDBC data source (MySQLDS) and a connection pool through AppServer 7's Admin Console but my local entity bean couldn't find it. It thrown a NameNotFoundException. I have the following descriptor in the sun-ejb-jar.xml
    <ejb>
    <ejb-name>ServiceCatalogBean1</ejb-name>
    <jndi-name>ejb/ServiceCatalogBean1</jndi-name>
    <resource-ref>
    <res-ref-name>jdbc/MapServiceDS</res-ref-name>
    <jndi-name>MySQLDS</jndi-name>
    </resource-ref>
    </ejb>
    Any advice will be highly appreciated.
    thanks in advance
    Frank
    More info, I m using JDBC driver of mm.mysql-2.0.4 and have no problem running with WebLogic 7

    Hi,
    Can you post the relevant <jdbc-resource> element in server.xml? Also, your res-ref in ejb xml?
    Thanks.
    -Tuan.

  • Weblogic 12c ignores jndi-name definition. Why ?

    Hi all!
    I have a Stateless Bean which has a custom JNDI name defined in weblogic-ejb-jar.xml
    <weblogic-enterprise-bean>
    <ejb-name>CompanySFSB</ejb-name>
    <stateless-session-descriptor>
    <business-interface-jndi-name-map>
    <business-remote>model.logic.Company</business-remote>
    <jndi-name>ejb/Company</jndi-name>
    </business-interface-jndi-name-map>
    </stateless-session-descriptor>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    However looking at the JNDI tree the bean is stored as "WLSEARWLSEJB_jarCompanySFSB_Company"
    Therefore injecting the EJB as
    @EJB(name = "CompanySFSB", mappedName = "ejb/Company")
    Is there a way to store the EJB with the JNDI declared in weblogic-ejb-jar.xml ? or by using an annotation in the EJB ?
    Thanks
    Frank

    Hi Frank,
    Try this option in your startup script.
    -Dweblogic.jndi.retainenvironment=true
    Regards,
    Kal

  • JNDI name

    Im trying to deploy an EAR onto SAP Web AS. It has an ejb.jar file with ejb-jar.xml and the ejb-j2ee-engine.xml. ive given my beans their JNDI names in the ejb-j2ee-engine.xml file.
    But when i deploy it, it comes back with SAP's default JNDI names instead of the ones ive given there. Can someone please tell me if we can supply our own JNDI names and if there is a work around for this.I use ant to build by EAR file. Any help would be greatly appreciated.
    thanks
    -RD

    thanks for all your replies,
    Firstly, Iam NOT using the SAP dev studio.
    Iam pasting the contents for one bean
    ejb-jar.xml
    <enterprise-beans>
          <!-- Session Beans -->
          <session >
             <description><![CDATA[]]></description>
             <ejb-name>MyBean</ejb-name>
             <home>com.myapp.ejb.MyBeanRemoteHome</home>
             <remote>com.myapp.ejb.MyBeanRemote</remote>
        <local-home>com.myapp.ejb.MyBeanLocalHome</local-home>
    <local>com.myapp.ejb.MyBeanLocal</local>
             <ejb-class>com.myapp.ejb.MyBean</ejb-class>
             <session-type>Stateless</session-type>
             <transaction-type>Container</transaction-type>
             <ejb-local-ref >
                <ejb-ref-name>ejb/ABean</ejb-ref-name>
                <ejb-ref-type>Session</ejb-ref-type>
                <local-home>com.myapp.ejb.ABeanLocalHome</local-home>
                <local>com.myapp.ejb.ABeanLocal</local>
                <ejb-link>ABean</ejb-link>
             </ejb-local-ref>
             <security-role-ref>
                <role-name>user</role-name>
                <role-link>user</role-link>
             </security-role-ref>
             <security-role-ref>
                <role-name>dev</role-name>
                <role-link>dev</role-link>
             </security-role-ref>
             <security-role-ref>
                <role-name>admin</role-name>
                <role-link>admin</role-link>
             </security-role-ref>
             <resource-ref >
                <res-ref-name>jdbc/MyDS</res-ref-name>
                <res-type>javax.sql.DataSource</res-type>
                <res-auth>Container</res-auth>
                <res-sharing-scope>Shareable</res-sharing-scope>
             </resource-ref>
          </session>
    ejb-j2ee-engine.xml
         <enterprise-beans>
              <enterprise-bean>
                   <ejb-name>MyBean</ejb-name>
                   <jndi-name>com.myapp.ejb.MyBean<jndi-name/>
              </enterprise-bean>
    I also noticed a <session-props/> entry in the ejb-j2ee-engine.xml file contents you had sent. Can you please tell me what it is.
    Aprreciate all your help and thanks
    RD

  • MBean API or wlst commands to secure JNDI Name.

    Hi Experts,
    is there any Mbean API / wlst commands to secure the JNDI name [i.e., the EJB exposed JNDI Name from the JNDI tree]?
    Thanks,
    Shashi

    Hi, Eric.
    Look here:
    jboss.xml:
    <entity>
    <ejb-name>OsdProofs</ejb-name>
    <local-jndi-name>OsdProofs</local-jndi-name>
    <resource-ref>
    <res-ref-name>jdbc/DefaultDS</res-ref-name>
    <jndi-name>DefaultDS</jndi-name>
    </resource-ref>
    </entity>
    It is better to use the same jndi-names and ejb-name.
    After that:
    InitialContext jndiContext = new InitialContext();
    Object ref = jndiContext.lookup("java:comp/env/ejb/local/OsdProofs");
    You have to use java:comp/env/ejb/local/ for correct lookup. I do not care why, but this works.
    For session bean
    <session>
    <ejb-name>FactGate</ejb-name>
    <jndi-name>FactGate</jndi-name>
    <local-jndi-name>FactGateLocal</local-jndi-name>
    <resource-ref>
    <res-ref-name>jdbc/DefaultDS</res-ref-name>
    <jndi-name>java:/DefaultDS</jndi-name>
    </resource-ref>
    </session>
    at client side you may feel free to use
    Context ctx = new InitialContext();
    //look up jndi name
    Object ref = ctx.lookup("FactGate");
    Regards.

  • How the ejb is bound to JNDI name

    I am very new to Oracle App server. In weblogic, we declare the jndi-name of an EJB in weblogic-ejb-jar.xml file.
    I did not see this in OC4J.
    Actualli I have written a simple stateful session bean and trying to access it through a standalone java client. But don't know what to look up in JNDI.
    HELP PLEASE!!!!!!!!!

    Hi Vinay,
    Your question has been asked (and answered) many times previously in this forum. (However, when I tried searching the forum archives, I only got three results!?!)
    The below code shows how to perform a lookup of the "home" interface of an EJB from a stand-alone, non-deployed java client:
    Properties props = new Properties();
    props.put(Context.INITIAL_CONTEXT_FACTORY,
            "com.evermind.server.rmi.RMIInitialContextFactory");
    props.put(Context.PROVIDER_URL,"ormi://<host>/<app_name>");
    props.put(Context.SECURITY_PRINCIPAL,"admin");
    props.put(Context.SECURITY_CREDENTIALS,"<admin_password>");
    new InitialContext(props).lookup("<home_name>");where "<host>" is the name of the machine where OC4J is running;
    "<app_name>" is the name you gave to the application when you deployed it;
    "<admin_password>" is the password for the "admin" user (that you supplied when you installed OC4J);
    "<home_name>" is the value of the "<ejb-name>" element from your "ejb-jar.xml" file.
    I have assumed that you have not set up any special security for your application -- otherwise you need to change the values for the SECURITY_PRINCIPAL and SECURITY_CREDENTIALS properties.
    I have also assumed that you are using the stand-alone version of OC4J.
    Good Luck,
    Avi.

  • How could JNDI differentiate two ejb have same jndi name but on difference

    how could JNDI differentiate two ejb have same jndi name but on difference server
    suppose that:
    we have two J2EE Server those are Server1 and server2, and both of them have a ejb named Test deployed on it, and I need a java client maybe it is a java Application, servlet or ejb in server1 to get the reference to the ejb name Test, how to use JNDI to get the reference to both of them. those two ejb have same name but on difference server. how could the java client locate them?

    You've hit problem #1 in the alleged scalability of EJB containers.
    Basically, the whole setup assumes that you're only dealing with one naming service. The expectation is that a given name is bound to a single object, which in this case is the Home interface.
    Some systems support clustering, which can allow you to get round this, but the details will depend on you EJB container vendor,
    Sylvia.

  • WLS10.3.1 : How to overload the jndi name of a stateless EJB

    Hi,
    I am trying to overload the jndi name of a stateless bean defined in an application by using a weblogic-ejb-jar.xml descriptor file.
    This does not work.
    The ear contains a jar that have a weblogic-ejb-jar.xml file in its META-INF directory. The file is :
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-ejb-jar
    xmlns="http://www.bea.com/ns/weblogic/90" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd">
    <weblogic-enterprise-bean>
    <ejb-name>HelloWorldBean</ejb-name>
    <enable-call-by-reference>true</enable-call-by-reference>
    <jndi-name>TOTO</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    This is the code of my bean :
    package test;
    import javax.ejb.Local;
    import javax.ejb.Remote;
    import javax.ejb.Stateless;
    @Stateless( name = "HelloWorldBean", mappedName="HWBean")
    @Local( IHelloWorldLocal.class)
    @Remote( IHelloWorldRemote.class)
    public class HelloWorldBean implements IHelloWorldLocal, IHelloWorldRemote
    public void sayHello(String name) {
    System.out.println( "Hello " + name + "!!!!");
    The bean implements the following interfaces :
    package test;
    public interface IHelloWorldRemote extends IHelloWorld {
    package test;
    public interface IHelloWorldLocal extends IHelloWorld {
    package test;
    public interface IHelloWorld {
    public void sayHello( String name);
    When i browse the JNDI tree, i see the bean registered with the mapped name attribute (HWBean#test.IHelloWorldRemote) but i don't see any bean registered with the name provided by the weblogic-ejb-jar.xml (TOTO)
    My standalone client can't perform a lookup using the JNDI name 'TOTO' but reaches the bean when using 'HWBean#test.IHelloWorldRemote'
    It seem's that the overload of the Jndi name using the weblogic-ejb-jar file descriptor doesn't work.
    Can you help me to solve the problem.
    Thanks.

    Thank you, my sample works fine with the following weblogic-ejb-jar.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/10.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/10.0 http://www.bea.com/ns/weblogic/10.0/weblogic-ejb-jar.xsd">
    <weblogic-enterprise-bean>
    <ejb-name>HelloWorldBean</ejb-name>
    <enable-call-by-reference>true</enable-call-by-reference>
    <stateless-session-descriptor>
    <business-interface-jndi-name-map>
    <business-remote>test.IHelloWorldRemote</business-remote>
    <jndi-name>TOTO</jndi-name>
    </business-interface-jndi-name-map>
    </stateless-session-descriptor>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>

  • How to get the JNDI name of an EJB from within itself

    Hello,
    I'm trying to find a way to get the JNDI name of a session bean from
    within itself.
    In the application I'm working on we need to support multiple
    customers. In order to do that, each EJB has a normal home and remote
    interface, a base class bean implementation and different children
    bean implemetations for each customer (when the logic for the
    customers is different). JNDI is used to get the proper implementation
    based on the customer.
    I've got an EJB that provides some services that are the same for all
    customers, except for the fact that it contains one variable that
    should have a different value depending on the customer. I don't want
    to creat subclasses just for that. What I want is to be able to get
    the JNDI name and set the variable based on the it.
    Is there a way to get the JNDI name for the EJB from within itself?
    TIA
    MJ

    Hi Pradeep,
    Please try referring to this post which is discussed earliar and seems its also answered.
    http://forums.adobe.com/thread/504861
    Thanks,
    Bhasker Chari

Maybe you are looking for

  • Key mapping to extension.

    Hi, I have setup Exchange 2010 with Unified Messaging role and Lync 2010. They are integrated and working fine. I also have a prompt that says: "Welcome to CompanyABC. If you know the extension number of the person you wish to speak to, please dial n

  • Unattended install oracle ODBC

    Hi, I'm trying to install the Oracle ODBC client on a W2K server. This server is a Terminal server. This server is being installed completely unattended. For one of our new programs on the server we need an ODBC connection to our Oracle Server. We tr

  • Depreciation on bonded materials

    Hi experts My client is a software developer. They procure computer systems, how ever they does not pay custom duty and the goods are managef as bonded goods. I wish to  know whether asset management can be implimented for these bonded goods. I also

  • Officejet 6400 Prints "Best" Mode Only

    No matter where "Print Quality" is set, I get only "Best" mode print quality.  I have reloaded the printer firmware and the drivers in my PC (XP OS).  Nothing changes.  The problem occurs from multiple PC's on my LAN so it is likely not in the driver

  • How to get a  pop up window from a jsp  form?

    hello, i need to get a pop up window when i click a button on a jsp form page. then i have to enter some values and get the result on this child window by clicking a button for calculation on the same child window. what mechanism should i follow for