I want to be a java web programmer

Hi
I'm not new to java desktop programming, but I haven't had a lot of experience and it was a few years ago now. But I am absolutely new to java web programming.
Anyway, I want to get a web programming job, and not only that I want to make a couple of websites myself.
Like ecommerce websites. Java web programming is so huge. There are so many frameworkds etc.
I thought if I make a functionally decent and pretty website, it would be a good reference of my work for future job opportunities.
The only thing is. With Java, I just don't know where to start.
Spring? I'm doing the tutorials in the netbeans IDE, but there is one for SPRING there is one for STRUTS, etc.
I just don't know? Do I need all this to make a website, or one of these? Do they do the same thing? Are they two different avenues to the same end result?
Where is a good introduction to making a functional server-side website in java?
Anyone here have any
Thanks
David.

My advice is: DON'T start with a framework. Much in the same way as you shouldn't start with an IDE when you learn core Java. The framework will hide too many details that you really must know if you ever want to make any headway into debugging a web application.
No, start with the very basics. Install Apache Tomcat 6 and build a simple application consisting of nothing but servlets and JSPs, where the JSPs are only used to build the view using JSTL. That alone will probably be a month-worth of research and trying out before you'll have grasped the concepts firmly. Only when you know how to configure, write and deploy such a simple web application and you have seen some debugging action, and only if you really understand every step of the way, should you start to look into using a framework.
I always post a link to this website and I'm going to do it again: read this free online book. Its one of the best I know on this very subject.
[core servlets 2nd edition|http://pdf.coreservlets.com]

Similar Messages

  • I don't want application show message "Java web start in the bottom of app"

    Dear
    please help me.
    I am using jdk 1.4.1_01 and JWS 1.2. when I launch application through web stat. In bottom of application , the title "Java web start" appears, it also appear in the bottom of popup menu, menu item bar, dialog,...
    Can I disappear it.
    Please help me.
    Thanks

    I don't think it's documented anywhere, but if you sign the jar, that message will go away.

  • Strongly recommend  a good book for the java web programmer

    book name: java for the web with servlets,jsp and EJB
    publisher : New Riders
    very suitable for beginners ~~~like me 0_O~~~~

    Hello guys,
    Glad to hear you guys pursuing certification. Upon finishing both books, I still felt like I needed to prepare in some other means. That was when I started taking practice exams online. Those helped a LOT! (I took around 10 exams) They really test you if you know the material... Here are a few links which might be of some help:
    http://www.javaranch.com/maha/Preparation_tips/preparation_tips.html
    http://www.javaranch.com/mock.jsp
    http://www.javacert.com
    Good luck!
    Ming
    Developer Technical Support
    www.sun.com/developers/support

  • Wanted: Recommendations for Oracle/Java Web Hosting

    I'd like to make some Java/JSTL servlets that access an oracle database.
    Can someone recommend a hosting service?
    I'm most familiar with the open source products like JBoss and Jetty and tomcat.
    Thanks
    Siegfried

    You know Oracle is wickedly expensive, right? Expect a yearly license fee of 5000 or even 80000 dollars just to be allowed to use it for commercial purposes, price depending on what you're going to do with it and on what kind of hardware it is going to run on.
    Other than that: nobody can recommend you where you should be throwing your money at. Perform research yourself and if you're stuck choosing between different options provide them here and perhaps someone will have an opinion on it (likely not though).

  • Java Web Start and Firefox

    Hello!
    I want to use some java web start applications, which are started directly by clicking a link. My browser (firefox) doesn't know the java web start mime type (*.jnlp). Because of that I can only download the specific JNLP-File instead of executing this file to start the java app.
    There is no jnlp mime type in the firefox section Edit-->Preferences --> Application and I can't add a new mime type because there is no funkction to did that job.
    I have installed the jre and the jdk package. In firefox Tools --> Addons there is the plugin "Java Plug-in 1.6.0_19" listed.
    Has anybody an idea, who to add the jnlp mime type in firefox?
    Thanks for help!
    Best regards,
    Flasher

    Maybe this can help you.
    And related link in Ubuntu Forum.

  • Calling java web dynpro from ABAP

    Hi!!
    I have a double problem!
    First I want to call a java web dynpro application from ABAP. I managed to do it using :
    call method cl_gui_frontend_services=>execute
      exporting
        document = url
      exceptions
        others   = 1.
    Where url is the java application url with parameters. It's working...
    ...but here comes the second problem : i need SSO So first solution is not sufficent.
    Can anybody help?

    Ok looking for the solution i figure out that it won't be possible anyway, i need a first log to the portal in order to issue a logon ticket before any attempt of SSO authentication.

  • Re-Learning Java Web Technologies

    Hi
    For the last 2 years, I have been developing ASP.NET applications. Therefore, I have not followed any new developments within Java industry.
    However, now I just want to re-learn Java web technologies.
    Therefore, could you kindly inform me whats the best book that can give me a good ground intp Java web / Enterprise development.
    Thanks

    Thanks for the answer.
    When I was doing ASP.NET development, I found these 2 books useful:
    http://www.amazon.co.uk/gp/product/1861008031/026-2514404-8364464?v=glance&n=266239
    http://www.amazon.co.uk/gp/product/1861008163/026-2514404-8364464?v=glance&n=266239
    These books showed how to develop a full working website with asp.net.
    I wonder if there are similar books for Java. I am not a beginner with Servlets or JSP. I just want to know how to put together a full working website with the latest Java technologies.
    Core Servlets and JSPs is definitely a very good book.
    Kind regards

  • Java web service using pl/sql DB package - JDev 10.1.3.1

    Hi All,
    I wanted to create a java web service, instead of a pl/sql web service, that calls a pl/sql package in my DB.
    Jdev (10.1.3.1) can generate java code for my pl/sql package. But the generated code can't be used with a java web service. I've found that the generated code uses types that can't be serialized for a webservice (ie. java.sql.Timestamp).
    Does anyone know of a work around?
    Thanks!

    http://www.oracle.com/technology/obe/obe1013jdev/10131/wsfromplsqlpackage/devwsfrom%20plsql.htm
    It's pretty well documented within Jdev also.
    Thanks, Rob

  • SQL Server JDBC problem of JClient deploy in java web start

    I have a test of JClient, it use SQL Server JDBC ,and I download the Microsoft SQL Server 2000 Driver for JDBC from microsoft(msbase.jar, mssqlserver.jar, msutil.jar), add the driver in jdevelop libraries, I can right click the java file to run this application in application navigator , I want run it in java web start and deploy in oc4j, and setup application follow the document of
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adfjclientbcwebstart.pdf
    ,but application catch the exception of com.microsoft.jdbc.sqlserver.SQLServerDriver ClassNotFoundException, how to load SQL Server JDBC in embedded oc4j server or standalone oc4j server
    Thaks for helping me!

    How to load SQL Server JDBC to OC4J server

  • Newbie question to java web services....

    hi,
    I used to be a .net programmer for a few years, and am have done web services in .net.... (using IIS, of course)
    And i moved onto Java side recently - and am pretty new to tomcat / axis..etc..
    I looked at the netbeans ide tutorial, and it covered on how to create a web services and a client using the IDE - with that is with the sun app server. Since I want to stick with Tomcat (which is a servlet container, i believe), the compilation complained that the HelloWSImpl.java is not a servlet, and will not let me run the web app. I have tried the WSDP 2.0 tutorial as well, but I first got the FastSetsource.jar not found? Then I got some other classes not found..etc... so, until now - i still am not able to create a web service, and a cliet to talk back and forth.
    I have the following questions..
    1. I am confused that how come tomcat itself is already a webserver, why would people use it on top of apache http server, which is another web server?
    2. To create a web services, (I am thinking of the .net web services that i have done - that once you deploy it with IIS, and you browse to that service, if the function takes 2 parameter, there will be 2 textboxes waiting for you to put data to, then once you post - the xml response will come back...), does java allow front end interface automatically like that in .net? Or you have to code the JSP pages to include those textboxes yourself, and do a manual post to the web services address?
    3. Are there any book out there, explains how to use tomcat for webservices? I have looked thru some of the java books that talks about web services, they mainly explain what webservices are, what is xml..etc... and of course, they did talk about the differenct type of messaging format available. (JAX-RPC..etc..)
    4. In the java world - how do you use webservices? Is it the same way that i am familiar with? Like, that we have a front end gui, that it will call the web services, pass it a few param, and get the xml result back, and parse it and display / store.. it? Or that is not the correct way to consume the web services in java world?
    5. In .net - as long as i have the .net framework sdk, and a IIS - i am good to go. In java - what do i need in order to deploy a web services?? I already have tomcat / jdk / wsdp / IDE - do i have enough to create a simple ws? if so, can you show me a basic tutorial??
    based on some reading, i understand that the ws on the service side, needs an SEI implementing java.rmi.remote, and we need another class implementing this SEI. But I would really want to see more example, or downloads, where i can just download / view the whole thing all at once... I googled "java web service", "jax-rpc example"..etc.. most of the return links are from either java.sun.com, or ibm, or some other vendor's web site, explaining the architecture... I really want to look at the code, to get a better understand, what is the relationship between each of these softwares (tomcat, apache http server, axis...)
    Any suggestions??
    Thanks,
    T

    I think I can answer your Q1
    Apache is very good at serving simple HTML pages
    Tomcat is capable of serving active content
    So the two complement each other
    Or that's how I understand it.
    Steaker

  • Using request object in java web service code

    Hi,
    I am working on a java web service and require the request object in my code.
    This is because i want to get the name of the user who is using this web service.
    I am getting error in the line
    IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    Please guide me how to use the request object.
    Please also suggest if there is any other way to get the name of the user who is using the web service.

    Simple answer: This is not possible due a web service doesn't has such request objects.
    If you want to use the user information you have to pass it from the programm logic you are calling the web service. When you have e.g. a JSPDynPage you can read out the user information and supply this information for your web service.

  • Java Web Start 6 doesn't work since today

    Since today we can't use Java webstart 6
    when we want to start our company program it cames following error
    n-az10095:Commands vef$ javaws
    Java Web Start splash screen process exiting ...
    Can not find message file: No such file or directory
    I have reinstalled java6 several times and often reboot between the steps
    it didn't fixed the problem.
    we can't update to java web start 7 because our company programm doesn't support it.
    So a lot of people can't work at the moment.
    We have the same problem on macs running osx 10.7.5 and osx 10.8.2
    Please help!

    yabbanoname wrote:
    See also https://discussions.apple.com/thread/4760961
    Your answer isn't correct.
    The problem is the locale setting.
    Try
      LANG=C javaws

  • Eclipselink x Java WEB Start

    Gentlemen,
    My application is desktop (swing, iReport 3.6.2, EclipseLink 1.2.0.v20091016-r5565, Postgresql 8.4) and run on JRE 1.6.0_17. This application is running on the LAN and the Internet via the JWS (Java Web Start), it follows that access the Internet via JWS is very time consuming, taking around 15 to 20 minutes to make the connection to the database (Mandriva 2009 -- Apache HTTP Server 2.0).
    Is there any way to improve this time from connection to the database?
    The following configurations:
       private GnsSvrGrs1a() {
            // Mudando as propriedades da conexão.
            propriedades = new HashMap<String, Object>();
            propriedades.put(PersistenceUnitProperties.CLASSLOADER, this.getClass().getClassLoader());
            if (this.getClass().getResource("GnsSvrGrs1a.class").getPath().contains("XXX.XX.XXX.XXX")){
                propriedades.put(PersistenceUnitProperties.CLASSLOADER, GnsSvrGrs1a.class.getClassLoader());
                propriedades.put(PersistenceUnitProperties.JDBC_USER, "postgres");
                propriedades.put(PersistenceUnitProperties.JDBC_PASSWORD, "xxxxxx");
                propriedades.put(PersistenceUnitProperties.JDBC_URL, "jdbc:postgresql://XXX.XX.XXX.XXX:5432/genesis");
                propriedades.put(PersistenceUnitProperties.JDBC_DRIVER, "org.postgresql.Driver");
                propriedades.put(PersistenceUnitProperties.LOGGING_LEVEL, "FINE");
                propriedades.put(PersistenceUnitProperties.LOGGING_TIMESTAMP, "false");
                propriedades.put(PersistenceUnitProperties.LOGGING_SESSION, "false");
                propriedades.put(PersistenceUnitProperties.LOGGING_THREAD, "false");
            try {
                EntityManagerFactory emf = Persistence.createEntityManagerFactory("GENESIS-GERAIS", propriedades);
                em = emf.createEntityManager();
            } catch (Exception e) {
                e.printStackTrace();
        }// GnsSvrGrs1a.
        public static GnsSvrGrs1a getInstancia() {
            if (instanciaGnsSvrGrs1a == null) {
                instanciaGnsSvrGrs1a = new GnsSvrGrs1a();
            return instanciaGnsSvrGrs1a;
        }// getInstancia.Regards,
    Olavo Jr.

    A few years ago when I was a Java programmer and was
    developing apps for delivery with Java Web Start, I asked a similar
    question. I didn't find a solution then, either. If you want to
    display a SWF within a Java application, it would have to be done
    through the Java media framework (I don't know its official name).
    But that framework would have to be able to incorporate the Flash
    Player somehow - either through as an ActiveX control or through a
    plugin or with the standalone player.
    My guess is that this is not possible, but keep searching the
    'net - if it can be done, someone has done it.

  • Good exception handling policy for Java web application

    I'm looking for a good exception handling policy for Java web application. First I found this Java exception handling best practices - How To Do In Java which says that you should never catch the Trowable class nor use e.printStackTrace();
    Then I found this Oracle page The Message-Driven Bean Class - The Java EE 6 Tutorial, which does just that. So now I'm confused. Is there a good page online for an exception handling policy for Java EE Web applications? I have a hard time finding one. I've read that you should not catch the Exception class. I've been catching it previously to make sure that some unknown exception doesn't slip through early in the loop and stops all other customers from executing later on in the loop. We have a loop which runs once a minute implemented using the Quartz framework. Is it OK if you just change the implementation to catch the RuntimeException class instead of the Exception class? We're using Java 7 and the Jetty Servlet Container.

    I'm looking for a good exception handling policy for Java web application.
    If you have not done so I suggest you start by reviewing the several trails in The Java Tutorials.
    Those trails cover both HOW to use exceptions and WHEN to use them.
    This trail discusses  the 'controversy' you mention regarding 'Unchecked Exceptions'
    http://docs.oracle.com/javase/tutorial/essential/exceptions/runtime.html
    Unchecked Exceptions — The Controversy
    Because the Java programming language does not require methods to catch or to specify unchecked exceptions (RuntimeException, Error, and their subclasses), programmers may be tempted to write code that throws only unchecked exceptions or to make all their exception subclasses inherit from RuntimeException. Both of these shortcuts allow programmers to write code without bothering with compiler errors and without bothering to specify or to catch any exceptions. Although this may seem convenient to the programmer, it sidesteps the intent of the catch or specify requirement and can cause problems for others using your classes.
    Why did the designers decide to force a method to specify all uncaught checked exceptions that can be thrown within its scope? Any Exception that can be thrown by a method is part of the method's public programming interface. Those who call a method must know about the exceptions that a method can throw so that they can decide what to do about them. These exceptions are as much a part of that method's programming interface as its parameters and return value.
    The next question might be: "If it's so good to document a method's API, including the exceptions it can throw, why not specify runtime exceptions too?" Runtime exceptions represent problems that are the result of a programming problem, and as such, the API client code cannot reasonably be expected to recover from them or to handle them in any way. Such problems include arithmetic exceptions, such as dividing by zero; pointer exceptions, such as trying to access an object through a null reference; and indexing exceptions, such as attempting to access an array element through an index that is too large or too small.
    Generally don't catch an exception unless you plan to HANDLE the exception. Logging, by itself is NOT handliing.
    First I found this Java exception handling best practices - How To Do In Java which says that you should never catch the Trowable class nor use e.printStackTrace(); 
    That article, like many, has some good advice and some poor or even bad advice. You get what you pay for!
    I've read that you should not catch the Exception class.
    Ok - but all that does is indicate that a problem of some sort happened somewhere. Not very useful info. Java goes to a lot of trouble to provide specific exceptions for specific problems.
    I've been catching it previously to make sure that some unknown exception doesn't slip through early in the loop and stops all other customers from executing later on in the loop.
    If the exception is 'unknown' then maybe it NEEDS to 'stop all other customers from executing later on in the loop'.
    That is EXACTLY why you don't want to do that. You need to identify which exceptions should NOT stop processing and which ones should.
    Some 'unknown' exceptions can NOT be recovered and indicate a serious problem, perhaps with the JVM itself. You can NOT just blindly keep executing and ignore them without risking data corruption and/or the integrity of the entire system Java is running on.
    Is it OK if you just change the implementation to catch the RuntimeException class instead of the Exception class? We're using Java 7 and the Jetty Servlet Container.
    No - not if you want a well-behaved system.
    Don't catch exceptions unless you HANDLE/resolve them. There are times when it makes sense to log the exception (which does NOT handle it) and then raise it again so that it gets handled properly later. Yes - I know that is contrary to the advice given in that article but, IMHO, that article is wrong about that point.
    If you have ever had to maintain/fix/support someone else's Java code you should already understand how difficult it can be to find WHERE a problem occurs and WHAT the exact problem is when exceptions are not handled properly.

  • Serverlets, JSP and Java Web Start

    Hi As I have heard J2EE is used for serverlet's and JSP programming But JSP and Serverlet programming can be created and implemented using java web start which comes with J2SE what then is the difference between J2EE and J2SE

    Clarification:
    J2EE has an additional E in it, while J2SE as an additional S.
    Ok, now that we cleared that up, Lets see if I can answer your question.
    There is no magic button such as 'java web start' that will automatically generate computer code for you. You have to write java line by line and debug each and every line of code. A typical whole project may consist up up to 1500 functions (mine has over 12000). You read whole books on the subject as I discuss below and work through thier examples. Within about 2 or 3 years of hard study, you should be a pretty good programmer.
    Java is an object oriented language that you'll need to become familiar with that takes some practice to learn. Also, a java based web site consists of several technologies in addition to the java language that you'll need to be familiar with. Many programmers will read articles on the internet and pick up fragments of information on these various technologies and throw a web site together thats impossible to maintain and enhance. I think it would be better if you read whole books and experiment with the technologies. Consider it an at-come college course. Here is my suggested reading list read in roughly this order ( I suggest buying them one at a time via the internet (its cheaper) before moving onto the next book).
    "Thinking In Java" - Bruce Eckel
    HTML & XHTML: The Definitive Guide
    JavaServer Pages - Hans Bergsten
    Programming Jakarta Struts
    JavaScript: The Definitive Guide
    SAMs Teach Yourself SQL
    JDBC and Java
    Also, visit the Web Tools Platform (WTP) Project (www.eclipse.org/webtools) . Its a free Eclipse Java development tool that has the bulk of the java development IDE market (above even JBuilder).However, I suggest creating a few small java programs using the dos command line before you let this IDE do a lot of the work for you. You also might want to install some type of database (Oracle Lite, MySql, etc) on your computer so you have a database to play with (you'll need a computer with at least 2Gbytes of memory).

Maybe you are looking for

  • Need Calendar Year  as a Variable in the Title of a Table using WAD 3.5

    I am using Web Application Designer 3.5 for the first time. I am modifying a template that has the following table object in it: </object><object>          <param name="OWNER" value="SAP_BW"/>          <param name="CMD" value="GET_ITEM"/>          <p

  • Can't get wireless to work

    here's the situation... -extreme hooked up to cable modem -iMac connected to extreme w/ethernet cable -internet works fine -go to airport utility, follow steps to create a wireless network -wireless doesn't work, and iMac internet (wired to extreme)

  • Can't print the Illustration

    I am running Illustrator CS3 with the 13.02 update under Windows Vista Home Premium service pack 1. Whatever I try to print, even just one square, will not print on my HP Color Laserjet 2700n or my Epson Stylus Pro 3800. I get a message saying "Can't

  • Fillable forms blank in attachment

    Hi, I have created a fillable PDF form but when I send it as an attachment and open it on my iPhone I cant see the content that I entered into the text boxes. Any ideas?

  • ExchangeProfile/aii.properties

    Hi All, My XI3.0 instance is started successfully, but on going to the xi home page, i get the error: Exception An internal error occurred. Contact you XI administrator Unable to read configuration data (ExchangeProfile/aii.properties) Error Details,