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

Similar Messages

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

  • How to separate two contact with same name

    Hi, anyone knows how to separate two contacts with same name in Contacts?  Actually they are two persons from two gmail contacts with same name but different contact numbers, different emails....etc, but Contacts assume they are same person and merge them as one!

    FG,
    In Lion, you have the File > Duplicate option. You will then have two copies of your document open, and the one on top will have the temporary filename "OriginalFileName copy", and your next responsibility is to File > Save (or Command-S) and rename the duplicate. At this point, you edit the copy's name, to perhaps ...copy 1, or whatever you wish. The document you had open when you initiated the File > Duplicate will still be there on your screen, waiting for you to Close it or continue editing.
    Jerry

  • How to put two files with the same name into the same folder?

    How can I put two files with the same name and the same extention into the same directory?
    Is this even possible?
    Thanks in advance. 

    Are you sure? I would be very surprised if that was the case.
    How does the computer/filing system differentiate the files, if not by their names?
    How do you tell the computer which one you want? (On the command line.)

  • How to run .exe files with Virtual PC for Mac

    Hey Guys, I'm new around here and with mac technology as well. Anyway, I have an iMac OS X 10.5.1 Leopard and I've recently purchased the Virtual PC for Mac 7.0.2 software. So I'd like to know how to use this program properly, because I need to run some executable files in my computer. It is confusing for me because I don't know how to get started, and I only get to the part when it says "OS not found, Install an OS on this hard drive".
    Honestly I've no idea of what an OS is or where do I get that. So I'd really appreciate if one of you guys could tell me, step by step, what to do to use Virtual PC properly, and finally learn how to run .exe files on mac.
    Thanks in advance!
    Have a nice day!

    Always nice to see new faces
    Honestly I've no idea of what an OS is or where do I get that.
    This brings up the second part of your problem. The first part is setting up either a proper Virtual Machine program like Parallels or VMfusion, or setting up a Boot Camp partition on your drive.
    http://www.parallels.com/
    http://www.vmware.com/products/fusion/
    OS stands for Operating System. You are running Leopard 10.5.7 as an operating system on your Mac (MacOS X).
    The second part of your problem - You will need a copy of Windows XP or Vista if you want to run Windows on your Mac.
    There is at least one other solution for running Windows programs on a Mac. It's called "CrossOver" by a company named 'Codeweavers'. It's based on a project for "Wine" to be able to run PC programs on a Mac or Linux, without having to buy or install Windows. It works with a narrow subset of Windows programs so you would want to make sure the program you want to run is compatible with CrossOver before you buy it.
    http://www.codeweavers.com/products/cxmac/
    In addition to all the above information, you need to upgrade your Mac to the latest 10.5.7 from 10.5.1. "Software Update" is located under the black Apple icon in the Menu Bar at the top left corner of your monitor. After you are updated you will want to update your Profile here so that it shows the proper OS version.
    With your level of experience with MacOS X and the Windows OS's you should probably get some help from a local Apple store. They have an appointment system and do offer many types of help and training, and they can offer assistance with choosing the proper programs for you to purchase for your machine.
    You are also welcome to continue to ask questions here, of course. You will want to ask your questions with different issues that come up in different threads so that the answers stay focused on the title of the thread.
    Message was edited by: dechamp to try to be more accurate with a fairly complicated issue...

  • How to run jar files with arguments?

    Hi everybody,
    Is it possible to run a jar file with arguments passed to its MAIN class?
    If yes can you help me on how to do it?
    Thanx

    I am in complete agreement with FahleE. I'll refine it a bit.
    On my machine (running RedHatLinux8.0) you can run the demos like this.
    1. open a console window
    2. go to the directory where the demo you wish to run, say, demo.jar, is located
    for instance for the SwingSet2-demo
    cd /usr/lib/java/demo/jfc/SwingSet2
    3. run the jar file
    java -jar demo.jar
    In order to run it windows style, ie, launching by double clicking, save these lines in a file called
    LaunchJar.sh
    cd /usr/lib/java/demo/jfc/SwingSet2
    java -jar demo.jar
    where demo.jar is the jar file you want to run.
    Right click on the LaunchJar.sh and go to the 'Properties' tab. Check the 'Execute' permissions for Owner/groups/others. You can also do the same thing by chmod command.
    Now double-click on the LaunchJar.sh file: your application should be launched.
    Palash.
    Please Note: It is important to set the path variable to your JAVA_HOME directory....
    Otherwise, instead of
    java -jar demo.jar, you will need to use the full path to your JAVA_HOME/bin directory like:
    JAVA_HOME/bin /java -jar demo.jar.
    Where JAVA_HOME is the directory where you have installed java. Typically it is usr/java or usr/local/java

  • How to get two fields with same tech name in LIS Extractors?

    Hi Experts,
    I need "ERDAT" field from two structures (QMSM & QMFE) in 2LIS_18_IOTASK extractor.
    In LBWE first I moved ERDAT from QMSM. When I moved ERDAT from QMFE it gives an error:
    "Field with same technical name is already available in the Extract Structure".
    I don't want to create Append Structure as we need to write User exit.
    Can any one tell me how to get this field added in the extractor from QMSM and QMFE?
    Thanks for your help.
    Regards,
    Sree

    this is not possible as the all those fields are put in one structure. per definition you can't put the same field name twice in a structure, table in the data dictionary...
    hence, you really need to use an append and fill via user exit
    M.

  • How to run jar file with classpath?

    Hi, all,
    I have some package in my project, with which I have a java help jar file as classpath, when I run my project, I need the jh.jar file in directory /jar/jh.jar.
    Now, I bundled all my class packages into a jar file, my.jar, together with the /jar directory. When i run my jar file with command:
    java -jar my.jar
    It tells me couldn't find javahelp class.
    What shall I do? How can I create my jar file with the jh.jar?
    Thanks in advance.

    Thanks, hjembaek,
    But it doesn't work for me. I am running in windows, it still generate the error:
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/help/HelpSet
    at own.gui.OwnMenuToolBar.getOwnHelpBroker(OwnMenuToolBar.java:560)
    at own.gui.OwnMenuToolBar.addHelpMenu(OwnMenuToolBar.java:327)
    at own.gui.OwnMenuToolBar.getOwnMenuBar(OwnMenuToolBar.java:188)
    at own.gui.OWNDPTool.initGui(OWNDPTool.java:55)
    at own.gui.OWNDPTool.<init>(OWNDPTool.java:39)
    at own.gui.OWNDPTool.main(OWNDPTool.java:100)
    Here is my command to generate the jar file:
    jar cfm Own.jar temp.txt help own log others
    temp.txt is the file including the main class and class path information
    I have help folder, log folder and own package, others is directory that has the jar file(others/jh.jar)

  • How to create two employees with same name as supplier record?

    Dear all,
    We need to create a supplier record for an employee so that we can issue invoice for pretty cash payment. If there are 2 employees with same name, how can we create supplier records for these 2 employees? The system does not allow duplicate supplier name.
    Please advise.
    Regards,
    HY

    Hello,
    In R12 it is possible to create 2 employee with same name but different employee number.
    And also possible to create these 2 employees as suppliers in Payables.
    HTH,
    Vik

  • How to run two programs with one PC and two monitors

    Good Morning,
    I have a requirement to run a parallel loop and update the progress in two monitors with one computer.
    For ex: its a two test stage, the process and progress of the 1st stage needs to displayed in monitor1 and similarly for 2nd stage to monitor 2 with program running with one computer.Would it be possible to do that.
    Thanks in advance

    Hi Parker,
    yes, it's possible. You also have properties to set windows to specific monitors...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to run .exe files with DAQ on a target PC?

    Hi,
    I want to run LabVIEW executable files on a target PC, where there is no LabVIEW installed. These files are used to do measurement using DAQ devices.
    In order to run these .exe file, I guess that I should install both LabVIEW Runtime Engine and NI-DAQmx on the target PC. Is it right?
    I'm wondering if it is mantatory to install NI-DAQmx on the target PC. I tried running .exe files without NI-DAQmx installed, but there was an error: nilvaiu.dll couldn't be found. Shouldn't this file be included automatically when building the executable files?
    Thanks,
    Qifu

    No, none of the hardware drivers are included in the LabVIEW exe that you build. You have to install DAQmx. With LabVIEW 8.x, you can include the DAQmx driver with the installer that you create. You also have the option to install different versions of DAQmx. These different versions are smaller than the full DAQmx install (i.e. you may choose to install documentation, MAX. etc.). When you create the installer, you also inclue the LabVIEW run-time and you should also choose to install the hardware configureation that is in MAX.

  • How to mass-reindex files with same name but different file extensions

    (reposting cos I'm confused about if I posted in the proper place before. Please delete if it is a repost.)
    So I'm on a remote workflow. I pick all the raw data and convert it in two quality standards, one on 'high' with full specifications and one on 'low' so I can send 2gb instead of 80gb of files through the internet for me to work remotely on, and to speed up the overall work rhythm because files are lighter. All I need to do is to work at my home with the low quality files, send it back to the client's computer after finished, re-index all files in their high resolution twins and we are good to go to finish the product with highest quality possible. But both high and low quality files need to be the same extension, that I picked .mp4 for it is the standard for pretty much anything.
    The point is, if I want to go full mobile, I only have an old HP Pavillion notebook and I really need to work with a video codec that goes very easy on it. I can only think about some 16:9 DV format. But the point is, this format generates a different file extension than my .mp4 standard, and Premiere, to my knowledge, really can't reindex files using only the file name while ignoring the file extension. It really should. And I really need to know how.
    We also need to consider Premiere versions that allow themselves to be installed at x32 processors. My desktop is x64 and I really have no problem to work on these standards, the problem is, in my notebook I really can't.
    So, halp?

    i want to say it was added in cs7, which requires subscription, so in that case might as well be using latest version 8.  if you had to use an older version like cs5, you could still use h264 or low bitrate dnxhd/prores codecs inside a quicktime .mov file. that would allow you to have same file ext on both versions of files.

  • How to run two applications from same application server

    hi,
    i am working on oracle application server 10g , is it possible to run 2 applications from one application server by using different url ? but same report server name .
    if i can do so plz tell me how ?
    regards

    hi,
    offcourse,you can do this you.you can deploy n no of applications on a single application server.
    and even you can run all the reports on a single report server
    to the below location.
    $ORACLE_HOME/forms/server
    create a new enviroment file(for eg fd.env) using the default.env as follows and make the following FORM_PATH and REPORTS_PATH changes in the fd.env
    FORMS_PATH=/oraApp/Ora_bi/forms:/oraApp/backup_29_11_2010_0.12/fd/pll:/oraApp/backup_29_11_2010_0.12/fd/forms
    REPORTS_PATH=/oraApp/backup_29_11_2010_0.12/fd/reports
    similarily create another env file (eg appr.env) and make the above changes in it.
    Now make the following changes in formsweb.cfg
    for example:
    [xyz]
    envFile=appr.env(env file name)
    form=xyz.fmx(your start form)
    lookandfeel=oracle
    separateFrame=false
    userid=appraisal/[email protected]
    splashscreen=NO
    logo=NO
    background=NO
    color=automatic
    render=yes
    archive=frmall.jar
    archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar,ofasIcons.jar,icons.jar,OfasPrint.jar,newicons.jar(these jar file are the images files of your applications..needs to be stored in $ORACLE_HOME/forms/java.
    imagebase=codebase
    term=frmpcweb.res
    baseHTML=webutilbase.htm
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    WebUtilArchive=frmwebutil.jar,jacob.jar
    [fd]
    envFile=fd.env
    form=fd.fmx
    lookandfeel=oracle
    separateFrame=true
    userid=fdmmfsl/fdmmfsl@mmfdlive
    splashscreen=NO
    logo=NO
    background=NO
    color=automatic
    render=yes
    archive=frmall.jar
    archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar,icons.jar
    imagebase=codebase
    term=frmpcweb.res
    baseHTML=webutilbase.htm
    baseHTMLjinitiator=webutiljini.htm
    This depends on your application which your deploying
    now for about accessing the seperate application then
    use as follows
    1st application
    http://ip address:7778/forms/frmservlet?config=xyz
    2nd application
    http://ip address:7778/forms/frmservlet?config=fd
    you can even deploy 2 war files on one application server...and you can even make these 2 war files to access the same report server
    If you require any other help then do let me know
    Regards
    Fabian D'souza

  • How to create two prompts with same named object?

    Hi to All,
    I am a new user of OBIEE. Actually have only one column called creation date in my report. My requirement is in dashboard, I need to display two text boxes in same prompt with the name Beginning creation date and Ending Creation Date. Actually, I was able to do it with the operator "Between" but when i am doing it, I was not able to determine how can we get the values entered by the user for beginning date and ending date because both dates will get stored in the same prompt only (ie) in my "Creation date" prompt.
    Also, I have an another question, In a single prompt I need to repeat the same object more than once. But When I tried it shows the error "same column exists.. so this action will be ignored". Please help.
    Thanks in Advance,
    Thenmozhi

    Thenmozhi,
    You can think about having 2 different prompts: the first one with the operator >= and the second <=.
    For your second question you cannot have the same column in the same prompt more then once
    Regards
    Adil
    PS:Please assign points and close the thread when your question is answered

  • How do I add files with same name to a folder

    I have photos with the same name and want to add all to the same folder.  I dont want to have to manually change the nams is there an easy way to do this.  In windows I would have the option to keep both and it would change the extn of one of the files.  Gary

    You have to do that manually, but why not set your camera to number photos sequentially?
    However, there is an App called A Better Finder Rename available from the App Store that can rename files.
    Or from here:
    http://www.publicspace.net/ABetterFinderRename/

Maybe you are looking for

  • Thai characters

    Hi, I use Indesign 7.0.3 on a mac running osx 10.6.7. I have a text using thai characters in Lucida Grande font, the thai characters are drawn (and print) as empty boxes but if I copy-paste the thai characters they are ok : khun  phouying    คุณผู้หญ

  • How to mirror soft partitions in solaris 10

    I have created a few soft partitions on my disk using SVM and now wish to mirror the disk with the redundant one. At the time i give the metainit command to create the mirror, it gives me an error : invalid unit for the metadevice from which i have c

  • Need information abt ESS/MSS services?

    need information abt ESS/MSS services?

  • Thousands of duplicates

    Please help! I have just had to format and reload my PC due to some scrote phishing and putting spyware on it. I have my music library backed up so all music is OK. I connected my iPod and now I hve 3000 plus duplicates. This means that my library wi

  • Tabbed Pane shapes

    I'm having trouble with changing the shape of the tab for example the default shape of the tab is rectangle i want it to be a bit oblique however i have no idea if this is possible or not.