About MVC

hi,
iam building a application..i need your suggetion is it good practice re not.i kept all my business logic in java beans.GUI in jsps.so whenever iam performing some action iam calling the jsps through controller server.in each page for any action i will do like this.
document.emp.action = "<%=contextName%>/controller.do?action=addemp";
in controller servlet..
String handler = request.getParameter("action");
if(handler.equalsIgnoreCase("addemp"))
String destUrl = "/addemp.jsp";
requestdispatcher = getServletContext().getRequestDispatcher(destUrl);
requestdispatcher.forward(request,response);
return;
is it good way of doing the web application..performence wise and design wise.
and also in above statement for destUrl if i add contextpath+"/addemp.jsp";
then its not identifying it correctly.
advise me on this..
Regards,

Read these articles to know about How to improve your J2EE Application Performance
Design Patterns for Optimizing the Performance of J2EE Applications : http://java.sun.com/developer/technicalArticles/J2EE/J2EEpatterns/
Core J2EE Patterns: Patterns index page : http://java.sun.com/blueprints/corej2eepatterns/Patterns/
regards,
immu.

Similar Messages

  • MVC - Organizing models and managing GUI windows

    I'm having difficulty organizing my MVC models and basically controlling the whole application in general. My application works, but all the controlling logic is being dumped into the main class (Main.java). Here's a simple example of the problem I'm having:
    Objectives
    1) Display a list of Companies; i.e. Sun, Microsoft, Adobe, etc. (JFrame with a JList)
    2) The user select a Company and it pops up a new dialog with a list of Employees. (JDialog with a JList)
    Here are the classes I came up with:
    Models:
    1) CompanyListModel
    2) EmployeeListModel
    Listeners:
    1) CompanyListener
    Views:
    1) CompanyListFrame
    2) EmployeeListDialog
    Domain Objects:
    1) Company
    2) Employee
    And then there's the main application class. To implement the above objective, I've been using my main class to control the GUI.
    Here's an example of how I've implemented it.
    public class Main implements CompanyListener {
        /** Creates a new instance of Main */
        public Main() {
            CompanyListModel companyModel = new CompanyListModel();
            companyModel.addCompanyListener(this);
            CompanyListFrame gui = new CompanyListFrame(companyModel);
        // A company was selected.  Open a new dialog and display the employees
        public void companySelected(CompanyModel companyModel) {
            Company company = companyModel.getCompany();
            EmployeeListModel employeeModel = new EmployeeListModel(company));
            EmployeeListDialog = new EmployeeListDialog(employeeModel);
        public static void main(String[] args) {
            new Main();
    }My program is similiar design wise to the above, but contains many more classes. I'm still using my main class to control GUI logic (popping up new windows and creating models, etc). Thus, my main class implements like 5 different listeners. I'm sure this is a really poor design choice, I just don't know how else to implement it.
    I should not nest models... correct? I was thinking about nesting the models, i.e. CompanyListModel contains an EmployeeListModel, but then the CompanyListModel will need to spawn the EmployeeListDialog when a Company is selected, right? Thus, I'd be mixing the view with the model.
    Please provide some advice! :( Thanks!

    I'm sorry, I read your reply about 3 times and I've
    spent the last 20 minutes trying to implement it.
    I'm just not sure how the controllers are involved.
    Could you possibly provide source code for the
    controllers (and any part of the models / views that
    communicate with the controller)?No source code. Read about the MVC pattern.
    I feel like this is a wasted effort. I'm the sole
    entry level programmer at my company and I have only
    one year real wold experience . I work with about 10
    other senior level (microsoft) programmers and none
    of them code in this fashion. All of our
    applications are desktop applications using C#,
    C/C++, or scripting languages.What's a wasted effort? You posting a question? Me posting a response? You writing Java? You trying to think about how to do this properly?
    So why are you using Java if you're in a Microsoft shop? How's this working out with your co-workers?
    I feel like if I worked on a project with one of
    them, they would criticize me for using MVC and
    "complicating" such a simple issue.That's usually because Microsoft likes tying a particular text box to a column in a table. If you change the textbox value you change the database. Nice and easy, right?
    In trying to implement this solution, my workspace
    now has a huge load of classes for something so
    simple:
    Company
    CompanyFrame
    CompanyListController
    CompanyListListener
    CompanyListModel
    CompanyListPanel
    Employee
    EmployeeListDialog
    EmployeeListModel
    EmployeeListPanel
    Main
    11 classes and I left out the Emp Controller and
    Listener to simplify the example. The more classes
    that you have, the slower the application startup
    time. Moving the Views to JPanels as you suggested
    seemed smart but it wound up making it more
    difficult. I'm using NetBeans and Matisse and I
    don't believe you can use another JPanel class in the
    GUI editor unless you make it a bean.
    Traditionally, I would have implemented as follows.
    I would have completed it in 5 minutes and it would
    be much easier to understand what's going on:
    Company
    CompanyFrame - contains a list of companies
    Employee
    EmployeeListDialog - contains a list of employees
    Main
    Of course doing it this way I'd be mixing data with
    the view, but is that always a bad thing or is it
    only bad for large scale applications? Should MVC
    not be used for small modules like this?For small modules that are nothing more the CRUD operations, it might be that a simpler approach is fine. (PS - CRUD stands for Create/Read/Update/Delete, standard relational operations on tables. I'm not commenting on you or your code.)
    It only becomes a problem when that "simple" CRUD application decides to branch into something bigger. The approach of mingling view and data can become problematic then.
    It's still possible to have a clean application for small apps. I think most Microsoft programmers do it that way because the wizards and stuff they're used only allow it to be done that way.
    The reasons why I'm going away from my old "academic"
    programming practices is:
    1) I want to become a better programmer of course!Kudos to you. At least you're still thinking about it.
    2) There's alot of database queries in this
    application so I wanted to separate that from the GUI
    as much as possible. Thus, each model knows how to
    query the database and it's all done on separate
    threads.That's good motivation, too.
    I'd really like to do this right. If you could
    provide source that would be great. Also, are there
    any good books on desktop GUI development geared
    towards Java (or even C#)?I don't write for the desktop, so I'm not much help.
    I already purchased the e-book Desktop Java Live,
    which is great but they don't go into detail about
    MVC and instead use Model-Presenter which has been
    retired (according to Fowlers website). I found that
    section fairly confusing so I figured I'd start with
    MVC since it's more widespread (?).If you're reading Martin Fowler you're doing well.
    Thank you.I'm sorry that I'm not more helpful.
    %

  • CRM 7.0 implement method from MVC class

    Hello, folks.  I will prefix my question with the fact that I am a relative dinosaur in the development arena, still focused primarily procedural coding practices.  Although this still serves me well, it also means that I know little about OO development.  I have had some training and can make use of such common tools as OO ALV.  However, I know next to nothing about MVC (model view controller) programming, WEB Dynpro for ABAP, etc.  I am currently assigned to a CRM project (I am also new to CRM) and have a particular requirement that I cannot seem to address with any sort of procedural-based solution (i.e. function module).
    My requirement is to create a "URL Attachment" to a service request in CRM.  To elaborate, I have created an inbound point-to-point interface (i.e. not PI/XI) from an external system using Web Services.  The Web Service I have created ultimately invokes a call to function CRMXIF_ORDER_SAVE via a wrapper function I developed with the same interface.  This function, however, does not support the creation of "URL Attachments", only "Attachment Links".  So, my approach then is to implement additional functionality in my wrapper function to create this URL Attachment via some other means.  If you have any questions regarding URL Attachments vs. Attachment Links, please let me know.
    I have scoured the function modules to no avail.  What I have found is that via MVC, the functionality on the CRM Web UI is associated with the following class: CL_GS_CM_ADDURL_IMPL.  A search in SE24 reveals that there are actually several related? classes:
    CL_GS_CM_ADDURL
    CL_GS_CM_ADDURL_CN02
    CL_GS_CM_ADDURL_CN03
    CL_GS_CM_ADDURL_CTXT
    CL_GS_CM_ADDURL_IMPL
    My question is whether I can somehow implement one of these classes to address my requirement.  Looking at the logic within the IP_TO_ADDURL method, I cannot figure out whether I can somehow leverage this and, if so, exactly what coding would be required in my wrapper function.  I should also point that, at least from a Web UI point of view, this is a two step process whereby you must first create the attachment and the actually save it. 
    Any and all insights are much appreciated.
    Thanks.

    Hi there,
    I am not familiar with the CRM classes you mention - but what you describe is pretty much standard functionality included in Generic Object Services. May that path will lead you home.
    Cheers
    Graham Robbo

  • Is this MVC?

    I just finished reading Head First Design Patterns, which learned me a lot of stuff. But after reading the chapter about MVC I got a bit confused. I thought I was making my programs MVC (at least tried to) but now I am wondering. I take a small example.
    I have a simple UI with a button and a textlabel. I have a simple model with one class, MakeRandomQuoteClass.java, it has one main method, changeQuote(), that at random pick a new quote and sets its instance variabel, currentQuote, to the picked quote. Then by using the observer pattern, the update method in the UI get to know about the change, calls the method getQuote from MakeRandomQuoteClass and displays the new quote.
    So far I think I dont violate the MVC. But what I got unsure of when reading about it, is the controller part. When I press the button ("change quote"), the actionPerformed is called, and there I call model.changeQuote(). In the text the three parts was totally separated, but that might just have been the general description?
    Message was edited by:
    sandsater

    Sometimes, you have to ignore patterns. As long as
    you don't have a bunch of controllers (i.e.
    listeners) that are reused regularly, there is no
    need for the controller layer.I disagree.
    Anonymous, inner classes are a convenient and fast
    way to implement listeners, but they work against the
    MVC pattern. Giving this up for the MVC pattern will
    only pay off when your project reached a certain
    size.Another way to accomplish this is to inject the listeners into the UI. The listeners are part of the controller. The UI knows it needs listeners, but it doesn't need to know what they do. Have the controller instantiate the UI, create the listeners and inject them into the UI. Nice and clean.
    >
    The seperation between view and logic is WAY more
    important, and is a must-have for even the smallest
    applications. Only experience will tell you, when
    it's time to work with 3-, 4-, or even more-tiered
    application models.

  • JavaBean & MVC

    Hello, everybody.
    I've got a problem. I'm developing my own GUI and many different parts of it (such as buttons, switchers and other user controls) i put in jar's. It's easy to to use my own beans, but the problem is to use MVC pattern (Observer and Observable), because my bean's classes didn't know anything about controller class of the main project. How solve this problem?
    Thanks for your help!

    No idea what you are speaking about. But my sincere advice to you is first get yourself comfortable with basic java programming, then go to servlets, do some hands on programming, then think about MVC.
    =======================================================
    I have learn basic java and and I do some programming in java , also I programming some servlet ,
    My problem is I can not call ALL JSP File from tomcat
    It got error ;
    HTTP Status 500-
    type: Exception report
    description : The server encontered an internal error() that prevented it from fulliling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occured at line : 11 in the jsp file: theView.jsp
    Generated servlet error : message cannot be resolved
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(...)
    //--error line it depend my code where is i programming JSP code -
    for example
    <%! int count =0;%>
       <html>
         <title>My First JSP  </titel>
         <body>
           your are the visitor number <%=++count;%>
        </body>
      </html>I will got error
    HTTP Status 500-
    type: Exception report
    description : The server encontered an internal error() that prevented it from fulliling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occured at line : 5 in the jsp file: counter.jsp
    Generated servlet error : count cannot be resolved
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(...)
    but in case the servlet file I not got problem

  • About events and listeners : what's the point?

    Hello,
    I worked on Swing and Struts by the past so I have a little experience about MVC pattern, web application and event driven developpement.
    Despite that, I don't see the point using event listeners in JSF. Indeed, event-listeners code will be processed to the next server call (action generaly) which means event-listeners code could be deported in the action code.
    According my researchs, the 2 major differences between action method and event listeners methods are the followiongs :
    1) event listener codes can be processed before validation and model updating : in which cases this can be useful? I don't see.
    2) event listener codes have access to the component which fired the event : in which cases this can be useful? I don't see.
    If theses differences don't give new useful possibilities comparing to method actions so I don't underdstand the utility using events and listeners. I guess there are new possibilities but as i'm a beginner in JSF, i need help to take advantages of event driven developpement.
    What I would wish is very short and simple examples about what we can do with actionEvent and changeEvent that we can't do in other way (and in particular in an action code).
    Thanks you for reading me.
    P.S : forgive my spelling errors :)
    Corwin
    Edited by: Corwin_31 on May 20, 2009 6:26 AM (spelling errors)

    Corwin_31 wrote:
    What I would wish is very short and simple examples about what we can do with actionEvent You could set custom component attributes and make use of it in action method.
    You can find here an example: [http://balusc.blogspot.com/2006/06/using-datatables.html#SortingDatatable].
    and changeEvent that we can't do in other way (and in particular in an action code).You could use it to populate/change other components depending on the changed value.
    You can find here an example: [http://balusc.blogspot.com/2007/10/populate-child-menus.html].
    I must however admit, that with the Web 2.0 nowadays (Ajaxical powers) those server side events are a bit superfluous as you could easily let Ajaxical stuff take it over. That's also why there exist Ajaxical JSF component libraries which make use of those events more "effectively" (i.e. no hard submit to server required), such as RichFaces and the upcoming JSF 2.0.

  • Oracle9iAS MVC Framework for J2EE Licening information

    Does oracle really want to sell its product. Why
    is so hard to find the licening information and a contact
    to drop a email or make a call ?

    for information about MVC as an accelerator service see http://www.oracle.com/consulting/offerings/platform/j2eeaccel_ds.html
    for downloads and related infos see http://otn.oracle.com/products/ias/ias_utilities.html#mvc
    btw, there is also a forum for the framework, see: http://forums.oracle.com/forums/forum.jsp?id=487810
    hth, trevi

  • Ideas for a "buddy list"

    hi i am trying to design and create a buddy list for my instant messenger. i have created a Jtree with online and offline has the child nodes.
    i then going to create a vector list stored in a txt file with users names, and i will load that list in a jtree..
    the problem im having is how can i load data from the vector list into the jtree? And most importantly how can the Jtree autmaticly updates itself when a user is offline/online?
    BTW i have a sMYSQL erver that knows when a user is offline/online..
    any suggetsions?

    > i read about mvc but i dont see it helping me in this situation.
    With more experience, you'll hopefully learn the relevance.
    > i read about tree listeners and thats more
    relivent than mvc patterns.
    I don't agree that it's "more" relevant at all. The view listens to the model in this case, which a JTree does (it listens to the TreeModel).
    > i added tree listeners to
    my program and insterted this code below...
    I don't see that there's a need to add any tree listeners in your case. Update the model, and the view will update itself automagically.
    Please refer to the following:
    How to Use Trees
    Dynamically Changing a Tree
    DynamicTreeDemo
    Good luck!

  • Bind variable value to a Swing component

    I'm totally lost in this one. I've been reading Swing tutorials and books and cant figure it out.
    I have an array of objects and their value is constantly changing as the program runs. What I want is their value reflected inside some Swing componentes. Let's say a bunch of JTextFields and on each one I want to display the value of the objects inside the array and when some of the objects value change, that change is reflected in the value displayed in the corresponding JTextField. Of course the JTextFields could be changed to lets say a JTable. Also the code responsable for changing the displayed value must be independent of the code that change the value of the objects (so the GUI part is independent of the main program)
    Can this be done somehow?? if so, could someone point me in the right direction, maybe with some tutorial/book/url ???
    Thanks a lot, and if something makes no sense, I'll try to explain better.

    Do you know about MVC (Mode View Controller) design? This is exactly what it is all about. There are many different types of implementations of MVC out there (of course in Swing also, before people start to yell at me) but all in all the spirit is pretty much the same.
    Now, for your particular problem, you have different solutions that really depends on what these objects are, what they should look like in the view and whether or not they should be editable in the view. Could you be a little bit more explicit on the matter.
    I can at least give you the idea in general terms. Let's call your objects Entry instances. They should be contained in some kind of a container class, called EntryContainer for example. The EntryContainer should act as a Facade (see the corresponding design pattern) for the rest of your application (that is, the code that change the values of the entries).
    Now, provided you have chosen a internal container (Set, List...). An Entry[] will do fine if you know that the number of entries will not change. In the opposite case, I would suggest a List instance. Then, you add the add/remove/update/whatever public methods to your EntryContainer class.
    What you have now is your model.
    Then, on to the Controller. In Java, it is easy to have a controller subclass its corresponding model. So you create EntryContainerCtrl for instance and EntryCtrl as well. Each controller should hold a reference on its presentation. The best way is to have your presentation hidden behind a generic interface (to guarantee independance from a given implementation as you pointed out in your post).
    The presentation itself should be given a link to its corresponding Controller in order to refresh.
    What you can do now is override the accessors of your model in the controller class. In each of these methods, you call super.method() of course and you add interaction with the presentation to take into account the changes.
    This is just to give you an idea of how it can be done in theory. With such a "design pattern" you can even come to a point where you can dynamically change the presentation.
    Right now, the best for you is to explain a little bit more about your specific problem and I'll be happy to help you design it in a <humble opinion>nice and efficient</humble opinion>

  • How to get more experienced ?

    The last 1.5 year I have been getting into programming more and more. I have been dabbling a bit in C++ ( just very basic things like processing a huge csv file lightning fast ) and started to learn python ( which I started to like very much already ) but mostly have been using php for building websites with a 'simple' custom cms. I reached a point where I'm pretty capable of doing the things I need for that kind of work and I'm learning more and more every day but still feel like I'm miles away from the 'serious' stuff.
    Does anyone here has some tips / thoughts on what to do next to progress and learn how to program properly instead of my probably quite ineffecient 'trial and error' way of doing things. ( tail -f is my friend )
    I already learned about OOP and I'm currently studying about MVC but haven't been really doing any real hands on stuff with it. I also have been coding everything without using any frameworks until now but maybe I should look into one when wanting to some more serious things ?
    Last edited by redcomet (2011-02-16 23:58:16)

    I have been programming as a hobby on and off since I was 16. I started with Visual Basic 3.0 making "addons" for AOL when it was "cool." Anyways, I am still no expert by any means. Not by a long shot, but I _KNOW_ I will be one day if I put my nose to the grindstone and hit the code head first. I am pretty good with C, Python, Bash, Vala, and Lua. I can sort of code in C++, but I don't really like it. I have made a constant effort to get into C++, but in writing a Gtk3 program, the C++ bindings weren't being updated fast enough so I grew frustrated. Maybe I will return to it again in the future. C++ is an important (and massive) language to get a grasp of. Here are my tips that I use to take control of my learning process:
    1. CODE. This is the most important thing. Whatever language you decide to use, you have to use it! At least everyday. I make sure I get in at least 2 hours a day of coding. Since I am not a professional coder, this is vital to my success (er, future success, i'm still learning). When I get "wired in" I usually block access to my favorite sites in "/etc/hosts" so I can stay focused. Once I get going, I'm usually very productive, especially in python
    2. Study! I read a lot about programming. There are a bunch of blog you can goto and read professional opinions about techniques. I like going to reddit.com/r/programming for cool stuff.
    3. Read lots of source code. This is what I do most of the time, especially when I am trying to figure something out. Here, grep is your friend. Often I find myself doing this for Gtk apps because the documentation is lacking. I visit git.gnome.org everday to see whats new and read lots of code, usually on my lunch break.
    4. Read K&R, and do the exercises. This book not only teaches C, it teaches good old fashioned programming techniques. Not tremendously useful when writing apps with glib, but still helpful.
    5. When I see crazy code that completely blows my mind, I don't let it faze me. This is so true for OOP in C (like gobject). It just make me go WTF some times. When this happens, I take a breath, and start at the most logical point and work my way from there. I take lots of notes. And grep, lots and lots of grep queries. When I still can't figure it out, I hit google. The absolutely last resort is irc.
    Hope this helps.

  • DB statements in button actions in view

    can i write the code of select, update etc statements in BUTTON Ui element in a View.
    is it mandatory to write the code using Classbuilder(SE24)(OO ABAP) in WD4A.
    just a simple question, i am new to WDABAP.
    clarify me.
    thanks n reagrds
    rk

    Hi Ramakrishna,
    WD is based on MVC architecture... It tells seperation of Presentation and Bussiness Logic. If you follow this you need to seperate business logic.
    That depends on project, and Client, You can write Select statements in methods also, but Recomendable is Follow MVC.
    Check this about MVC..
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ArchitectureofWebdynproforABAP
    MVC Web Dynpro  for ABAP
    Cheers,
    Kris.
    Edited by: kissnas on Apr 19, 2011 6:52 AM

  • How to master good design with EJB and JSP?

    I use JSP to calling EJB. But the .jsp file is complex and it's difficult to maintain...I just want to work higher efficent with EJB,JSP and JavaBean. I want to know is there a good design with EJB and JSP? and is there any good material about MVC for EJB,JSP and JavaBean?

    You should read the J2EE blueprint available on this website. Better download the PDF, and print it for yourself so you can read it anytime.

  • Calling a BSP page with flow logic from LAYOUT

    Hello all.  I am developing a BSP transaction to update HR data on SAP.  I initially developed this with one 'page with flow logic' and several 'page fragment's.  It has been suggested that I break this out into several pages with flow logic because the code in  the 'OnInputProcessing' Event Handler was getting quite complicated.  I was using the BSP directive to execute my 'page fragments'.  This was very simple to do.  What do I replace the BSP directive to call a page fragment with in order to call a page with flow logic.  I have included the code below.  I have converted the 'body.htm' 'page fragment' to a 'page with flow logic' and I am not sure of the correct way to call the page.  I do not have access to the navigation->goto_page( 'body.htm' ) at this point.  I am new to BSP and appreciate any help offered.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="phtmlb" prefix="phtmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <htmlb:content id     = "content"
                   design = "design2002+design2003" >
      <htmlb:document disableBackspaceNavigation="TRUE" >
        <htmlb:documentHead title="ESS: Employee Self Service" >
        </htmlb:documentHead>
        <htmlb:documentBody>
          <htmlb:form id="OOEform" >
            <%-- Positioning --%>
            <htmlb:gridLayout columnSize = "2"
                              rowSize    = "2"
                              width      = "100 %" >
              <%-- Row 1 - Header --%>
              <htmlb:gridLayoutCell columnIndex       = "1"
                                    rowIndex          = "1"
                                    colSpan           = "2"
                                    width             = "100 %"
                                    verticalAlignment = "MIDDLE" >
                <DIV style="border-bottom-style:solid;border-color:#A5B1BF;border-width:20px">
                <%@include file="header.htm" %>
                </DIV>
              </htmlb:gridLayoutCell>
              <%-- Row 2; Column 1 (Body Area) --%>
              <htmlb:gridLayoutCell columnIndex       = "1"
                                    rowIndex          = "2"
                                    width             = "80%"
                                    verticalAlignment = "MIDDLE" >
                <%@include file="body.htm" %>
              </htmlb:gridLayoutCell>
              <%-- Row 2; Column 2 (Right Area) --%>
              <htmlb:gridLayoutCell columnIndex         = "2"
                                    rowIndex            = "2"
                                    width               = "20%"
                                    verticalAlignment   = "TOP"
                                    horizontalAlignment = "LEFT" >
                <%@include file="right.htm" %>
              </htmlb:gridLayoutCell>
            </htmlb:gridLayout>
          </htmlb:form>
        </htmlb:documentBody>
      </htmlb:document>
    </htmlb:content>

    Hi,
    uhmmm, as it was previously suggested, you should perhaps think about MVC for your development. Working with classes and methods gives you more room for a better looking code. But at this point I´m not sure where your real problem is. You mentioned first that you created one page with logic and several page fragments and then you are worried because the code in the OnInputProcessing event is getting out of control
    First, you cannot insert a page in a page. You can only insert fragments in a page with <%@include file="header.htm" %>.
    Second, if you don´t have idea of MVC or you don´t want to switch to MVC, then create a modules program (SE38) where you´ll enter your code as subroutines and you call these subroutines from OnInputProcessing as follows:
    perform subrout1 in program XXXXXX tables YYYYY using AAAAA.
    In your programm XXXXX you declare the code as:
    form subrout1 in program XXXXXX tables YYYYY using AAAAA.
    This can be a substitute to classes and methods.

  • Which Java Technology?

    Hello. I know a small amount of Java that I learned a long time ago (very basic stuff).So much has changed and I don't know where to start. I want to use Java and XML together. I have an old Java book that talks about JAXP, but I can't find that on the Java download pages. In fact, when I go to http://java.sun.com/xml (where JAXP used to live), it redirects me to Java Web Services.
    I wouldn't mind exploring the web services developer pack, assuming that it has JAXP built into it. But, what I'm concerned about is that it's all based on Java EE. I have the standard edition along with NetBeans. I don't want to get into EE and setting up servers on my home computer, etc. I just want to learn how to use Java and XML to create web applications.
    Any suggestions on where to start and what technologies/tools I absolutely need. Also, any suggestions for a good tutorial/book.
    Thanks for your help.
    Ron

    Hi njb7ty,
    Thanks for the advice. I'll make a couple of comments below and add another question or two.
    "A book on Java (example: Head First in Java)"
    I've got 3, but they're all old. Iv'e got Java How to Program 5th Edition (from 2003). Also, I've got the Java Eclipse book version 3. And, I've got Professional Java XML (Wrox--circa 2001). I also have Thinking in Java Version 3 (circa 2001). Any thoughts on these?
    "Install java JDK on your computer (its free"--)
    That's done. I've been playing with Java since 1.0 back in 1996. I've just never went very far with it and I don't know much about OOP.
    "Install Eclipse IDE on your computer (its free)"
    That's done. I've had it for awhile, but haven't had much time to really learn how to use it. I've got NetBeans also--but also haven't had time to do much with it either.
    "A book on JSP"
    That's on my todo list. I'll get that next.
    " Install Tomcat on your computer (its free)"
    Well, I could do that, but I don't like the idea of server software running on my computer. For one, I don't know how these servers are configured out of the box and have no clue how to make sure they are secure. And, if I mess something up, I'm basically screwed because I wouldn't know how to fix it. Any suggestions?
    " Install tomcat plugin for Eclipse into Eclipse (you guessed it, its free)"
    That's easy enough. If I install Tomcat, I'll do this directly afterward.
    " Create a hello world JSP page in eclipse and get it to run in tomcat
    (Eclipse auto launches Tomcat).
    On the todo list after I get Tomcat setup, the plug-in installed, and a good book on JSP.
    " A book on servlets
    Servlets sound hard. Any recommendation on a good book?
    "A book on JDBC
    That's something I need to do soon. I definitely need to learn how to setup databases in Java. Do you recommend MySQL for web-based applications?
    "Install Oracle Lite (free) and use its utility to create a person table. Grant access rights
    for you application to access the database via JDBC."
    That's cool. First time I've heard about that. I'll give it a try.
    "Create a program to query the database via Tomcat using connection pooling and JNDI"
    I assume I'll know what that means after I start reading the JDBC book :-)
    "Read up on java MVC. It discusses how to separate the layers of your program
    (architecture issue)."
    I've heard about MVC before, but never used it. It stands for Model-View-Controller, right? I'll have to look into this some more.
    "Read a book on javascript"
    I've got Javascript Bible 5th Edition. Is that a good one?
    "Read up on JSTL"
    That's another new one for me. Never heard of it. I'll have to check that out too.
    "Read http://www.javapractices.com/home/HomeAction.do
    Read http://mindprod.com/jgloss/unmain.html"
    I'll definitely study these.
    "There, that should keep you busy for a while."
    You're not kidding. This is going to take a lot of time to learn. I didn't realize I had so much to do. And, I'm guessing that the stuff you mention will just get me up to speed on the basics. There's probably a ton of other things to dig into after that. It's a little depressing, considering I'd like to be up and running in a short period of time, but it's going to take time to learn.
    "Keep away from XML and AJAX for now."
    That's not good. Those are two things that I'm interested in. Isn't there a way to learn them side by side with Java? I've got a good understanding of basic programming (particularly procedural)...so I'm hoping I can pick up on things a little quicker than most people would if they were starting out fresh. I also understand the basic syntax of Java. So, I've got a good head start. But, maybe I'm being a little too ambitious...
    One thing that bothers me is my web host company doesn't support Java (which is the dumbest thing I've ever heard). They've got me on a Linux system right now and I know Java works on Linux. So, not sure what the problem is there. To get any kind of Java capability, I think I have to upgrade to a dedicated Windows server, which is a bit more expensive than what I've got now. And, I think that only gives me support to JSP. Not sure what else. Any recommendations/suggestions on this?
    Thanks again for all of your suggestions. I'll be using your todo list as a guide and get started learning these things.
    Ron

  • How to design a query framwork

    Hiiiiiiii,
    Right now I am designing a query fram work in java & I need some suggestion to complete the work.
    Main objective :
    System will pas a query to the database with java and in user interfacewill show all the records of the table.
    The query is unknown, suppose the given query has 30 column and 600 row.
    In this case I have to show them in a maintained way(*column and it's corresponding row*) like we can see in TOD.
    You can say I have to build a software for query which work like the TOD (Oracle ID).
    N.B : I have already completed the portion of fetching records from the database.
    Can you help me regarding this?
    Thanks in advance.

    Souvik_Software wrote:
    That was with hibernate. I want o devolop with core java and need to display on swing table .I would still use Hibernate. You are like someone who wants to start a business where you deliver products to locations throughout a city. Instead of buying a van, you are insisting that you want to design your own vehicle, come up with your own engine or motor, develop your own energy source, manufacture and assemble it yourself. Does that make sense?
    As for connecting databases with GUIs, read about MVC. This Martin Fowler article is a good start: [http://martinfowler.com/eaaDev/uiArchs.html]

Maybe you are looking for

  • Runtime Error in Restorewiz.exe

    Hi - Can anyone offer a solution for the following error: Runtime Error! Program:c:\\Windows\SMINST\RESTOREWIZ.EXE The application has requested the Runtime to terminate in an unusual way. System crashed and I really need to recover my files but I ca

  • Change frame rate from 23.976 to 24

    Hi all, I have a Quicktime render of a project I made a few months ago that was originally created at 23.976 FPS. I now need to prepare this Quicktime render for digital projection in a movie theater -- the file I need to give my client has to be 24

  • Captivate 7 - IE10 a few slides work then I get the loading icon.

    Its  a large 20Mb published swf. Works fine in other browsers but in IE10, Win8, Flash 11 a few slides in (any slide in random order) the spinning icon appears and the course becomes non-reposnive. The original content was written in an earlier versi

  • Invalid Color Management in Lightroom? (RAW)

    I've noticed the strange thing, how Adobe Camera RAW 4.1.1 displays the same image differently in Photoshop CS3 & Lightroom 1.4.1 Here are the screenshots from both programs: What I've got in Lightroom/develop mode: http://www.imagebam.com/image/956c

  • Why does itunes crash every time my ipod is syncing?

    Help me please. I have tried many different things to prevent this from happening.  This includes holding down shift and ctrl while opening itunes, right clicking on itunes and clicking run as administrator, diagnostics tests, and more.  I try to syn