Learning java before jsp?

Do I need to know Java before learning JSP?
Also, I have a laptop that I am using at home and would like to start learning Java and JSP. Will Tomcat work on my laptop? Can I launch it from my desktop?

It is not absolutely necessary to learn java before you learn jsp, but you must at least have programming experience. But if you want to do better, then you need to learn java.
tomcat should run on your laptop.

Similar Messages

  • Good books for learning Java(Servlets,JSP,EJB,etc.,),Javascript.

    Hi Experts,
    Can you suggest me some good books on java , javascript.The books should include the internals of Servlets,JSP,EJB.
    Thanks
    vishal

    http://forum.java.sun.com/thread.jspa?forumID=54&threadID=756427&start=7
    http://forum.java.sun.com/thread.jspa?forumID=54&threadID=751055
    http://forum.java.sun.com/thread.jspa?forumID=54&threadID=743429
    http://forum.java.sun.com/thread.jspa?forumID=54&threadID=742997&start=11
    http://forum.java.sun.com/thread.jspa?forumID=54&threadID=750775&start=24
    Just a simple search for this forum....
    It took me 10 seconds tofind these..
    JJ

  • Learning Java in order?

    Is there a specific order to learning java. What I mean is, I hava already gone through the fundementals of java at the Java fundementals tutorial on the java.sun.com tutorials page. Now that I have gone through that what is next? JDBC? Servlets? JSP? I hardly ever use swing, or applets, but I need to also study enough of everything so that I can take the java certification exam later. But, I still dont know if there is a learning order to java. Do I need to learn servlets before JSP, or vise versa. Do I need to know JDBC stuff before I learn Servlets or JSP? The java tutorials page is not in any order except in the date that the tutorial came out. They still have tutorial that go back to 1997, and I am sure some things have changed since. They also have specialized areas, such as Collections, JavaBeans, RMI, etc... I am confused on this. Could someone give me a clue.
    orozcom

    Duffy,
    Thanks for the response. I looked at the tutorial
    again, and their is another java trail, "Essential
    Java Classes", which covers: exception handling,
    threads, io reading and writing, setting program
    attributes, and accessing system resources. I think I
    will go over that information first. Then, I may go
    into the specialized trials that have collections and
    what not. after that, I think I will go into the J2EE
    stuff, doing Servlets, and JSP's unless I need to
    learn that stuff before hand. Tell me what you think.I think that's wise.
    Here is the site:
    http://java.sun.com/docs/books/tutorial/index.html.
    Do you think I need to go over the basics of Swing,
    Applets, GUI's, and in the order they specify?Personally, I don't use applets at all, but I know some folks here do. On those occasions when I have a UI, it's usually Web-based, so JSP and HTML are more important to me. I have done Swing, but not in a long time. Swing is worth knowing, and all learning is good, but the decision about where to spend your time is up to you.
    All I'm saying is make sure you have J2SE firmly in hand before you venture into J2EE, because J2EE builds on J2SE.

  • To invoke a java file before jsp

    how to invoke a java file like servlet before jsp in adf.
    .i want to write some custom methods in java file . I want to invoke it before jsp file .

    Hi,
    I think a servlet filter would be better suited than a servlet. However, if this in the context of e.g. JSF then a JSF Phaselistener is a much better approach
    Frank

  • The best way for moving from Java To JSP....

    Hello Guys ,
    Actually i am New to Java Technology and i Love it very much , i am trying to do my best ...
    i Understand it , it`s Logical for me , as you told you i`m New to Java Technology and i wanna learn JSP as soon as i can , because i have to do the commercial Project "Website" for my Univ... And Sure i wanna Continue With Jsp .. For Enterprise Commercial Projects .Sure i will Continue with Java Too ..
    The Question is .. , What is the Best way i MUST follow to achive my target ?
    i mean if i can start with Jsp Directly , or i have to focus on special Topics in Java Before Strat JSP ...
    i have just 6 monthes to Perform my Commercial Project "Payment On line ..etc"
    So Please i really want your Help
    I`d be really thankfull for you guys
    thanx for your time
    Java son

    Enterprise Applications != JSP. JSP is just a
    front-end. For enterprise apps you'd probably rather
    need EJBs...Argh... not true. I see what you are getting at, as JSP is merely presentation layer stuff; however, EJBs are certainly not ever required per se, altho they may offer some services that may be useful. I suggest OP takes a look at Struts in order to separate the webapp in an MVC style so that the decision for what to use at the back is decoupled from everything else. If it is a simple webapp, and for a University then I don't think a complex back-end will be required. In any case webapps are not enterprise systems, but they may act as views on them in some cases.

  • Java or jsp..

    hi, i'm a newbie here and i hope this is not a stupid question of mine; i'd like to ask for your opinion and here it goes..
    i've been reading some books, tutorials, forums etc and
    i could not make up my mind whether to focus on JAVA first or to jump directly into JSP. Since i have a little background on C++ (although i'm ot too good at it), i think that if i just go on focusing on JSP, then on the same time i'll be able to understand Java as well.
    but in the mean time, a friend of mine advice me to stick into Java first, and when i'm very good at it then i should jump into JSP.
    right now i'm still studying and i was hoping before i graduate (1 more year), i'll have one programming skills for me to 'survive' later on.
    Emm..your opinion please..? thanks..

    A JSP (Java Server Page) is an HTML page with Java
    code inside it.Though with as little code as possible actually embedded in the HTML.
    One of the most important things with JSP is seperation. That is seperating your code form your html (and hopefully your html from you style/css).
    Learn Java first, as this way you will get used to writing Java classes. You can then use these classes from within your JSPs.
    I think if you went straight for JSPs you'd pick up a lot of bad habbits, and even when you start writing JSPs you're likely to find it a lot easier and quicker to prdouce bad pages (mix of html and java) than good pages (nice seperation).
    When you get on to learning JSPs make sure you try and learn good practices from the start.
    When you learn Java, make sure you learn about Object Oriented Programming.
    Being a bad programmer means learning the syntax.
    Being a good programmer means learning the theory and practices.

  • Need advice/suggestions on HOW and WHERE to START learning JAVA Prog.

    Hello
    MY educational background is Bachleor in Computer Science and Engg. (BE). I just landed in US and need to learn Basic JAVA programming , fundamentals, concepts of swing, JSP, JDBC connectivity............it might sound wierd seeing the above list but all i need to do at my work in future is all about DOCUMENTUM and i have very little time say 40 days to learn core java and its concepts coz that wuld come to play when i work on documentum.......even if come across something which i havent learnt in java, i guess i culd manage looking up some reference books, learn and do the job.....so can someone guide me thru the learning process of core java........i have been using " JAVA 2 Fundamentals Cay S Horstmann and Gary Cornell" and the basic tutorials which is available at sun.com but i am finding difficulty in remembering the concepts although i have understood it earlier. Is there a comprehensive online tutorial which can guide me through the learning process of core java?
    The resources available :
    P4 HP laptop
    24/7 High speed LAN
    the book i have mentioned earlier.
    just cant wait to start learning java
    Thanks

    Hello
    MY educational background is Bachleor in Computer
    Science and Engg. (BE). I just landed in US and need
    to learn Basic JAVA programming , fundamentals,
    concepts of swing, JSP, JDBC
    connectivity............it might sound wierd seeing
    the above list but all i need to do at my work in
    future is all about DOCUMENTUM and i have very
    little time say 40 days to learn core java and its
    concepts coz that wuld come to play when i work on
    documentum.......even if come across something which
    i havent learnt in java, i guess i culd manage
    looking up some reference books, learn and do the
    job.....so can someone guide me thru the learning
    process of core java........i have been using " JAVA
    2 Fundamentals Cay S Horstmann and Gary Cornell" and
    the basic tutorials which is available at sun.com but
    i am finding difficulty in remembering the concepts
    although i have understood it earlier. Is there a
    comprehensive online tutorial which can guide me
    through the learning process of core java?
    The resources available :
    P4 HP laptop
    24/7 High speed LAN
    the book i have mentioned earlier.
    just cant wait to start learning java
    ThanksOk, I haven't been much help here lately, but I'd like to help here if I can. In my opinion, you're talking about Advanced Java topics here. You are basically asking to run before you walk.
    Can you compile and run a simple 'Hello World' program in Java?
    I've always found that a positive way to start.

  • Im Trying To Learn Java :o(

    Hey All,
    I have decided to get my mind active and randomly learn Java. I say randomly because i am going to be a student again in IT but i like the kinda 3D side and modelling and nice pictures and flash actionscript lol not all this stuff.
    Anways i would just start by saying that Java offends me massivly, i know something happened with M$ and Sun and ever since then all i have had with the sun download is problem after problem and crashing and all iw as tryin to do was play some Jippii games. This aint a recent problem, it always happens and i must have reformatted xp around 7 times. So i stay away from applets!!!
    Anyways in 2002 when i started learning Flash it was because i seen a site i liked and wanted to do that. The equivelent is kinda like me saying "OK GUYS I HAVE JAVA NOW HOW DO I MAKE DOOM" anyways 2 and a half years later im happy with what i can do and have used alot of different apps and learned alot from 3dsmax to aftereffects etc.
    Anyways my goal out of this whole Java thing is to make a game like one i used to play when i was younger on the Amiga 500. No where has this game and a modern one would be great to play. The graphics suck but the physics were really nice.
    So my questions are:
    1) Java. Ok im going to be honest, i know nothing about Java, i dont even know if it can do what i want and what i really dont want is to spend a while learning this to be stuck with no effects for my game, ie are small particle effects possible in Java? I know Java is pretty slow for a proper language compared to C/C++ but how slow? Can you shift a hundred particles around the screen and still add physics in the background?
    2) Java. The whole thing confuses me massivly. Im not a big posting person as i tend to prefer searching but i dont even know where to begin. I will bite the bullet and say i aint going to have alot of problems with the syntax of the language itself. It all looks kinda how i expect it, obviously i dont mean i aint gonna have problems and lot of them but it is not REALLY alien to me to look at a bit code. At the same time it is. I need to know alot of stuff, things that the 2 ebooks i have just ignored. For example, when i compile something, i thought that meant it compiled to the EXE but infact it turned my "heyworld.java" into a "heyworld.class" file. This just makes no sense to me atall because i HATE command line stuff, i see it as reinventing the wheel so im trying to follow through on first of all netbeans (an that went off almost instantly) and a free one that got my hey world to work (well, class). I need to know if a compiler dont make a exe then whats the class for and what exactly is a class file. You know just stuff like that? Does anyone know i kinda dictionary so to speak? baby talk i mean, so far all i seem to get is explainations with words i dont understand.
    3) How difficult is it to make a 2D game in Java? To make this plainer, i aint having an applet run somewhere, i want a nice downloadable exe. Of course i will need to start at the beginning but i mean to get a ship on the screen with keys to move it and a "cave" roof to crash into, is this going to take a long long long time to get to that stage? You see, as i said before unless after a few days i have a object on screen to work with, i just get too bored to continue. for example "the object of this is to make a red circle move across the screen" REALLY interests me where as "today we are going to make a mock system for a small business user" sends me back to 3Dmax and the lighting i was reading about lol I tend to look at a piece of code and be devestated by its complexity then try and make it make sense over time. Is this possible with Java? It does work for me this, i was picking apart a isometric code in actionscript before i knew what a tween was.
    4) Theres so many different J*** J"EE things floating around that i dont actually know what one i am meant to use? I got 1.4.2 i think but thats all i know. Id like any other things that helped yourselfs start off in Java?
    Sorry to go into a bit detail here, its just that with this degree im starting, it soon branches off into 2 groups. Programmers and Designers. I feel i know the design side well enough to make a comparison but it would be rude to leave this side of the things out and write it off without atleast giving it a shot.
    Thank you very much for your time :o)
    Kind regards,
    Clarky.

    If you want an idea of what's possible with Java, do a google search for "java games" or something like that. I've seen occasional postings of what are supposed to be pretty cool games that have been written in Java, but I'm not into games, so I've never bothered to check 'em out personally.
    As to whether you can do it, well, you'll have to figure that out. Learning Java well enough to create a video game is not a trivial task. I don't just mean the syntax of the language, I mean the many APIs you'll be using, concepts like multithreading and exception handling, good OO principles, etc. Without a good handle on that stuff, your code will quickly turn into a morass that will be difficult to enhance, maintain, or debug.
    I suspect that the code to make a particular graphical event occur will be more verbose and complex in Java than in ActionScript, given that Java is a general purpose language and AS is more geared to GUIs. Nonetheless, I'm sure there are APIs out there (some free, some not) that will provide some higher level constructs than the core APIs to make some of that easier. You'll still be operating in the idiom of a general programming language though.
    There may also be a hybrid solution available--where you use Java to express the game logic and another language to express the graphics. I don't know anything about this kind of stuff though, so that's just speculation.
    You may get more precise advice in the GUI Building forums on http://forum.java.sun.com/ than here.
    Here are some resources to get you started on Java in general.
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.

  • Helping people learn Java

    Hello,
    I am just about to go into my third year of a Applied Computing degree at dundee university. Over the summer I have been part of a project to develop an e-learning course for people that have not used Java before.
    I was really wondering if it would be possable for the people in this forum to have a quick play about with a small online tutorial I have been working on and give me any feedback (good or bad) on it.
    You can find it at
    http://vegeta.computing.dundee.ac.uk/t22/jq/text.asp?id=1
    Javascript is required

    This was the first example I got.
    private float average3(int a, int b, int c)
         double sum;
         sum = a+b+c;
         sum = sum/3.0;
         return(sum);
    }Ok, apart from the obvious error of calling the average a sum, I have the following comments:
    Whatever your personal choice of {} placement, if you are giving a tutorial, then you should be encouraging the use of the java coding standards (if you don't know what they are, then you shouldn't even be involved in teaching others.
    The use of a, b, c as parameter names should again be frowned upon (but I guess in this instance they would be excusable)
    The declaration of a variable on one line and its initialisation on another line, while may seem like a correct verbose method of teaching, is actually enforcing bad habits for the future. If a variable can be initialised where it is declared, then it should be....
            double sum;
         sum = a+b+c;
    // Why notNow we come to a complete bug in the code. You are declaring sum (I have already given out about the name of that variable, so I won't go into it again) as a double, and you are returning a float as stipulated by the functional specification. Yet you don't cast it to a float... This code won't even compile.
    Correct code would include:
        private float average3(int first, int second, int third) {
            return (first + second + third) / 3.0f;
        }or alternatively:
        private float average3(int first, int second, int third) {
            return (float) ((first + second + third) / 3.0);
        }I would suggest that you test any code snippets that you intend to use as teaching aids.

  • 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

  • How to learn java script in indesign

    Dear Sir,
    I am a template designer, I am interesting on Indesign scripting but I don't know basic knowledge in software languages. So Please help me which languages i should learn for indesign scripting. (some of them saying C language is must). Is c language is essential or Shall i go directly with java script. And also i want Beginners indesign scripting guide (not advanced) and give me some tips how should i develop skills in a short period. Please advice me.

    +1
    What we call here "InDesign JavaScript" (DOM+language) is syntactically based on Adobe ExtendScript, which derives from E4X (ECMAScript for XML) and ECMAScript itself. (JavaScript is known as an implementation of the ECMAScript standard.)
    In short terms, "InDesign JS" as a language should somewhat implement the ECMAScript and E4X specifications, i.e. ECMA-262 and ECMA-357:
    1) http://www.ecma-international.org/publications/standards/Ecma-262.htm
    2) http://www.ecma-international.org/publications/standards/Ecma-357.htm
    It is true that the JavaScript's syntax and conventions contain familiar echoes from C or even Java, but these languages are definitely different on the semantic level and I really don't believe it's a good idea to learn C before learning JS.
    Here are a few links I would add to this discussion:
    The basics:
    – Eloquent JavaScript (Marijn Haverbeke): http://eloquentjavascript.net/
    – JavaScript Guide (MDN): https://developer.mozilla.org/en/JavaScript/Guide
    – Douglas Crockford on JavaScript: http://javascript.crockford.com/
    Advanced articles and resources:
    – Peter Michaux (see "JavaScript Language"): http://peter.michaux.ca/
    – Learning Advanced JavaScript (John Resig's tutorial): http://ejohn.org/apps/learn/
    – Higher-Order JavaScript (Sean M. Burke): http://interglacial.com/hoj/hoj.html
    – Annotated ECMAScript 5.1 (next spec., in the making): http://es5.github.com/
    @+
    Marc

  • Why learn Java Instead of C++ or...

    Why should people learn Java and use Java than C++ or other programming languages?
    Some of my personal reasons are:
    1. Java supports four look and feels without having to create them from scratch, they are already available for quick use.
    2. Java compiles fast, and runs fast. It's easy to understand. You can *.jar it into one file! No *.dll's!!!

    I like Java too (duh!), but...
    Why should people learn Java and use Java than C++ or
    other programming languages?
    Some of my personal reasons are:
    1. Java supports four look and feels without having
    to create them from scratch, they are already
    available for quick use.
    What? how is that an advantage over much of anything? OK, you could say that you can write a very complex GUI application and have it run on a number of very different applications using a common L&F or a platform-appropriate L&F.
    2. Java compiles fast, and runs fast. It's easy to
    understand. You can *.jar it into one file! No
    *.dll's!!!Before there were .DLL's and .so's there were big-ass executable files with everything linked into them. Oh wait, you can still do that on Win32 and Unix if you want to (except of course for the OS shared libraries which Java's JRE needs too).
    Chuck

  • Learning Java but have problem displaying dialog

    I am learning Java by building a Platform based application. I have build the basic structure with several menu items and successfuly build two set of modules (an XML file reader and a set of initilization rouitnes. I amnow branching into a module to execute when a menu item is selected. I want to display a new window/dialog that contains a table showing the user options. However, I never get anythng displayed. The following code is from the menuitem handler. I commented out the logic I want to start working with, in an attempt to get something displayed. No Luck. I really need some help.
    public final class EditPreferences implements ActionListener {
         @Override
         public void actionPerformed(ActionEvent e) {
              JFrame frame = new JFrame("User and Project Preferences");
              JPanel panel = new JPanel();
    //          JTable table = new JTable( new PrefTableModel() );
    //          table.setRowSelectionAllowed(false);
    //          JScrollPane pane = new JScrollPane(table);
    //          table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    //          panel.add(pane);
              frame.add(panel);
              frame.setVisible(true);
    }I have been looking and reading all over the web and cannot figure this out. I think it should work, but is does not.

    If "frame" is a JFrame, as it is in your code, then (as of Java 5) frame.add(panel) is the same as frame.getContentPane().add(panel) . See Javadoc for JFrame.add . So, that's not your problem here.
    Try calling:
    frame.pack();before you call frame.setVisible. And, of course, uncomment the lines. Right now, your JFrame will still look empty, because your JPanel is empty.
    If you just want to see if a JFrame will display, you could replace the commented lines with something very simple:
    // Default layout of content pane is BorderLayout, default location is BorderLayout.CENTER
    panel.add(new JLabel("This is just a test."));

  • Best way to learn Java. Free resources online?

    Hello. I would like to start to learn Java but have no programming background except for Visual Basic and the basics of PHP. I started to learn about a week ago and now have a good understanding of some of the basic concepts, such as the IF, SWITCH, LOOPS, PRINTLN, ect. I am very interested in developing applications for the Blackberry and was wondering where I should start and what I should learn. Must I learn the entire Java programming language to start to develop mobile applications? Are there any free resources on the Sun Java website that would be able to help me learn?
    Thank you
    Edited by: n3xtgen on May 20, 2010 12:27 PM

    n3xtgen wrote:
    Must I learn the entire Java programming language to start to develop mobile applications?Depends on what you mean by "entire Java programming language". You should probably have a solid understanding of the language and concepts before attempting mobile development.
    The Java language itself is the same when developing for mobile devices (except you may be forced to rely on an older version of the language). But debugging/deployment/running your code becomes more complicated as soon as you target mobile devices.
    Therefore I suggest you take some time to learn "normal" Java development. It will definitely pay of in the long run.
    Are there any free resources on the Sun Java website that would be able to help me learn?There are [the tutorials|http://java.sun.com/docs/books/tutorial/]. They are pretty useful.

  • Learning Java inet programming

    hi,
    I wanted to learn servlets and JSP, but I don't know how exactly to approach the subject I wanted to put a plan of something like this:
    1- Install a virtual server
    2-Introduction to servlets
    3- handling get and post requests
    4- Sessioins
    5-Learn JSP basics
    6-go through JDBC to access databases
    can anyone help me develop a better plan. I realize that some books put XML yet I can't understand it's significance here. Can anyone help me with this?
    Octavian

    1. Townload Tomcat or JBoss
    2. Write a HelloWorld Servlet to respond to GET and POST requests
    3. Write a hello_world.jsp
    4. Read up on HTTP
    5. Write a more complex application that routes requests (via Servlets) between pages (JSP's)
    6. Consider learning a web controller ala JSF or Struts
    7. Start connecting to the database. Learn JDBC.
    8. Before you do too much damage to your app and your skills, learn, memorize and love the model-view-controller paradigm
    9. Complete your app
    Now onto more advanced topics in no particular order
    1. Move configuration to XML files or database tables
    2. Consider writing a stateless session bean (EJB)
    3. Familiarize yourself with code-generation tools like XDoclet to speed up development
    4. Pick your favorite IDE (mine is Eclipse, NetBeans and Idea are also popular) and learn to use it to speed up development
    5. Learn asynchronous technologies like JMS and Ajax
    There's probably six months of material there. More than enough to get started. Welcome to J2EE!
    - Saish

Maybe you are looking for

  • PROBLEM IN TRANSFER POSTING WITH REF. TO RESERVATION

    Dear cons         I have been facing a problem in t- code- MB1B. I have configured for p.o field  in mb1b . in screen layout of transfer posting I have done.because we want a p.o no. field in MB1B.So we generally transfer the material with reference

  • I can only get on american app store and itunes when i live in australia

    I have an iphone 3g on the optus network in australia. Everything was working fine until a couple of weeks ago when i restarted it by holding down the sleep button and the home button for 10 seconds. When it restarted it came up with iphone is active

  • Report opportunity revenue based on a snap shot

    Is it possible to pull a report on what expected opportunity revenue was on the 3rd day of the month from the analytics section of the reporting? We are looking to compare the expected closed revenue from the snapshot taken on the 3rd to the current,

  • Not working sensor

    perfomance is very slow and sensor not working properly

  • Adding a table (JCDS) to a copy package

    We have used TDMS many times now, and our end users have identified a table they would like to add to our transfer. Table JCDS. Question, Does anyone know how to add a table to a copy package?  The step "Select Tables for reduction" does not appear w