GetRealPath("/") supported for Servlet API 2.0?

Can anyone tell me if the getRealPath("/") method is suppored in the Servlet API 2.0? Or where I can find documentation from 2.0? Thanks!

I guess a better question would be: I've written code in Servlet API 2.3 and I've been testing w/ Tomcat 4.0.3 on my local machine. Everything is fine. The people I'm developing for just got a new server (b/c their old one didn't support servlets at all) which uses JServ which only supports servlet api 2.0. Now my servlet is throwing errors. getRealPath() was returning a path in Tomcat, but now it just returns null. And getResource() doesn't seem to be a valid method in api 2.0. Is there 2.0 code that I can use instead? And if so do I need to use an older api to compile it?

Similar Messages

  • Downloading Javadoc for Servlet API?

    Does anyone know the url to download Javadocs for the Servlet API?

    http://java.sun.com/products/servlet/docs.html lists all the documentation for servlet technology. search in sun's website!

  • Why is there no WSDL type support for Web Api?

    So I am just getting started with .Net WebApi and one thing that I am noticing straight away is that there is no Contract defining how the Api looks and should be consumed (Request/Responses from each Action), this is usually in the form of a WSDL for WCF/Soap.
    It seems to me like this is something that would be very valuable and make life a lot easier for consumers of your Api.
    Is there a reason there isn't one? Is there a programming paradime or principle that I am unaware of? Is there a way I could create one?

    SOAP, REST AND PEOPLE'S CREATIVITY
    SOAP needs a description document like WSDL because each resource can be consumed with different messages, there are no definition on the protocol about constraints to the possible names/messages that you can manipulate a resource.
    For example, in SOAP your web service that allow clients manipulate an user can expose the operation that create an user in many different messages, like:
    addUser
    createUser
    insertUser
    Of course, these are just few sample messages, because I've see a lot of funny web services method names. There are really creative people out there.
    In other hand, if you are exposing your underlying system using web api that really respect the REST principles, the client just need to know that you have a resource named Users, because there is 99% of chance that you can create an user in this way
    POST /Users
    And this occurs for each operation you want to expose using SOAP or a web api REST.
    Despite being SOAP a protocol, which restricts what you can or can not do, and be REST a style architecture, which leaves many open points of how to do things. There are efforts to define conventions of how to expose and consume REST web apis.
    DESCRIBING A WEB API REST
    In the field of how to describe a web api REST I can cite
    Swagger. It is not a attempt to create a WSDL like to web api REST, but it is a good attempt to create an open standard for describing web apis REST.
    Swagger is a specification and complete framework implementation for describing, producing, consuming, and visualizing RESTful web services.
    I use Swagger a lot and really love it, mainly because
    Swagger UI that allow you generate a nice live console and documentation for your web api.
    There are many implementations of Swagger for most of languages: C#, Java, Python, Ruby, etc.
    If you are using ASP .NET Web API, there a some projects to auto generate the Swagger specification, like
    Swagger.NET
    GENERATING CLIENTS TO A WEB API REST
    Because the constraints of REST, like the limited set of verbs (GET, POST, PUT, DELETE, etc) is not so difficuty to generate a client library to a web api REST.
    Projects like
    WebApiProxy can easily generate clients do C# and Javascript.
    CONVENTIONS FOR WEB API REST
    To keep our lifes as developers easier is good define some conventions of how our web api REST will behave, the best effort I know in this field is the very good
    Apigee - Web Api Design ebook. The e-book is not an attempt to create a bible or a mantra about how to design your api, but rather a collection of conventions observed in large web REST apis, like Twitter, Facebook, Linkedin, Google, etc.

  • Support for Portlet API

    Does the BEA Portal Server support portlets written
    to the proposed Portlet API?
    Specifically, I've played with Jetspeed before
    and have some portlets for Jetspeed. How easy
    is it to port those portlets to the Portal Server?
    From what I've gone through so far with the Portal
    Server 7 sampleportal site and looking through the
    sample code, it seems to be very different from
    what I'm used to in Jetspeed.
    I would appreciate any pointers on documentations
    geared more for developers. While the tutorials
    are useful, they are a bit light on customization.
    Lew

    I doubt it since the Portlet API isn't finalized yet, so BEA's API (along
    with others) is still very proprietary.
    My best guess is that it won't be compliant untill one release version after
    the spec has been completly finished and accepted. 1-2 years? And that is
    if BEA decides to conform to the spec at all.
    "Lew Davis" <[email protected]> wrote in message
    news:[email protected]..
    >
    Does the BEA Portal Server support portlets written
    to the proposed Portlet API?
    Specifically, I've played with Jetspeed before
    and have some portlets for Jetspeed. How easy
    is it to port those portlets to the Portal Server?
    From what I've gone through so far with the Portal
    Server 7 sampleportal site and looking through the
    sample code, it seems to be very different from
    what I'm used to in Jetspeed.
    I would appreciate any pointers on documentations
    geared more for developers. While the tutorials
    are useful, they are a bit light on customization.
    Lew

  • Support for additional apis

    hello i to all
    my question is that
    Mobiles only support MIDP 1.0,2.0
    but how these mobiles can support additional apis
    like bluetooth and mmapi etc
    please reply it

    I do think that the j2me has some specific apis for bluetooth and mime... but the implementation of these technologies varies from cel to cel. So, you must make program including these kind of technologies but if the cell phone doesn't have this technology support in it, I'm not sure, but I do think that it'll not work. If I'm wrong in it... plz... correct me. =)

  • How to get support for servlets?

    Hello, I've been successful at creating applets and applications. Now I want to play with servlets. I use jpadpro IDE, and when I compile a sample servlet, it says javax.servlet.* does not exist. So I fetched j2sdkee131 which I guess contains servlet support. When I tell my IDE to use j2sdkee131, it doesn't work because this doesn't contain the compiler ie javac. Anyone know what I need to do to be able to compile a simple servlet? Thanks.

    you need servlet.jar which comes with tomcat...I also think it is included in J2EE JDK

  • Apia, Samoa time zone support for iCloud

    There does not seem to be support for the Apia, Samoa time zone in iCloud.  This is an idiosyncratic time zone being UTC +13hrs with daylight savings (UTC +14hr) during the "summer" commencing at 3am on the last Sunday in September and ceasing at 4am on the first Sunday in April.
    http://www.timeanddate.com/time/zone/samoa/apia
    Tonga, Tokelau and Rawaki (Kiribati) have the same time zone but no DST.
    American Samoa has the same time but a day earlier and no DST.
    I tried to make an Apple support request but it wants an Apple hardware ID and I'm using iCloud on a Sony Vaio.

    It looks like the reminders don't "float" - so all the dates and times I set for reminders while in St. Lous are reporting at weird times because of the time change from Tokyo time. Is there any way of fixing this short of resetting all the times?
    Thanks,
    doug

  • Web hosting for servlet and jsp

    i m looking for web hosting service which provide support for servlet and jsp
    i m looking for both type i mean paid web hosting and also free
    free for my r&d purpose and paid to host my client web site which i created using JRUN.

    thanks i got some isp
    but i m also looking for free service also
    for my r&d purpose
    if u know any , pls tell me also
    i got one www.mycgiserver.com of this kind but there is some problem with this site i want to know if there is any other site also

  • Does Servlet API support the following scenario...

    Hi,
    I am trying a second post to see if anybody has encountered the following scenario:
    Several instances of a webapp is started on the same machine where each instance is bound to a hostname. It is critical that only a .war or a set of files are used because the application is very large. There are also practical problems re-deploying 20-30 identical .wars.
    The problem is that when a servlet context is initialized there doesn't seem to be any way of finding out which host(s)/URIs the current instances is bound to. This makes it impossible to deduct which configuration to load.
    Is there a clean way to do this using listeners of servlet context creation or this scenario is simply not supported by the API?
    Any feedback is appreciated.
    P.S. The solution I had to use is to start the application at first request where I can get the hostname from the request.

    http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContext.html
    "getServletContextName
    public java.lang.String getServletContextName()Returns the name of this web application correponding to this ServletContext as specified in the deployment descriptor for this web application by the display-name element.
    Returns:
    The name of the web application or null if no name has been declared in the deployment descriptor.
    Since:
    Servlet 2.3 "

  • SAP Netweaver 7 - Supported Servlet API version?

    For SAP Netweaver 7 platform, please let me know the supported Servlet API version?
    Specifically, is Servlet API 2.4 supported?

    Hi,
    It isn't supported by 7.0, the version of 7.0 is 2.3 (JEE 3)
    Best regards

  • Support for DbXml specific functionality in XQuery vs. Shell or API

    Is / will there be any support for doing common commands in pure XQuery rather than just programmatically or through the shell? For example, in the shell I can create / list / delete indexes on a container, output query plans, etc. Are the same functions that are called through the shell available as XQuery functions? possibly in a dbxml function namespace?
    In a related question, but possibly deserving of a new thread if it doesn't already have one - I know XQuilla has the ability to call registered external functions from parsed XQuery, is there a way to tell DbXml to register a function with XQuilla's static context before using it? that would make it possible for me to add the functionality described above myself without disturbing your distributed code.

    Not so handy with C++ (my everday languages are PHP and Java), but if you say it can be done then I'll take a hack at it. If you happen to have examples of how other people have done it and you could point me at them it would be marvelous.
    To answer your second question: "bingo." It mostly means less interface work and brings it closer to what SQL can do in relational databases.
    The project allows the end user to define their own document structures (schema definitions more or less) and then create instances of these documents in a XML editing interface. For each document type, the end user is also able to define a set of named queries (abstracted function declarations) which lets us captures business rules without customizing our PHP code. Because the structure and queries that will be used against the documents are user defined its fairly impossible for me to automatically setup adequate indexes for the container of each set of documents. So I need an interface to allow the user to create / review / delete the indexes themselves.
    We've already created an interface that allows the user to execute arbitrary queries against a selected document. In the future we'd also like this same interface to do result set based content updates (through the XmlModify class) and whole document addition / replacement. So inclusion of index control makes sense as well. We can find ways to use the APIs, it just seems like this could benefit more than just our project.
    Placing the functionality from the shell into xquery extension functions seems analogous to having the UPDATE, DELETE and CREATE syntaxes of SQL.

  • GroupWise 7.0 API Gateway is supported for Exchange 2007?

    Can someone confirm that GroupWise 7.0 API Gateway is supported for Exchange 2007?
    I found a note in a guide that stated it was not YET supported as of 1/27/2008.

    bwalker2,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • NLS ISO88595 support for ldap OID C API

    Please Help!
    How to order from Oracle Internet Directory C API to process single byte
    string (ISO-8859-5) instead of
    Unicode string ( in input and output parameters values ) ?
    #include <ldap.h>
    char* base ="cn=�������_�����, cn=com"; /* in ISO */
    ldap_search_s(ld , base .... ); /* not detecting base with russian word */
    How to switch NLS ISO support for ldap OID C API ?
    If any other approach to solve it problem?
    (for example in Oracle OCI C API it solved by setting client NLS_LANG
    environment variable .
    In my case NLS_LANG not working)

    UP plz

  • API support for color extraction feature

    Is there API support for color extraction feature? if not, is
    it scheduled?

    Hello, thanks for the post.
    In order to provide the best user experience for color
    extraction, we had to split the functionality between client-side
    and server-side, so we are not able to offer an API for this
    functionality at this time. We are, however, very interested in
    feedback on what kinds of APIs are interesting to you and how you
    are interested in using them, so folks, please let us know.
    Current APIs, including the new Random theme browsing view
    and to view comments to your themes, are available on the
    kuler API
    wiki. We've seen some really fabulous and creative use of the
    kuler APIs, and we look forward to more.
    Sami

  • Conatiner supports tempdir for a temporary directory for servlet

              Does container supports tempdir for a temporary directory for servlet?
              

    Vijay,
              I'm not sure what you are asking. Can you be more specific?
              Thanks,
              Velvet
              vijay patil wrote:
              > Does container supports tempdir for a temporary directory for servlet?
              

Maybe you are looking for

  • ITunes can't locate songs in my library.

    It took me a while to point iTunes 11.0.2 (26) 64-bit in 10.8.3 to my existing itunes library that is also used by my 10.6.x system.  Once I did though I went to a playlist and clicked on the song and found that even though it updated my library file

  • Acrobat 8 Professional and Windows 7

    Installed software: Windows 7 Ultimate 32-bit Adobe Acrobat 8.1.7 Adobe Acrobat Reader 9.2 Internet Explorer 8 Mozilla Firefox 3.0.15 Hello everybody, I've just changed to Windows 7 and I have a few problems using my browsers. So, when I want to open

  • XML Header Web Services 8.6

    I am developing an HTML application using LabVIEW Web Services in version 8.6. I configured a VI to output data as XML.  I am using the jQuery framework for javacript at this time. I noticed that when I try to get the data from this VI as XML jQuery

  • Serious trouble with Videora!!!!!!!!

    I have been using videora and it works fine for movies of about the length of 20 to 60 minutes but if I convert 2 hour movies or music videos that I downloaded from a website then after conversion slowly the video starts to come before the sound or v

  • VL02N PGI ERROR

    Hi experts, After I created the outbound delivery,I dong PGI,the following error pop! Delivery has not yet been put away / picked(completely) I don't know where si the problem. Anyone have a clue how to force it out? tks a million. david.