How to create a virtual folder in JavaWebServer 2.0

hi,
i am new to Java servlets and JSP and i am working on Java Web Server 2.0. I know that the default folder for placing servlet class files is - "servlets" under the JWS 2.0 folder and that for JSP files is - "public_html".
I want to know how to make my folder ( say "myfolder" ) which is lying on c:\ , a virtual folder, where i can place my servlets or the JSP pages.
thanx in advance
ajay

[ajayubbott],
I am not sure if you should create another folder to house all your servlets when using Java Web Server 2.0.
The servlet invoker of Java Web Server 2.0 looks at the <server_root directory>/servlets/ directory as the root servlet directory by default and any servlets that is housed under this directory is monitored by the custom class loader provided by Java Web Server 2.0.
This custom class loader will automatically reload any serlvet class files that are modified i.e. a newer version of the servlet that is newly compiled e.g. change in functionality. What this means is that you don't have restart the web server to reload any new version of the existing servlets on the web server.
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/

Similar Messages

  • How to create a Virtual Path ??

    I want to know how to create a Virtual Path in My Application !!!
    that is HTTP link that refer to existing folder in the file system
    thanks

    Alias can never be mount, but the virtual drive I want to create must be able to mount and unmount.
    Desktop having both original and virtual drive.
    My system is booted from 'Snow leopard' and I've an another drive, name 'Disk Testing' so by using a software I create the virtual drivre of 'Disk Testing' as you can see in the image. Both the drives are identical to each other and both are able to mount and unmount, they are having same data and attributes.
    So I want to create exactly this kind of virtual drive by using any apple script or command.i.e without using any software.

  • How to create a document folder using ListData.svc

    Hi All,
    I've recently been put on a project where I need to use the REST services (ListData.svc) to retrieve and add documents to the document library. It all has been smooth sailing until I hit the point where I want to save a document in a path that doesn't exist.
    I get an error if I try to save a file where the folder structure doesn't exist. I then went about it a different way trying to create the folder structure first. This also didn't work and I get an error message saying that the entity type is marked with the
    MediaEntry attribute but no save stream was set for the entity. Not too sure what set for the save stream if I'm just adding a folder.
    So my question is can a file be added to a folder structure that doesn't exist where it automatically creates the folders. If not can the service create folders?
    Some sample code I've been using:
    var folder = new SampleDocumentLibraryItem();
    folder.Name = "Sample";
    folder.Title = "Sample";
    folder.ContentType = "Folder";
    folder.Path = "/sample/folder1/folder2";
    spContext.AddToSampleDocumentLibrary(folder);
    spContext.SaveChanges();
    Thanks in advance,
    Damo

    Hi All,
    Finally managed to figure this one out. For anyone who needs source on how to create a document folder. Some sample source is below...
    var folder = new DocumentLibraryItem();
    folder.Name = "Folder Name";
    folder.Title = "Folder Name";
    folder.ContentType = "Folder";
    folder.Path = path;
    spContext.AddtoDocumentLibrary(folder);
    spContext.SetSaveStream(folder, stream, false, folder.ContentType, folder.Path + folder.Name + "|0x0120009BCC19899CEBC6468FF4EEAC7B8CF4F5"
    spContext.SaveChanges();
    So the important differences in the code above. The content type of the object and stream MUST be set to "Folder". I'm not sure why but you still need to set the save stream to be a valid stream even though you're only adding a folder. So just keep the stream
    open and then pass "true" to close it when you actually save the file. The other important element as noted from the URL's in the previous comments is you need to add a "|" + Content Type ID of a folder. You'll be able to get this ID by visiting the rest service
    for an existing document library and view source to see the actual content type id for a folder.
    Thanks everyone for your help,
    Damo

  • How to create a new folder in my iPad hotmail?

    How toI create a new folder in my iPad hotmail?

    You can only do it with IMAP email account; to do this:
    1. Go to your email account in the Mail app and look at the window where your Inbox, Trash folder and Sent folder are.
    2. Tap the Edit button
    3. Tap Add Mailbox (bottom)
    Note: If there is no Edit button, your email account is not a IMAP account

  • How to create a new folder in my email box

    how to create a new folder in my email box?

    Organizing Mail
    http://support.apple.com/kb/HT5361

  • How to create a half fold template in Adobe Illustrator?

    Hi
    I wanna design a card by using adobe illustrator, but i have no idea how to create half fold template.
    Anyone can teach me how to create a half fold A4 template?
    Thanks alot !!

    Indeed, Monika. And then you have to trust them.
    Most know what they're doing (and if you know what you're doing, you can tell them apart by the answers they give you to your questions).
    They produce by certified standards and if you deliver exactly according to the specifications, you get what you want. They have automatic processes to check your documents and reject them when they don't conform to the specs.

  • How to create a new folder within the video folder in media

    Hi, I'm trying to figure out how to create a new folder within the video folder in media. I can easily create new folders within the pictures folder but not in videos.....Why??? Thanks in advance for your help.
    Message Edited by dany_s on 06-25-2009 03:58 PM
    Solved!
    Go to Solution.

    Hello,
    I think you can try two things : the soft reboot, and if it does not work, the hard reboot. Don't worry, you can't lose data with these two reboots.
    Soft reboot :
    1) Hit the three following keys at the same time :
    - Alt
    - Right Shift
    - Delete
    2) wait 2 minutes for the Blackberry to wake up.
    Hard reboot :
    1) your Blackberry device is on
    2) remove the battery and wait for a minute
    3) Put the battery back
    4) wait 5 minutes for the device to wake up.
    Please tell us if it works for you.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • How to Create a KM folder using Chinese text??????

    Hi All,
      How to Create a KM folder using Chinese text??????
    Plz help..
    Regards,
    Krish.

    Hi Julian,
      Frankly speaking, i donot know how to proceed!
      we have developed a UICommand (myCopyCommand). As per our requirements, we want to create a KM folder using Chinese text. And see how the copy command works across two different Chinese folders.
      I never tried creating KM folder's in another language.
    Can you please guide me in this regard.
    Waiting for your reply,
    Krish.

  • How to create local virtual web host ex. myserver.local?

    Hi
    I'm sorry but following steps in Yosemite Server help led me to nowhere.
    Could you please explain how to create local virtual web host ex. myserver.local?
    Thanks

    Hi Sergey,
    I assume that you mean virtual desktop storage location, which I don’t think that we can change this setting for an existing collection.
    You can create a new collection, during the creation process, you will be able to select a different storage location for new VMs.
    More information for you:
    Single Image Management for Virtual Desktop Collections in Windows Server 2012
    http://blogs.msdn.com/b/rds/archive/2012/10/29/single-image-management-for-virtual-desktop-collections-in-windows-server-2012.aspx
    Geek of All Trades: VM-Hosted RemoteApps - New Best Practice for Virtual Desktops?
    https://technet.microsoft.com/en-us/magazine/jj554307.aspx
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How to create a new folder at the specified FTP location

    Hi everyone,
    Please guide me for the following query:
    How to create a new folder at the specified FTP location if the folder does not exists at that location through ABAP program.
    Please guide.
    Thanks and Regards
    MP

    Have a look at the function group SFTP. Use function module ftp_command to create the directory sending the mkdir command.
    Use the where-used list to find sample programs.

  • How to create an Virtual resource Adapter in SUN IDM 7.1?

    Hi,
    Can anyone know how to create an Virtual resource Adapter in SUN IDM 7.1?
    Regards
    Damodar

    Hi Dinesh,
    Try using waveset.adminRoles
    Thanks

  • How to create a virtual directory using EPG

    Hi,
    Can anyone tell me how to create a virtual directory in the EPG that points to a physical directory in the database server?
    Thanks,
    Andrew.

    You can create an Oracle directory that points to an operating system directory in the database product... Does that help?
    Thank you,
    Tony Miller
    Webster, TX
    There are two kinds of pedestrians -- the quick and the dead.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • How to create a virtual drive of a non bootable drive ?

    How to create a virtual drive of a non bootable drive ?
    through which we can see the preview of the drive without clicking on the original drive.

    Alias can never be mount, but the virtual drive I want to create must be able to mount and unmount.
    Desktop having both original and virtual drive.
    My system is booted from 'Snow leopard' and I've an another drive, name 'Disk Testing' so by using a software I create the virtual drivre of 'Disk Testing' as you can see in the image. Both the drives are identical to each other and both are able to mount and unmount, they are having same data and attributes.
    So I want to create exactly this kind of virtual drive by using any apple script or command.i.e without using any software.

  • How to create a smart folder that only selects from a specific directory?

    I am trying to create a smart folder that lists all my iPhoto original content in the last few months. I want this so that my wife can connect into the smart folder over the LAN when copying specific photos to her PC.
    I am have trouble working out how to restrict the search to only those files that exists in the iPhoto directory. When I look at info for a photo is states "Where: /Users/Shared/iPhoto Library/iPhoto Library/Data/2009/....etc etc".
    However if I add an filter for "Where from" begins with "/Users/Shared/... etc etc" it returns nothing. Is there a way to do this?

    Find the iPhoto library file.
    Right click -> Show package contents.
    Double click the Originals folder.
    Type anything in the Search box at the top of the Finder window.
    In the top of the Finder window, click "Originals".
    Click the + (plus) sign next to Save.
    Select Kind is Image.
    Click the + (plus) sign again.
    Select *Created date* is *within last 3 months* (or whatever you want).
    Go to the search box and delete what you typed. Don't hit the X to delete the search text.
    Now save the smart search.
    This is saved in ~\Library\Saved searches. Copy or move it to the desktop where your wife can get access to it.

  • How to create a Virtual provider in BI 7.0?

    Hi friends!
    I need create a virtualprovider (with SCM source system), but I find the option 'Create Virtual Provider'  in the context menu only when the infosource is 3.x
    How can I do it in 7.x?
    Thanks in advance!
    Edited by: SSap on Oct 28, 2009 9:11 PM

    1.How can I do it in 7.x?
    In BI7, just right click on any infoarea, and choose create 'virtual provider'. For direct access, you choose Virtual Provider with 'direct access'. There's an option to use the old R/3 infosource. What this means is that you can create an infosource with transfer rules and such, and when you create the virtual infoprovider, it will use the structure in the infosource automatically and the flow of data is automatically link R/3 with the transfer rules and the virtual infoprovider. Note that no update rules exist with this kind of setup.
    In BI7 you have a more flexible approach in that you can create a transformation to configure the 'transfer logic' of your virtual infoprovideralong with start routine, end routine or any other transformation technique visible with using a transformation rule.
    But using BI7 setup, you need to create a sort of 'pseudo' DTP, which doesn't actually do anything, meaning you do not 'execute' it to start a data transfer.
    After all is done, you need to right click on the virtual infoprovider and choose 'Activate Direct Access'. If you use Infosource, go to the Infosource tab, and choose the infosource. If you're using BI7 setup, choose the DTP related to the transformation and save it.
    a virtual infoprovider with direct access is really slow if you have a lot of records transmitting between the remote function calls.
    Hope this helps
    Manjula

Maybe you are looking for

  • Hp pavilion dv4-1123us Media Card won't read

    I have a hp Pavilion dv4-1123us laptop that won't read a 16 GB SDHC media card. The card works in my PC, so the card is good. I have a Scandisk 5-1 media reader hooked to my home PC that would not read it but I found through Scandisk site I needed to

  • Can't login to my yahoo account

    When trying to get mail from 1 yahoo account I get a login failed message. After several retries, a error message pops up: Server [email protected] has disconnected. The server may have gone down or there may be a network problem. Reentering the pass

  • Trial balance report in Mutilple currencies

    Hi, we are working in oracle applications 11i How can the gl super user generate different versions of trial balance report. each in a different currency, euro, etc We have the MRC installed for USD. Please correct me if I'm wrong, I' ll need to crea

  • Flash Islands, AdvancedDataGrid, problem with grouping

    Hello, I am trying to show a table from SAP into an AdvancedDataGrid:      <mx:AdvancedDataGrid dataProvider="" width="100%" rowCount="13" >           <mx:columns>              <mx:AdvancedDataGridColumn dataField=""               headerText="Monat"

  • How do I setup high speed internet on Sun Solaris 10?

    Hello, I have comcast high speed internet. It doesn't work automatically. How can I setup my high speed internet connection to work with Sun Solaris 10? Mateusz