How can i run servlet in netbeans

i am new to jsp & servlet. i am using netbeans 6.5 and tocat. i can not understand wehere to save the jsp & servlet
files.please help me.

Create a new Project
> Enter ur project Name
> By selecting finish u can create a new project only with Servlets & JSP
     > If you want to include Enterprise framework select on you requirement.
Create a new file
     >Choose the type of file as Servlet
     >then input your servlet name
     >Here you can change Servlet Name and URL-Pattern for your servlet
     >Default is considered as ur servlet file name
Do stuff in servlet
     >Compile and Run
Hope these steps are helpful for you

Similar Messages

  • How Can I Run Servlet in tomcat

    Hi My Friends
    Please can any one tell me how can I Run Servlet in tomcat using my own Virtual Directory � my ask about , what is the structure it must be make it in the hierarchy of the sub folder of Virtual Directory , and in watch folder it must be put the servlet files and there is any change it must be make it in any file of the tomcat files and so on
    Please give my full details about this thing
    And thanks

    What version of Tomcat are u using?

  • How can i running servlet in tomcat 4.1

    sir,
    i want to know ,what are the settings?i have to do before running a servlet
    i installed tomcat4.1 in C:\Program Files\Apache Group\Tomcat 4.1.
    but i reffered a lot of tutorial ,i couldnt understand that.
    and also i set jsdk path;

    u need to set the path and classpath in command prompt.
    Create a directory on c drive say "c:\job_todler" and enter ----->
    set the path =c:\jdk1.3\bin;%path%
    set classpath = c:\Apache Group\Tomcat\Common\lib\servlet.jar
    Now come to,
    c:\Apache Group\Tomcat\bin>set JAVA_HOME=C:\JDK1.3
    c:\Apache Group\Tomcat\bin>set CATALINA_HOME=C:\ApacheGroup\Tomcat
    c:\Apache Group\Tomcat\bin>startup
    bye

  • How can i run a jar file as EXE on mouse click..

    *{color:#0000ff}how can i run a jar file as EXE on mouse click..is it possible in any way?????????{color}*

    amrit_j2ee wrote:
    *{color:#0000ff}how can i run a jar file as EXE on mouse click..is it possible in any way?????????{color}*Do you mean converting it from a jar file to an EXE file or do you mean that you would like to run the application by just double clicking it?
    If it's the latter then you need to make the jar file including a manifest.
    The manifest can be just a txt file with its content to be something like this:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.7.1
    Created-By: Somebody
    Main-Class: NameOfTheMainClass
    Class-Path:
    X-COMMENT: Main-Class will be added automatically by buildTo make the jar file including the manifest, use something like this in your command prompt (of course you must have compiled your java file(s) first):
    jar cfm test.jar MANIFEST.txt NameOfTheMainClass.classAfter that you'd be able to run your application just by double clicking it.
    If you're a NetBeans user, you can build your standalone application by right-clicking your project and then going to properties => run => and choosing a Main class. After that right click on that project and "Clean and Build", locate the jar file in the "dist" folder and double click it =]
    Hope it helps,
    LD

  • How Can I Run A SQLJ Normal Project In SAP NWDS

    I have a question about SQLJ in SAP NWDS.
    1.I created a java dictionary project,and then create the table , then depoly it.it's ok.
    2.I created a java normal project including the above java dictionary project.
    3.I used the SQLJ tech in the java normal project,exporting the opensqllib.jar,sqljapi.jar,sqljc.jar,sqljimpl.jar.
    4.I coded the normal project,and export the project .jar,everything is ok.
    <b>5.But when i runed the project in NWDS,the error appeared:java.lang.NoClassDefFoundError: com/sap/sql/log/OpenSQLException
         at com.ezkj.deom.sqlj.MainApp.main(MainApp.java:21)
    Exception in thread "main"</b>
    How Can I Run A SQLJ Normal Project In SAP NWDS?
    PLS Help me and don't let me alone!

    Tony,
    Why not try to import your SQLJ project in SAP NWDS. Add all the jars mentioned to the project path both for compile time as well as runtime. Now try running he project. Once you are able to bypass java.lang.NoClassDefFoundError, you will get other errors related to SQL statements. These Oracle SQL statements needs to be converted to OpenSQL format.
    Chill out!!!
    Sukanta Rudra
    Note: If helpful, plz donate some points.

  • How can I run the report for different input values at the same time?

    Reports version: Report Builder 6.0.8.13.1
    Oracle version: Oracle8i Enterprise Edition Release 8.1.7.0.0
    I want to run the same report for different input parameter values and spool each o/p to different file and ftp to a server. For this, as a first step, I am spooling different input values in to a file, reading those values through a loop and calling the report for that input values. Each report run/execution is taking 15 minutes. Total report execution is taking approximately 4 hours (assuming 16 different input values) to complete. So I have to wait 4 hours to see ALL outputs.
    I would like to run the report parallel for ALL the input values and I should be able to see the ALL outputs with in 15 or 16 minutes.
    In my shell script, I added & symbol at the end of the report call to start/run the job in the background. Due to this the control passed to the next step after the report call. At this place I have an ftp command to send the output file to a different server and it is giving error some thing like “o/p file is not available/created yet". This is due to the fact that report writer is NOT yet completely started/initiated or it is NOT completed the spooling.
    How can I run the report at the same time for all the input values and save the time?
    Thanks in advance.
    Kishore.

    Increase the number of server engines running right now it seems there is only one engine running ,increase it to 4 or 6
    and then atleast 4 or 6 reports will run simultaneously.
    For FTPing the output add to your sript to check whether it is locked and if not then only try to ftp .
    Also for more better functionality read the document (chapter 15 ) for 10g reports for its new fuinctionality.
    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/toc.htm
    Thanks
    Subodh

  • How can I run 2 keynote presentations on 2 different macs with only one keyboard?

    How can I have 2 different keynote presentations that I want to run simultaneously through 2 different projectors, but I'd like to try and avoid using 2 keyboards - and use a hardware solution, rather than relying on my 2 fingers!! (it's a long conference!!!) thanks for any help.

    Open the CSS in DW, and use F10 to open the Code Inspector.
    Place the
    latter as needed.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Random_Yggdrasil" <[email protected]> wrote
    in message
    news:gi2htb$j4j$[email protected]..
    > How can I run 2 Dreamweaver windows at the same time on
    my PC?
    > basically I have 2 monitors and I want to edit CSS on
    one monitor and have
    > the
    > html page open on the other so I can quickly look from
    one to another with
    > in a
    > split second instead of taking that extra time to switch
    back and forth
    > using
    > the tabs at the top, I know I should probably invest
    into a mac so i can
    > work
    > out side of the Dreamweaver application window and I
    will in the future
    > but is
    > there any way i can do this on my windows XP pro PC?
    >
    > Thank you
    > Maurice
    >
    >
    >

  • How can I run a vga monitor and projector together on my Mac Pro 15"??

    How can I run a vga monitor and projector together on my Mac Pro OSX 15"?

    You can upgrade to Snow Leopard, Lion or Mountain Lion (coming next month), but you need Snow Leopard to upgrade to Lion or Mountain Lion. Check this web to know how to add memory to your computer and the memory that it supports (probably, 3 GB).

  • How can i run a java class file from shell?

    Hi all,
    I've a .class file named "File" that contains Main method, it is in the package "File2".
    How can I run it by shell command?
    PS: "java -cp . file" doesn't work it launch->
    Exception in thread "main" java.lang.NoClassDefFoundError: File2/File (wrong name: File2/File)
    Thanks in advance.

    Just to understand: is File2 ar jar archive or not? If it is a jar archive, have you tried open File2.jar? If File2 is a directory within the current directory, have you tried java -cp . File2/File? I just tested with a set of classes and it works... Let me be precise:
    * Let us imagine you are working in a directory whole path is PathToDir/
    * in this directory you have the classes put in a directory called File2
    * in order to launch File.class then you would have to invoke :
    cd PathToDir/ (just to be sure)
    java -cp . File2/File
    *if you were to do the following then you would have the problem you describe
    cd PathToDir/File2/
    java -cp . File

  • How can I run a packet sniffer on a Router or Switch

    I have on my network several router 1700 series and switches Catalyst 2950 and I want to know how can I run ethereal on those babies to monitore what comes and goes

    The two most common methods would be (the old way) insert a hub (not a switch) in-line between the devices withthe traffic you wish to monitor or (the new way, for Cisco anyway) using port mirrroring.
    A hub (not a switch) will repeat every pulse that passes on the line to the analyzer.
    Since finding a new hub these days is virtually impossible (even some of the things sold as hubs are really switches), the more common way, at least in Cisco environments, is to "SPAN" (aka Port Mirroring) the port of the device whose traffic you'd like to monitor.
    Here's the setup guide for a 2950:
    http://www.cisco.com/en/US/docs/switches/lan/catalyst2950/software/release/12.1_19_ea1/configuration/guide/swspan.html
    Good Luck
    Scott

  • How can i run a special name method of class?

    i dynamic created a obj
    and i don't know the method of class,
    so i use a String parameter as the method's name
    but how can i run the method?
    please give me a copy of code, thanks!

    import java.lang.reflect.Method;
    public class unknown{
         public static void main(String[] args){
              unknown thisObj = new unknown();
              Class thisClass = thisObj.getClass();
              // calling the method()
              try{
                   Class[] allParamatersType = {};
                   Method mth = thisClass.getDeclaredMethod("method", allParamatersType);
                   String returnCallingAdd = (String)mth.invoke(thisObj, null);
                   System.out.println("calling add() : " + returnCallingAdd);
              catch(Exception ex){
                   ex.printStackTrace();
              // calling the method(int , string)
              try{
                   String firstValue = "Testing";
                   Class[] allParamatersType = { firstValue.getClass() };
                   Object[] values = { firstValue };
                   Method mth = thisClass.getDeclaredMethod("method", allParamatersType);
                   String returnCallingAdd = (String)mth.invoke(thisObj,values );
                   System.out.println("calling add() : " + returnCallingAdd);
              catch(Exception ex){
                   ex.printStackTrace();
         public String method(){
              return "method() called";     
         public String method(String two){
              return "method(String) called";     

  • How can I run a Flash Projector(exe) under GNU/Linux without wine?

    I was received a flash on projector type(exe), there's no another swf file on there.
    I'd like to ask: How can I run that on a Linux?
    Thanks for reading and paying attention.

    This sounds like a question for the linux distribution forum that you're using.  The .exe is a stand alone executable, if you can run win32 binaries then you should be able to run this.
    Thanks,
    Chris

  • How can I run a a class file on the Apache server?

    Hi Guys and Gurus,
    I am seeking some favor all of experienced gurus, i.e.
    How can I run a a class file on the Apache server?
    Actually, I want to extract some records from a MySQL Database running on Apache Server. I wrote a program just to select the columns and show them. It is now a Class file, Now how can I run this class file from the Server???
    Please advise...
    VJ

    cross posted
    http://forum.java.sun.com/thread.jsp?thread=299137&forum=31&message=1184025

  • How can i run a jar file?

    hi there
    how can i run a far file on my pc. i have installed JRE 1.3.1, and set the classpath to C:\Program Files\JavaSoft\JRE\1.3.1_02\bin for the user variables, what else do i need to do to run it?

    Hi everyone.. i had a funny problem. Microsoft removed from registry and system the vm and i got the problem of java.dll and the registry problem when compiling.
    How did i resolve that?
    too easy:
    1. go to the registry and search the key "JavaSoft"
    2. add a Key with the name "Java Runtime Environment"
    3. select the new key and add a alfa-numeric Value with the name "CurrentVersion"
    4. set the value c:\jdk1.4 //the place of your jdk-version
    5. insert a new Key with the name "1.4"
    6. go to the new key and add an alfanumeric value with the name "JavaHome" and put the value c:\jdk1.4\jre\lib
    do this where you find the key Javasoft (in my registry was twice)
    i did it and got no problems

  • How can i run a Package

    Hi Experts
    How can i run a Pakage
    it means what the syntax for this to run a package and procedure also.
    regards
    Atul

    See [http://java.sun.com/docs/books/tutorial/java/index.html]

Maybe you are looking for

  • How can I get BT to remove the DACS on my phone li...

    I spent nearly two years trying to get Talk Talk to sort out braodband with no joy so I decided to move to BT in the vain hope that they may have more chance of sorting out the problem.  When speaking to an adviser they said there is a DACs on my pho

  • Migrating EBS R12 from Solaris 9 to Solaris 10

    Hi Did anyone tried migrating EBS R12 from Solaris 9 to Solaris 10? Regards

  • Where is the source code of custom UI page written

    hi experts, I am currently working on CRM 6.0 we have the standard UI page in SAP ,on which we  have added our enhancements.Now I need to know where is the html code for the standard page is written,since I need to add a meta tag in that code.I know

  • T400 speakers not working - headphone jack functional?!?

    That happened some weeks ago, no software or hardware changes were made prior to speakers gone mute. The other day however speakers were back from malfunction and operative again 100% - for no apparent reason, but as soon i plugged headphone jack in

  • NAT Translating Destination IP and Port

    Hi I have posted this in the Routing and switching forum but thought i'd post it in here too as it realted to web security I am struggling with NAT  translation on a Cisco router. I want to translate all HTTP traffic  that exits my network to change