How could i run two file of same url mapping

hi,
i am very new to servlet technolgy using weblogic 8.1 server. i want to know that can i provide same url mapping to two diffrent servlet files.if yes then how could i run files seperatly - i want to know that what should i pass in the address bar.
my directory structure is
C:\ ----------> helloWeb
|
|----------->WEB-INF
|------------>classes
and suppose i have two files in helloWeb directry
1) ajitAutomobile.java
2) ajitAutomobileUpdate.java
i m using "http://localhost:7001/helloWeb/man" in my address bar but it executes only the first servlet added.
plz help me
im confused...
thanx for any answer

You can not map two servlets to the same url because the servlet container will just send the request to the first url mapping it can match. What you can do is map one servlet that will check the request for a parameter that flags the request and if it finds it will forward the request to the next servlet.

Similar Messages

  • How to run two files with same url-  urgent

    hi,
    i created two servlet page and both are working very fine.but at same time i only able to run one file with same url. Is possible to run two or more file at same time with same url name..
    if you r not understanding what i want to ask then, i have two file names under helloWeb directory
    1) helloWorld.java(servletname s1, url /man)
    2) helloWeb.java (servletname s2,url /man)
    to run - http://localhost:7001/helloWeb/man - it runs very first file which is added to deployment module.
    so i want to know how i can run both file with same url, for this what i have to pass on my address bar.
    plz help me i m wating
    <b></b>

    Hi,
    We can give same url mapping to both Servlets but we can access the servlet which is entered first in web.xml because whenever we send a request to the webserver then webserver look at the elements in web.xml file one by one.
    When it finds the corresponding url mapping then immediately sends the response to the client.The same url mapping for the next element will be ignored.
    I think there is no possibility to access both servlets with same url.
    Regards
    Anilkumar kari

  • 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.

  • How could I convert pdf file to real url?

    How could I convert pdf file to real url?

    Many thanks Gilad
    But the link of Acrobat is not working in facebook, that is Why I mentioned a real URL " Web-page

  • JDev9i-Beta;How could I run two JSP applications in Jdev enviroment at the same time?

    Hi,
    I have two JSP applications located on different directories. I wanted to run both applications at the same time in Jdev enviroment. But the second one failed.
    More info:
    I successfully ran Application1, then minimized the browser and ran Application2, then again minimized the second browser. After I maximized the first browser(Application1) and tried to go thro pages, I received page not found. Because Jdev sat up the Class Path for the newer application(Application2) and looks for pages there. I believe thats why I could not run both at the same time. How could I get around of this?

    hi,
    can you provide more details on this. Are these jsp files part of the same project or different projects. I can not duplicate this issue. Please provide us more information.
    Thank you

  • How to write run.bat files

    Can anyone tell me how to write run.bat files to run java classes. Currently my run.bat file has the following two lines,
    c:\j2sdk1.4.1_02\bin\javac.exe *.java
    c:\j2sdk1.4.1_02\bin\java.exe questionnair
    But the class is not executed. Thanks in advance.

    you'll have to provide more details.
    Firstly, which package is the class a part of? and secondly, where on the filesystem is the root of the package?
    You might also benifit from placing the c:\j2sdk1.4.1_02\bin\ into the classpath.
    On a rainy day, check out the ANT tool, it will take care of all that crapola for you.
    newio

  • I want to know that two file are same or not.

    Hello.
    My English ability very poor.. sorry
    I want to compare two file
    if file is same return true
    else return false;
    I select file using JFileChooser.
    and read the file using fileinpustream
    then, trans byte array using byteArrayOutputStream..
    I use equlas() method...
    file1Array.equals(file2Array)
    I want to know two file are same or not
    How can I...

    If you want to test whether the two files are the same, you can test for their complete filename (path + filename).
    If you want to test whether the content of the two files are the same, you can convert the byteArrayOutputStream to Strings using .toString()method and test their equality. You can test for their size before the convertion to speed up the testing speed. E.g.
    ByteArrayOutputStream s1 = ...
    ByteArrayOutputStream s2 = ...
    if (s1.size() == s2.size()) {
    return s1.toString().equals(s2.toString());
    } else {
    return false;
    }

  • Run two Skype accounts, same phone

    How can I run two Skype accounts on the same Android phone?

    In order to use 2 Skype accounts on the same phone, you need to switch between accounts back and forth by signing out of one and signing into the other. 
    To do that, press on the phone menu button while you are in Skype page then choose Sign Out from the menu that will appear. You will be directed to the sign in screen. Enter the other username and password

  • I could not open my camera raw files from canon mark iii with my photoshop CS5. Tried to update Camera raw 6.7 but failed to install. Message said 'There was an error downloading this update. Please quit and try again later'. How could I open Raw files ?

    I could not open my camera raw files from canon mark iii with my photoshop CS5. Tried to update Camera raw 6.7 but failed to install. Message said 'There was an error downloading this update. Please quit and try again later'. How could I open Raw files ?

    Try installing it manually from:
    Adobe - Adobe Camera Raw and DNG Converter : For Windows : Camera Raw 6.7.1 Update
    Adobe - Adobe Camera Raw and DNG Converter : For Macintosh : Camera Raw 6.7.1 Update
    Regards,
    Ashutosh

  • How do i run two threads with different sleep times?

    How do i run two threads with different sleep times?
    Ive got thread A and thread B, they both update a jpanel.
    They both start when i press the start button.
    However thread A updates every 250ms and thread B updates every 1000ms. i cant just run them both at 250ms becuase this will mess it up.
    So for every four runs of thread A i want thread b to only be run once
    Does anyone know how to do this?
    Thanks, Ant...

    ok, ive done it but now i cant stop it!
    ive added buttons to start and stop, the start button works but the stop button doesnt. why doesnt "t.stop();" work?
        public void run() {
            while(t == Thread.currentThread()) {
                System.out.println("No " + t.getName());
                if (t.getName().equals("1")){
                    try {
                        t.sleep(1000); // in milliseconds
                    } catch (InterruptedException e) {}
                } else{
                    try {
                        t.sleep(250); // in milliseconds
                    } catch (InterruptedException e) {}
        }

  • HT1347 How do I run two libraries from one computer?

    How do I run two libraries from one computer? One library is on the computer's hard drive, the second library is on an external hard drive. The computer that had the external hard drive crashed and I need to fix the iTunes library on it. How can I do this without corrupting the library on my internal hard drive?

    Launch iTunes with the Shift key held down and either create a new library or choose the one on the external drive. Any rented movies downloaded from another computer won't play.
    (81212)

  • SOMEBODY AWNSER PLEASE....(HOW TO EXECUTE/RUN XML FILES IN WLS6?)

    Hi all,
    Please help me out on my XML question as my Cocoon is no longer working.
    The question is titled HOW TO EXECUTE/RUN XML FILES IN WLS6.
    Thanks in advance.
    snodx

    look at the samples bea\wlserver6.0sp1\samples\examples\xml
    ~
    Namaste - I bow to the divine in you
    ~
    Filip Hanik
    Software Architect
    [email protected]
    www.filip.net
    "snodx" <[email protected]> wrote in message
    news:3b4e83dd$[email protected]..
    >
    Hi all,
    Please help me out on my XML question as my Cocoon is no longerworking.
    >
    The question is titled HOW TO EXECUTE/RUN XML FILES IN WLS6.
    Thanks in advance.
    snodx

  • HT5293 my xmoviex doesn't work .how could i run it?

    my xmoviex doesn't work .how could i run it?

    What kind of email accounts are they?
    Are you able to receive or send?

  • Ust purchase an iphone 4s and need to know how could i transfer all files including (contacts, pictures, music, notes and ect.... from sd card or any external card to iphone 4s, please advise thx

    ust purchase an iphone 4s and need to know how could i transfer all files including (contacts, pictures, music, notes and ect.... from sd card or any external card to iphone 4s, please advise thx.

    You need to put all of your info on your computer and then sync it to iphone.

  • How to check wwheter two files are the same?

    Hi,
    I need to check wheter two files are the same. Their names and paths may be different. How to do that? Do u have any links / examples?
    Important notice: Files used in the application will be big (ie 1, 2gb)

    Comparing a hash, if you have to calculate it each
    time, is bound to be slower than a byte by byte, or
    character by character compare.
    This kind of comparison is used mostly in things like
    content management systems, when a new file of data
    is checked to see if it's identical to a file already
    entered, hash values being stored for each file
    already in the system.
    And comparing the hashes can only prove the files are
    different, if the hashes are equal that doesn't
    absolutely guarantee that the files are the same.
    Normally you'd confirm a matching hash by actually
    comparing file content.Depends on how good your hash is..but in general...yes. I was only saying that it's faster if you're always maintaining a has of the file.

Maybe you are looking for

  • Can't get battery to charge - please help before I pull my hair out

    My daughter and I both have the Curve 8530, first, her battery didn't seem to hold a charge very long, then her charging port stopped working.  So we started swapping the batteries.  When hers was low, I would give her mine with more charge and charg

  • Error while extending iSupply Portal VO

    I try to extending iSupply Portal PosPosummaryVO by create a new view object, and extend PosPosummaryVO. after sql statement step, I appear a error message " Each row in the Query Result Columns must be mapped to a uniqe Query Attribute in the Mapped

  • Printing solution for KDE?

    I just wondered if anybody had a good work around for the print dialog problems in KDE (and presumably QT apps generally). I guess some distros patch the sources but this seems to require recompiling QT which I'm not keen to do and the patches are fo

  • Jdeveloper 11g TP4: Connection refused error for Embedded Oc4j

    Hi, I am getting following error whenever trying to deploy any application in embedded oc4j or whenever try to connect with embedded server on Resource palette. Error while getting remote MBeanServer for url: ormi://127.0.0.1:23891/default: Error rea

  • How do I download effects, actions, etc into Photoshop CC?

    I am not sure how to download actions, effects, etc. into Photoshop CC.