Question on create web project wizard - Web Application version

Hello -
On step two of the wizard it asks you for a web application version. Choices:
Servlet 2.3\JSP 1.2 (J2EE 1.3)
Servlet 2.4\JSP 2.0 (J2EE 1.4)
Does the choice ONLY affect the choice of how the top of web.xml is generated?
i.e.,
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
...vs
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
...Are there any other places where this choice causes some settings to be set?
(I ask because I am working with a workspace that was generated from the Create Application wizard. Choosing the "Web Application [JSF, ADF BC]" Application Template doesn't allow the user to choose the web app version...)
Thanks,

Hi Scott,
No, this choice only impacts the version of the Web Deployment Descriptor (web.xml).
When you create your workspace from the Create Application wizard by selecting the "Web Application [JSF, ADF BC]" template, we suppose that you work with a J2EE 1.4 application (the current version).
If for some reasons, you have to work with a J2EE 1.3 version, f.ex. because you have to use JSTL 1.0 (see "JSTL 1.0 in JSP 2.0 Pages" in http://blogs.oracle.com/Didier/2006/03/20#a10), then you should create your Web Project and select "Servlet 2.3\JSP 1.2 (J2EE 1.3)".
Later, you have the option to upgrade your Deployment Descriptor to Servlet 2.4\JSP 2.0 (option in the right-click menu on the web.xml).
Regards,
Didier

Similar Messages

  • Question:- How to update the Adobe Air Application Version.?

    Question:- How to update the Adobe Air Application Version.?

    Change the namespace declaration in the application descriptor.
    For example, to update version 1.0 to 1.5, change:
    <application xmlns="http://ns.adobe.com/air/application/1.0." ...
    to:
    <application xmlns="http://ns.adobe.com/air/application/1.5"

  • Images do not show up in web project in J2EE application[/b]

    I have cretead a web project in which i hava a servlet and couple of jsp's and some java util classes. This application gets the data from the database and displays it on a screen. Beside displaying, this app also transform the xml document to html using. I have the the XSL Stlesheet under Web Content along with all the jsp's.
    I also have images folder under Web-Content which has all the images for this application. When i run the application using Oracle 10g application server within Jdev, the application cannot find the images or the xsl stylesheet. Relative path to images in jsp is /images/someimage.gif while relative path to xsl is /some.xsl. For some reason it cannot find the images or the xsl when the application runs or deployed in OC4J container. Any help on this will be appreciated.
    I have checked the path in reference to the context-root and it seems to be correct.

    Relative path to images in jsp is /images/someimage.gif while relative path to xsl is /some.xsl.
    Is the images dir under the jsp dir?
    If the images dir and the jsp dir are at the same level, the relative path would be ../images/someimage.gif

  • Creating a Dynamic Web Project from existing source?

    I don't see this option in OEPE like there is in Workshop for Weblogic. All I can choose from is "Create Dynamic Web Project" which creates a new project from scratch, or "Create Java Project" which has an option in the wizard to import existing source.. however this makes it a vanilla Java project instead of a Dynamic web project.
    Did the concept of importing existing code into a project not cross anyone's minds when this plugin was developed? It's as if the expectation was that everyone would use this on their own private projects and there would be no collaborative/parallel development.
    What is the recommended way for creating a Dynamic Web project off of existing source code without stomping all over the existing web.xml weblogic.xml?

    There are many "import" scenarios, so let's break them down and lay out the support expectations:
    1. A java ee project created with base Eclipse using Web Tools Platform project types. This scenario includes both the case where the project creator had OEPE installed as well as the case where there was no OEPE installed. In this case, one should use the import existing projects wizard as the project being included already has metadata that can be read directly.
    2. A java ee project created with a non-Eclipse IDE or perhaps completely by hand with rudimentary tools such as notepad. Currently, the way this case is supported is by creating new projects and copying application source into them. Advanced users may be able to configure support in place, but we cannot support users with this approach as the possibility of corruption is high. We are currently working on a set of wizards that will help automate this case. These wizards will be available in the release of OEPE that's slated to ship around the end of 2009 or early 2010.
    3. A project created with BEA Workshop. This case is not supported as there are a number of technologies in Workshop that have been end-of-lifed (such as Apache Beehive). Users with Workshop applications should stay with Workshop until they are able to remove dependencies on end-of-lifed technologies. At that point moving to OEPE is recommended. Unofficially (this option is not supported but may work), advanced users may be able to migrate a Workshop app to OEPE, by stripping out all Workshop metadata (.project, .classpath, .settings, etc.) and by pretending that this is scenario #2 (import of a non-Eclipse application). Don't try this if your application still have dependencies on end-of-lifed technologies.
    - Konstantin

  • How does Azure Compute Emulator (or the Azure one) determine if a role is web project or something else ("The Web Role in question doesn't seem to be a web application type project")?

    I'm not sure if this is F# specific or something else, but what could cause the following error message when trying to debug locally an Azure cloud service:
    The Web Role in question doesn't seem to be a web application type project.
    I added an empty F# web api Project to a solution (which adds Global.asax etc., I added an OWIN startup class Startup etc.) and then from an existing
    cloud service project I picked Roles and
    chose Add
    -> Web Role Project in solution, which finds the F# web project (its project type guids are 349C5851-65DF-11DA-9384-00065B846F21 and F2A71F9B-5D33-465A-A702-920D77279786),
    of which the first one seem to be exactly the GUID that defines a web application type.
    However, when I try to start the cloud project locally, I get the aforementioned error message. I have a C# Web Role project that will start when I remove the F# project. I also have F# worker
    role projects that start with the C# web role project if I remove this F# web role project. If I set the F# web project as a startup project,
    it starts and runs as one would expect, normally.
    Now, it makes me wonder if this is something with F# or could this error message appears in C# too, but I didn't find anything on Google. What kind of checks are there when starting the emulator and which one needs
    failing to prompt the aforementioned message? Can anyone shed light into this?
    Sudet ulvovat -- karavaani kulkee

    Sudet,
    Yeah you are right, the GUID mentioned seems to be correct and the first one i.e. {349C5851-65DF-11DA-9384-00065B846F21} means the web application project which compute emulator uses to determine while spawning up role instances.
    You might want to compare the csproj of your C# and F# web projects which might give some pointers.
    Are you able to run your F# web project locally in IIS? If yes then you will definitely be able to run it on azure so I will recommend to test it in IIS Express first.
    Here are some other tips which you can refer or see If you are yet to do those settings
    1. Turn on the IIS Express - You can do it by navigating to project properties
    2. Install Dependent ASP.NET NuGets / Web Api dependencies (If there are any missing), Reference System.Web assembly
    Also I will suggest to refer this nice article about how to create a F# web Api project
    http://blog.ploeh.dk/2013/08/23/how-to-create-a-pure-f-aspnet-web-api-project/
    Hope this helps you.
    Bhushan | http://www.passionatetechie.blogspot.com | http://twitter.com/BhushanGawale

  • How to create web service for database application

    Hi everyone
    Is it possible to create a web service for an apex database application page which has reports and radio fields and dialog boxes and validations in it. IF it is possible to create, pls help me with example or step by step procedure. I have seen all oracle docs of implementation of Web services in apex but unable to figure out how to get that link of wsdl for an application.
    Thanks in advance.
    Regards
    Sandeep Artham

    Hi,
    I guess there are other ways. But this is an easy way, if you find the right wizards.
    Besides this it is good practise to define interface methods so that session bean implement these interface methods, and thus seperate the interface from the implementation.
    In this approach you will need 3 projects:
    An enterprise application project (will contain EJB Module)
    An EJB Module project (will contain session bean)
    A Java project (contains code that implements the session bean methods)
    In my previous post I suggested to use a J2EE web mudule project. This was a mistake, it should be EJB module.
    But it should be possible to do it in another way. It is up to you.
    Good luck, Roelof

  • How to change the application alias for a web project in NW7.2

    Hi,
    a simple question, but I could not manage to solve it: How do I change the application alias (the url) of a web project? I'm using Netweaver 7.2 and all the tutorials I found refer to earlier versions and do not work anymore.
    In particular, I would like to change e.g. "server.com/vendor~webbappname" (the standard url of the web project) to "server.com/mywebapp".
    Thanks in advance for your help!

    Hi,
    Try customizing the <context-root> element in the web.xml deployment descriptor, for example:
    <?xml version="1.0" encoding="ASCII"?>
    <application xmlns="http://java.sun.com/xml/ns/javaee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
              http://java.sun.com/xml/ns/javaee/application_5.xsd"
               version="5">
               <display-name>YourWebApp</display-name>
               <module>
                   <web>
                   <web-uri>YourWebApp.war</web-uri>
                   <context-root>mywebapp</context-root>
              </web>
         </module>
         <module>
              <ejb>YourWebAppEjb.jar</ejb>
         </module>
    </application>
    Afterwards, rebuild and redeploy your application.
    I hope that helps.
    Regards,
    Yordan

  • How to create the Custom project System as Web Project

    Hi,
    I have created a custom project system using this walkthrough. But
    this walk through is targeting Visual C# project system. I need to create the Custom project system as Web project and set the start up page as index.html file. How can I achieve this?
    Note: 
    I have got the Custom project system sample from VS2013 SDK samples(https://mpfproj12.codeplex.com/).
    But it demonstrate the Custom console applications only.
    - Abbas K

    Hi,
    So you didn't even follow this walkthrough yet? If you did, how did you do it?
    I failed to create such a web project system because I finally messed up my VS experimental instance. But it's possible to create a custom web project system, by following this walkthrough. Someone else has successfully made it, check this
    link.
    The difference is that you have to use web project type instead of the console application project type. You could copy a web project's .csproj file into the VSPackage project and rename it to xxx.myproj. There's an error in the walkthrough that the AssemblyInfo.cs
    file should be put into Properties folder and set the "Build Action" property to Content, "Include in VSIX" to true.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to create one complex project in web dynpro

    hi,
    i have 2 transations.i m going to create one project for one transaction each.but in my carse there are 20 views in each project.i want to distribute all the views  to 10 developers.i  mean how to distribute the different view or application or component for 0ne project among all the developer....this is my doubt that how  to clubbing together all the views,applications and compoents altogether in web dynpro  later.
    its very urgent,
    thanx in advance.
    regards,
    HP

    Hi ,
    One way is dividing your project into DCs.
    1. You can keep your model in one DC.
    2. Create different DCs for different functionalities and place the views under appropriate components
    3. Expose the components as public parts so that the views can reused by the developers.
    Please go though the documents on DCs for creating public parts and resuing DCs
    Regards, VIP

  • Not able to create a web project with jsf or jsp or struts or spring

    Hi,
    I am trying to create a dynamic web project with jsf or jstl or struts or spring or any of web options available for a web project, but I am not able to do it.
    When I choose any of these options, the wizard asks me to "select an existing jstl/jsf/Spring 2.0 library, or click Add to add a new library." and since it doesn't show any existing libraries there, I clicked on add new library. When I click add, it opens a new dialog box where it has two options :
    1. to use spring/jstl/jsf lib from bea web site - when I choose this option, it tries to connect to the bea web site and gives me error that "connect time out". I don't know why it is not able to connect to the internet. I am not able to see the help also. There it gives error "The requested URL could not be retrieved".
    2. to use libraries from an existing spring installation - I provide the path of a directory where spring lib are, but then it gives me error that this is not a valid installation.
    On another machine, I am able to see the help contents, but still not able to get these libraries from the bea site.
    Please help.
    Thanks in advance,
    Sushma

    Hi Sushma,
    The issue you are facing has been addressed and will be part of the next release. For the current release, please follow the steps listed below.
    Send an email to [email protected] with details on specific facets you are trying to enable on your project.
    You will be provided with a url where you can download the required jars and details on how to manually add the jars to the workspace which will prevent the download on demand scenario.
    Cheers
    Raj

  • Using project libraries for both web-based and AIR applications

    I need to develop substantial code to build both web-based and AIR applications.  Yes, they will have different features, especially when it comes to accessing files on the local file system.
    However, 98% of the code can be shared.
    I want to use a project library that can be used for both types of applications. Maybe using conditional compile when required to not use AIR API's in a web-based application.
    I found this (somewhat old) warning:
    Include Adobe AIR libraries Select this option if your library must use AIR features, such as access to the AIR APIs. Flex Builder then changes the library path of this new Flex Library project so that it includes airglobal.swc and airframework.swc. Web-based Flex projects cannot use this library.
    Do not select this option if you are writing a generic library intended to be used only in a web-based Flex application, or in either a web-based or AIR-based application.
    Does this apply to Flash Builder 4.5?

    I have found a workaround, but it's quite clumsy, involving a transfer vector (in old-fashioned terms) in the main application for each function in the AIR library.
    I have created a library for AIR classes only (fourdtext.fileOperations is there). 
    The AIR application provides "Function" values that any other code in the general-purpose libraries can use.
    It works, but it's nasty.
    In Main.mxml:
    import com.fourdtext.fileOperations.AxFiles;
    // this gets a list of native path strings, from and array of "File" objects
    public var AxGetListFunction:Function = AxGetListRedirect;
    private function AxGetListRedirect(list:Array):Vector.<String>{
        return AxFiles.AxGetList(list);
    In general-purpose code:
    var list:Array = event.dragSource.dataForFormat("air:file list") as Array;
    var AxGetList:Function = FlexGlobals.topLevelApplication.AxGetListFunction;
    listFiles = AxGetList(list);

  • Create Air Project from Existing Flex web project

    LaunchPad rocks!  Love the whole concept of using Air apps to supplement the Eclipse-based IDE.
    Often I have a need for two versions of the same app in Flash Builder: One web project and one desktop project.  It would be great if you can point to an existing Flex web project, and use LaunchPad to create the new air version.
    Anyway, PLEASE keep expanding your vision!  One day I would love to see a 100% Air app for building Air apps and scrap Eclipse! OK, maybe a little out of scope.
    Nice work!
    Don Kerr
    UGM, Space City AUG

    Turn the body of your application into a component and embed an instance of that component in both a Flex and an AIR application.
    1. Create a new Library project
    2. Set the Library path (e.g. external library references) for the new library project so the match the original project
    3. Copy the /src/ from the original project to the new library project
    4. Copy the original project's main mxml file to the library src/. Name it as a component (e.g. MyProjectBody)
    5. modify the copied mxml file by replacing the <Application>  with <Canvas> elements and removing application-specific stuff
    6. compile the new library
    7. add the new library to the original project's Library Path
    8. Modify the original project's main mxml file by _removing_ everything inside the <Application> tags and removing the attributes that set event handlers, etc.
    9. Add an instance of the new library's component MyProjectBody (see step 4)
    10. Create a new AIR project
    11. add the new library to the original project's Library Path
    12. Add an instance of the new library's component MyProjectBody (see step 4) to the <WindowedApplication> tag
    You can do fun things like create a standard I/O interface and have web and desktop-specific implementations so your main code does not know if it is running in a browser or not.
    Desktop drag-and-drop will fire normal DragEvent, etc., but with different payloads. You can have code in the library that handles both kinds of dropping.\
    Cheers

  • Problem creating portal web project in weblogic workshop 9.2

    hello All,
    I am facing a problem when i create portal web project in weblogic workshop 9.2 it gives some problems
    The library module reference :
    p13n-app-lib
    wlp-framework-full-app-lib
    wlp-services-app-lib
    wlp-tools-support-app-lib
    is on the classpath of this project, but it is not contained in the weblogic.xml descriptor of this WEB project : portalproject.     weblogic.xml     portalproject/WebContent/WEB-INF     
    so plz help me how we provide these library .
    Diwakar Gupta

    Those are application libraries that should be listed under the portal enterprise app under meta-inf/weblogic-application.xml.

  • How to create a user in UME Database using web dynpro java custom application

    Hi,
    Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
    My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
    Please suggest me.
    Thanks and Regards,
    Amit

    Hi Amit,
    Generated Documentation (Untitled)
    This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
    You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
    Hope it helps,
    D.

  • Error when create a project in newly Enabled features for Project Web App site collection in Project Server 2013

    I Enable the Project Web App site collection features in Project Server 2013 based on
    http://technet.microsoft.com/en-us/library/jj200305.aspx
    when i try to create a project i get error "GeneralUnhandledException"
    Yasser

    Also, after you provisioned PWA, are you able to get to the server settings? Did you do any configurations with PWA or using the defaults?
    Are you trying to add the project using the FarmAdmin account or did you add yourself as a resource with project manager role?
    Cheers!
    Michael Wharton, MVP, MBA, PMP, MCT, MCTS, MCSD, MCSE+I, MCDBA
    Website http://www.WhartonComputer.com
    Blog http://MyProjectExpert.com contains my field notes and SQL queries

Maybe you are looking for