Noob JSP + Servlet + EJB information for building J2EE simple web project.

I am new to Java. Covered basics and now jumping into making a simple web project. Project with functionality as below
1- CSS and Javascript use.
2- Managing user information (Add, Update, Delete, List)
3- Login form (Pass username, password and authenticate to create cookie)
4- Success/failure page.
That's what I want to make. I have lots of ASP.NET experience so its better to learn from making a project.
I need help like
1- Anyone know any open source web project from which I can learn to complete above tasks.
2- Any good latest J2EE 6 books to cover JSP, Servlts and EJB to make website.
3- Any video tutorials.
I am also looking around for the above information.
Thanks

pirzada wrote:
Is it better approach to keep business logic in Beans instead of Servlet/JSP. Looked more robust and clean?Usually you should keep the business logic (i.e. code) away from JSPs. That's how things were done 10 years ago, now we know better. Servlets and JSP can be used together so that a servlet has the business logic and JSPs are just "dumb views".
EJBs will/can help you when you need to worry about transaction isolation.
Then there's the dozens of other Java frameworks used for web design (and other purposes).
And the learning curve is high because it's a huge chunk of different technologies. It'll take you months to get proficient, years to become good.
But if you just want to whip up some web pages quickly, look at JSP/JSTL and Servlets. That'll give you a clean, but basic approach.

Similar Messages

  • New To Iplanet app server.Can some one help me getting started by delpoying and calling one of each of these:JSP,Servlet,EJB.Tried with iplanet docs..didnt quite get it. thanx

     

    Hi,
    What is that you are trying to accomplish ? Is it deployment or
    trying to develop applications ? Are you getting any errors ? If so,
    please post them to help you. I think the documentation is the best place
    for you to begin with.
    Regards & Happy New Year
    Raj
    Arif Khan wrote:
    New To Iplanet app server.Can some one help me getting started by
    delpoying and calling one of each of these:JSP,Servlet,EJB.Tried with
    iplanet docs..didnt quite get it. thanx
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Best way to see changes done to jsps/servlets/ejb/xmls in EAR

    I am using iPlanet app server with iPlanet web server. Everytime i make any change jsp/servlet/ejb i have to redeploy whole ear application again. This takes a long time. Even when i use the "iasdeploy redployapp " command to deploy, it takes same amount of time as it takes for the orignal deployment.
    So Is there any way to decrease the amount of the time it needs for me to re-deploy the applications when slight changes are made to application. I would really be thankful to anybody who can help me.

    Hi,
    I am facing this problem with a simple EAR file also. It does not contain any EJBs.
    It has just JSPs, XML, and JAVA Classes.
    The file size is about 481Kb.
    Earlier this used to get deployed using the "iasdeploy" command within 1 minute.
    Now it is taking more than 5 minutes to deploy the EAR file.
    I am using the following command :
    iasdeploy deployapp -verbose XYZ.ear
    The same holds true for the "iasdeploy removeapp -verbose XYZ.ear" also.
    Please help.
    Thanks,
    Samar

  • I am looking for Java-based technology for building nice looking Web apps

    Hi everybody,
    As written in subject - I would like to use some nice web technology, based on Java. I would like to build good-looking web pages. I have tried a bit of Dojo or JQuery (generally this is Ajax I think). Could someone point me what is the relation between Java application/technology and presentation layer of the application? For example, could I easily build nice Web application only with JSF? Or should I connect it with some Ajax-based library?
    If Ajax is best solution - what are your favourite Ajax implementations?
    What about other technologies: portlets, EJB? Thanks in advance for some info - even general.

    DCVer wrote:
    As written in subject - I would like to use some nice web technology, based on Java. I would like to build good-looking web pages. I have tried a bit of Dojo or JQuery (generally this is Ajax I think). I think you need to start to learn the basics properly. I've summed up several links here: [http://forums.sun.com/thread.jspa?threadID=5404443].
    Could someone point me what is the relation between Java application/technology and presentation layer of the application? For example, could I easily build nice Web application only with JSF? Or should I connect it with some Ajax-based library?Java/JSF is entirely server side.
    JS/Ajax is entirely client side.
    In JSF world there are several component libraries with builtin ajaxical (and skinnability -this also covers "nice looking" as you say) support, such as RichFaces and IceFaces. Give their homepage and demo's a look.
    If Ajax is best solution - what are your favourite Ajax implementations?I myself have jQuery on #1.

  • Disable Technical Information for UI Element in WEB DYNPRO ABAP

    Hi expert,
    I want to disable  Technical Information for UI Element in  my web-dynpro application i am alredy disable  in user setting by parameters WDDISABLEUSERPERSONALIZATION by i want to disbale other two options 1 Display quick help.
                2 More field help.
    KINDLY GIVE ME SUTIABLE SOULATION.
    REGARD'S
    Vikash

    Hi Vikash,
    Check this thread, may be you'll get some clues from here.
    [How to restrict right click to show user setting in WebDynpro ALV?;.
    Regards
    Manas Dua

  • Error when build J2EE example - web

    I use ANT 1.4.1 in C:\ANT directory and set up all environment variables ANT_HOME, JAVA_HOME etc
    When I do a build on the "web example as following:
    ant web
    I got the following error:
    BUILD FAILED
    java.lang.NullPointerException
    at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:
    253)
    at org.apache.tools.ant.taskdefs.Property.execute(Property.java:183)
    at org.apache.tools.ant.Task.perform(Task.java:217)
    at org.apache.tools.ant.Target.execute(Target.java:184)
    at org.apache.tools.ant.Target.performTasks(Target.java:202)
    at org.apache.tools.ant.Project.executeTarget(Project.java:601)
    at org.apache.tools.ant.Project.executeTargets(Project.java:560)
    at org.apache.tools.ant.Main.runBuild(Main.java:454)
    at org.apache.tools.ant.Main.start(Main.java:153)
    at org.apache.tools.ant.Main.main(Main.java:176)
    Any suggestion. Appreciate your help
    Tom

    Are you running ant in the <j2eetutorial_home>\examples directory> ?J2eetutorial_home refers to the directory where the tutorial is installed. I don't think this is the problem, but I thought i might check.

  • Need Suggestion to build a simple web service demo

    I'm planning to build a demo using java packages JAX* for my team using my workstation and another standalone box.
    I got a Sun One Web Services Platform DVD from JavaOne, but it only support Win200 or XP, too bad our company still using Win NT SP6.
    I only need a very simple web service that will bring data from server DB. I knew I can download the JWSDP1.2, but there is no tutorial right now. And I have tried JWSDP1.1 but not really understand what it is doing(because only Hello world service is working). I need to do some modification to change the default server port from 80 to 81, and I need to modified localhost to [my-machine-name] so that the other machine can talk to the JWSDP server.
    My question is how can I build up a web service demo really easy and quick and what tool should I used, any suggestion will be appreciated! Thanks in advance!
    Henry

    1. Use XML Spy Enterprise edition editor.
    2. Goto www.xmethods.com, select service you want to create demo of.
    3. Get its WSDL url.
    4. In XML Spy SOAP menu there is a command 'create new soap request'. Press that, enter the WSDL url. You will get a SOAP request.
    5. Edit SOAP request parameters. Type parameters of your choice.
    6. Press 'send request to server'. You will get SOAP response. It will contain result from the requested method.
    7. Paste that response inside a JSP.
    8. Write a local method which will return same response (remote method's return value) that came from remote web service.
    9. Paste that method inside abovementioned JSP. Replace static response in that JSP with the response generated by local method. The method parameters will come from client's SOAP request. Parse SOAP request to get request parameters. (As it's your demo, you know the data types of the parameters).
    10. Host that JSP on any Servlet/JSP engine.
    That makes your Web Service.
    You can use any package like Aapche SOAP, AXIS or JAX-RPC to generate a SOAP client. Use the URL of JSP(step 10) as "endpoint".
    Note: Indside JSP make sure that there in no endline and carriage return character. Otherwise it won't be a valid SOAP response.
    Good luck.

  • Debugging web apps? jsp/servlet/ejb

              I just went through debugging hell and wish to find an environment where I
              can step through my
              code line by line. Is this possible with web apps? JBuilder interests me,
              but it seems that I would need the Enterprise edition and it is pretty
              spendy. What else is available?
              Thanks
              

              I just went through debugging hell and wish to find an environment where I
              can step through my
              code line by line. Is this possible with web apps? JBuilder interests me,
              but it seems that I would need the Enterprise edition and it is pretty
              spendy. What else is available?
              Thanks
              

  • How to make and build a dinamic web project

    hi people, i just downloaded the flex 2 beta 3, and installed
    this "separated" of the eclipse application, but my question is ..
    how i have to create a new dinamic project, that contains the
    Web-Inf folder and Meta-Inf folder..?? off course that i have the
    java sdk installed, the eclipse and the flex environment....
    can anybody help me with this?? i will really really
    apreciate this!!
    thanks in advance!!
    JP.

    quote:
    Originally posted by:
    ntsiii
    Also, you will be using Tomcat and Java on the server to
    provide data to your client-side application.
    it´s rigth..
    quote:
    You have several options, including RemoteObject,
    Webservices(Axis?), or HTTPService(it is very simple to use JSP to
    save and retrieve data and send it to the Flex client)
    All this options, in what tool are implemented?
    quote:
    Post again if you get stuck.
    By the way, General Flex questions should be posted in the
    General Discussion forum. This one is for Flex Builder questions.
    Tracy
    yes, i know, i searched the site looking for a tutorial or
    something that refer how to related a website and a data in a
    database.... in order to make a form to manage the data..
    thanks a lot!!!

  • Sample jsp servlet bean (MVC) code

    We want to look into the JSP/Servlet/Bean area for our next project. We wish to understand the technology and as such want to hand build simple applications, and as such do not want to use JDeveloper just yet.
    We have searched and searched for suitable material but cannot anywhere find a sample application that :
    A. Lists contents of a databse table
    B. Each item in trhe list is a link to a page that allows that item, to be edited.
    C. A new item can be added.
    D. Uses the MVC model of JSP/Servlet and bean (preferably with no custom tags)
    There are examples that are too simplistic and do not cover the whole picture. Having spent over 100 GBP on books lately, only to be disappointed with the examples provided, we need to see some sample code.
    The samples provided by Oracle are too simplistic. They should really have provided ones built around the EMP and DEPT tables.
    Anyone know where we can get hold of this sample code.

    At the risk of sounding really dumb the examples are just too complex. There does not appear to be anywhere on the web where I can find a simple JSP/servlet/bean example of the type I described. There is enouigh material describing each individual component, but what I need is an example to cement the ideas, but the ones suggested are too much for a newbie. Even the much vaunted Pet Store thingy causes my eyes to glaze over.
    I dont expect anyone to have written something with my exact requirements, but surely to goodness there must be something that:
    1. On entry presents a search form on a table (e.g. EMP)
    2. On submission list all rows in EMp matchiung the criteria.
    3. The user can either click the link 'Edit' which opens up a form dispalying the row allowing the user to edit and save the changes, or click the 'New' button to show a blank form to create a new EMP.
    All this via a Controller servlet, with the database logic handled by a java bean, and all the presentation done via JSP.
    To me this is the most obvious and instructive example of this technology, but after days of trawling the web, and looking through a number of books, I cannot find such a thing.
    CGI with Perl DBI/DBD was a breeze to work with compared to this stuff ..... maybe ASP with SQL/Server would be a more fruitful use of time.

  • Jsp,servlet,bean question,please help

    The Tomcat Web server set up like this.......
    The directory structure is
    e:/sampleapp/WEB-INF/classes
    /lib
    And the web.xml is in the WEB-INF for the use of ay potential servlet.
    The basic understanding is that all the .java files go into the WEB-INF directory and the .class files go into the classes directory.
    All the .jsp files go into the sampleapp directory.Till here is correct I feel.
    Now for my qustion......
    I plan to use jsp,servlet and beans for a potential web application...,where do all these files go?,just the same as above or is there a difference.
    Hope that I have given a reasonable explaination to my question.
    Thanks for any replies
    AS

    All of your compiled servlet and java bean (java
    classes in general) will be placed into the following
    directory (under a directory structure matching the
    java package they are in):
    e:/sampleapp/WEB-INF/classesAll of your .jar files that are used as libraries (not
    your .jar files for applets):
    e:/sampleapp/WEB-INF/libAll of the rest of your JSP files, javascript files,
    HTML files, JAR files, images files, etc. will go into
    the following directory:
    e:/sampleappYou must make sure you put your sampleapp directory
    where tomcat can load it. Or use the admin tool to
    load it. If you make a .WAR file with a corresponding
    web.xml file in it, it will simplify loading it into
    tomcat. It also will help you do your servlet
    mappings, etc. I hope this helps.Thanks for your timely response.To add to it,let me tell you.
    The <b>bean</b> files are put into a package right,so they should be put into the WEB-INF/classes/<package name>
    What about The <b> servlet </b> files...... they are just put into the WEB-INF/classes/ directory????
    Kindly let me know.
    Thanks
    AS

  • Building web project with ANT

    Hi,
    I am using jdeveloper 11g TP4 , and for building my web application i am using Jdev,
    but now for some extra work i am using ANT, so my requirement is when i am doing make(build) of my web project it should run that Ant file (build.xml)
    i have checked the run/debug configuration but not able to run the ant implicitly..
    can anybody knows ..
    Thanks in advance
    Edited by: 982899 on Jan 29, 2013 3:59 AM

    Hi,
    I am not sure if this is the only answer but when I want to run an ANT file for my project I do right click on my build.xml and simply run the target I want to run. On the other hand, you can configure your RUN profile and play a bit to see if its possible to configure in there ANT to be run automatically when you run your project by using JDeveloper itself.

  • Ias support for EJB, JSP/servlets,JDBC, connection pooling, XML, SOAP, load balancing etc

    Please let me know where I can find more information regarding iPlanet usage/deployment/configuring/tuning etc for support of technologies - like EJB, JSP/servlets, JDBC, connection pooling, XML, load balancing, JDBC & Transactions
    (I have already read the 'Getting Started with the iPlanet Application Server' part five and six - http://developer.iplanet.com/appserver/testdrive/partfive.jsp and partsix.jsp)(I am using the ias testdrive version).

    Hi,
    It's difficult to explain unless the J2EE architecture is understood. Also, explaining things like load balancing, Transactions, tuning, are bit vague and could blow the disk space of this site.
    To get started, the best way is to test the sample applications and the best part is you don't require internet connection to follow each steps. Install iWS and iAS, open browser, type in http://hostname:port/ias-samples/index.html. You can find links to the sample applications bundled. Please follow the steps given on deploying the application. This will enable you to a higher level.
    Regards
    Ganesh .R
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • Separate jsp/servlets from EJBs for petstore

    By default, petstore deploy all the web apps and EJBs in one ear. I am trying to
    separate the JSP/servlets to deploy to diffent machine. I need to modify the client
    InitialContext to point to the remote server. I took a look at the source and
    there are many places using the default constructor of InitialContext to load
    the default URL. I wrote a jndi.properties file that has the correct url and put
    this to the classpath. I know this file needs to be put to the working directory,
    too. In case of pet store web application, what should be the working directory?
    Thanks, Cathy

    I'm also interested in running the Pet Store application server and the database
    (Oracle prefered) on different systems.
    Is this configurable during runtime or does it require code modification, compilation
    and deployment?
    Thanks,
    TL

  • Deploy JSP/Servlet along with EJB

    how could deploy EJB with JSP/Servlet?.
    First i have
    package project.account
    1.HomeInterface class
    2.RemoteInterface class
    3.Bean class
    4.Client class
    I deployed the above bean in J2EE using Deploytool GUI.
    run the client like this
    java -classpath %CLASSPATH%;personDepClientClient.jar project.account.Client
    it displays result at prompt
    what i am asking is
    now i wrote JSP file which is kept also this project.account package
    i used the JSP file as client for the that bean.
    it is Show.jsp file(client file)
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="javax.naming.Context" %>
    <%@ page import="javax.naming.InitialContext" %>
    <%@ page import="javax.rmi.PortableRemoteObject" %>
    <%
         double balance;
    try
         Context initi = new InitialContext();
         Object ref = initi.lookup("AccountHome");
         AccountHome home = (AccountHome)javax.rmi.PortableRemoteObject.narrow(ref,AccountHome.class);
         AccountRemote vijay = home.create("200","vijay",0.00);
         vijay.credit(2000.0);
         vijay.debit(600);
         balance = vijay.getBalance();
    %>
         <tr>
    <td width="38%" height="31">
    </td>
    <td width="62%" height="31">
    <div align="center"><%= balance %></div>
    </td>
         </tr>
    <%
         AccountRemote kumar = home.create("199", "kumar", 0.00);
         kumar.credit(14000);
         AccountRemote xyz = home.findByPrimaryKey("199");
         xyz.debit(200.00);
         balance = xyz.getBalance();
    %>
         <tr>
    <td width="38%" height="31">
    </td>
    <td width="62%" height="31">
    <div align="center"><%= balance %></div>
    </td>
         </tr>
    <%}
    catch(Exception ex)
         System.err.println("Caught an exception." );
    ex.printStackTrace();
    %>
    after deployed this JSP file and executed as
    http://localhost:8000/project/person/Show.jsp
    it displays error as follows
    unable to find AccountRemote,AccountHome,findByPrimaryKey
    How could deploy JSP along with EJB?.
    pls any one tells steps to be followed while Deploying EJB/JSP.
    with thanks
    vijay

    Hmmmm...
    ssniazi does nothing but ask for contact information or recommend Oracle products.
    Based on this I consider it likely that this person is some sort of sales representative either directly or indirectly associated with Oracle.
    I personally wouldn't provide any contact information to this person. Nor would I accept any advice until this person starts to actually provide some solutions or at least correctly reveals any financial interests that they might have.

Maybe you are looking for

  • Plug-in not loaded on Non developers machine

    Hi, We are implementing an acrobat plug-in using VC++.Net (VS 2008) MFC Dll application, here we are referring a C# dll for hosting Infragistics WPF grid on the VC++ dialog(User interface). We created C# dll and plug-in application and added C# dll i

  • Time Capsule satelite

    I have a family and therefore a family of macbooks. Our timecapsule is in the front of the house, my home office, used sparely is in the back. I have just discovered that we have a concrete shelter masquerading as a bathroom in between (storm shelter

  • Computer doesn't shutdown

    I sometimes get this when shutting down. /etc/rc.shutdown:line 153: 2078 Segmentation fault /sbin/poweroff -d -f -h -i There shutdown stops and I have to kill it with the powerbutton. It doesn't happen often but it happens.

  • Warning in SLIN:'Does not test for equality'

    Hi i get the following error In "SELECT SINGLE ...", the WHERE condition for the key field "MATNR" does not test for equality. Therefore, the single record in question may not be unique. for the following code SELECT SINGLE * FROM zgd_phant_status   

  • Web Application Designer: Chart loading Error.

    Hello Experts, Could you please suggest. I have included the Chart Web Item > defined the DataProvider. When I execute the web template, I get this error. "Error When Calling Up IGS (partner not reached (host bwdbp1.ct.pb.com, service sapgw00) / CPI-