Struts + AJAX Grid

Hi,
Do u have any idea about Datagrid in Ajax with Struts Framework.?

Hi,
For creating Java web applications with rich Datagrid, you can use any Javascript+XML component (it does not have to belong to Struts framework) . You can use one like http://www.treegrid.com

Similar Messages

  • How use Ajax grid component

    sir master
    sir what is the Ajax grid component and how i use this
    please give me sample
    thank's
    aamir

    The following links may help you:
    http://blogs.nitobi.com/andre/index.php/2006/09/02/ajax-grid-for-java-studio-creator-and-jsf/
    http://java.sun.com/developer/community/askxprt/2006/jl0828.html

  • Tomcat 5.5, struts, AJAX - Works on localhost but not on online web-server

    Hello,
    I'm trying to add some functionality from Ajax to my client's web application. And I'm stuck on this problem for the past 4 days now.
    To make a long story short, the application works perfectly on my localhost, but once I deploy it to the online server it pops a Page Not Found message (written in the JavaScript of Ajax engine). Though I have worked with servlets and struts a bit, I still consider myself very new.
    Here are some specifications:
    - The jar files are in tomcat-5.5/common/lib
    - The servlets (compiled correctly) are in webapps/ROOT/WEB-INF/classes/javaClasses
    - My web.xml and struts-config.xml are in WEB-INF, both of which I believe are configured correctly:
    web.xml
    =======
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
         <servlet>
              <servlet-name>action</servlet-name>
              <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              <init-param>
              <param-name>config</param-name>
              <param-value>/WEB-INF/struts-config.xml</param-value>
              </init-param>
         </servlet>
         <servlet-mapping>
              <servlet-name>action</servlet-name>
              <url-pattern>*.do</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>/index.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    struts-config.xml
    ==============
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
    <struts-config>
    <action-mappings>
    <action path="/signup" type="org.apache.struts.actions.ForwardAction" parameter="/signup.jsp" />
    <action path="/countries" type="javaClasses.GetCountries" />
    </action-mappings>
    </struts-config>
    I noticed when I type "countries.do" on my localhost, the action is processed perfectly, however on the online server, it displays me the 404 error page.
    I thought it wasn't seeing the struts-config.xml so I played around with the directory path struts-config.xml and replaced it with:
    <param-value>/home/shaghig/webapps/ROOT/WEB-INF/struts-config.xml</param-value>
    but still no luck.
    What is it that I am not doing right? Any input or guidance would be very much appreciated.

    Have you resolved your problem? I am running into the SAME EXACT issues with my application. The only difference is I'm not deploying to webapps/ROOT/; I'm deploying to my own directory based on my WAR file name (webapps/<web_application_name>/WEB-INF....blah blah). If you figured out your problem (believe me, I wish I could be of some help) I would LOVE to hear what you did/figured out.
    -C

  • Ajax and DisplayTag implementations

    Hi,
    I am using Struts & Ajax in my Web layer. The problem is in my jsp pages, based on some selections I need to fill Display Tag, I did this by using Action by assigning list to Display tag as it is API's default procedure, but now the problem is after leaving from the text component I need to fill the DISPLAY TABLE with Ajax Async call XML values,
    1. How to fill Display Table (DisplayTag) with Ajax Async call
    We are not to introduce new jar AjaxDisplay Tag..
    Thanks in Advance

    Define "entire page". Ajax actions don't happen for specific components, they are triggered by specific components. Generally that results in a form submit that is handled through an Ajax call and specifically marked parts of the page tree are re-rendered as a result of the action, in stead of the whole view.
    But that is only the general case, it is completely open what happens after something is triggered through Ajax, especially when you incorporate your own event listeners and you include a third party API like Richfaces.

  • Flex Advanced DataGrid with dynamic grouping

    Can we implement something similiar as in below link, using flex 3.
    http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/grouploadmodeclient/defaultcs.a spx
    I am not sure if flex 3 allows grouping of columns based on drag - drop component. Plus how to show the pictorial view of grouped columns, same as in the above example.
    Any help greatly appreciated.

    This blog post seems to answer your question:
    http://blog.flexgeek.in/2007/06/tips-tricks-adding-a-combobox-to-a-datagrid-header-as-head errenderer/
    http://omalraj.com/2009/06/flex-datagrid-header-with-a-combobox-filter/
    http://franto.com/custom-header-in-datagrid-part-2/
    http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

  • Getting exception

    I am getting the following exceptions :-
    Compilation of 'D:\bea\user_projects\domains\OSDomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_OSEAR_ear_OS\jsp_servlet\_order\_acs\__oe_45_acs_45_existingcustinfo.java' failed:
    D:\bea\user_projects\domains\OSDomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_OSEAR_ear_OS\jsp_servlet\_order\_acs\__oe_45_acs_45_existingcustinfo.java:291: cannot resolve symbol
    probably occurred due to an error in /order/acs/oe-acs-existingcustinfo.jsp line 89:
    request.getParameter(fileName);
    MY JSP PAGE :-
    <%@ page import="java.io.*,com.mci.os.web.struts.bean.order.FileBean,
    java.util.ArrayList" %>
    <html:html>
    <html:form action="/orderACSExistsCust">
    <%
    //create a list and put all values file filename, size and last modified into that list
    ArrayList list = new ArrayList();
    int rc = 0;
    request.getParameter(fileName);
    request.getParameter(sizeInBytes);
    request.getParameter(lastModified);
    rowcount++;
    for(rc=0;rc<20;rc++){
         HashMap map= new HashMap();
         map.put(fileName, String);
         map.put(sizeInBytes, String);
         map.put(lastModified, String);
              list.add(map);
    request.setAttribute(list);
    %>
    <div class="HRGold"></div>
    <center>
    <form method="post" action="../com/mci/os/web/struts/taglib/Grid.java" >
    <dotj:grid name="grid" id="grid">
    <input type="text" name="fileName" value="fileName1" size="25">
    <input type="text" name="sizeInBytes" value="sizeInBytes1" size="25">
    <input type="text" name="lastModified" value="lastModified" size="25">
    <input type="submit" name="submit">
    </dotj:grid>
    <br>
    </form>
    </center>
    </html:form>
    </html:html>
    I am trying to form a list in JSP page and then get it in action class
    Action Class is as follows :-
    package com.mci.os.web.struts.taglib;
    import java.io.IOException;
    import java.lang.reflect.Method;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.LinkedList;
    import java.util.List;
    import java.io.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpSession;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.JspTagException;
    import javax.servlet.jsp.tagext.BodyContent;
    import javax.servlet.jsp.tagext.BodyTagSupport;
    import org.apache.struts.taglib.html.FormTag;
    import com.mci.os.web.struts.bean.order.FileBean;
    import com.mci.os.web.struts.utils.Constants;
    import com.mci.os.web.struts.bean.order.FileBean;
    import javax.servlet.jsp.tagext.TagExtraInfo;
    public class Grid extends BodyTagSupport {
         private static final long serialVersionUID = 1L;
              public int doStartTag() throws JspException {
                   StringBuffer sbMenu = new StringBuffer();
                   HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
                   HttpSession session = pageContext.getSession();
                   List list = (List) request.getAttribute("list");
                   Iterator i = list.iterator();
                   if(list.size() < 10){
                   while(i.hasNext()){
                        //print the jsp rows and columns
                        sbMenu.append("<table><tr><td>");
                        sbMenu.append("list is :");
                        sbMenu.append(list);
                        sbMenu.append("</table></tr></td>");
                        try{
                             pageContext.getOut().print(sbMenu.toString());
                        }catch(IOException ioe){
                             System.out.println("IO Exception occured while trying to print sbMenu for Grid");                         
                   if(list.size()>10){     
                        sbMenu.append("<table><tr><td>");
                        sbMenu.append("next");
                        sbMenu.append("back");
                        sbMenu.append("</table></tr></td>");
                   return EVAL_BODY_TAG;
    using bea weblogic.....

    Now, I changed code to
    <html:html>
    <html:form action="/orderACSExistsCust">
    <%
    //create a list and put all values file filename, size and last modified into that list
    ArrayList list = new ArrayList();
    int rc = 0;
    String fileName = request.getParameter(fileName);
    String sizeInBytes = request.getParameter(sizeInBytes);
    String lastModified = request.getParameter(lastModified);
    rc++;
    for(rc=0;rc<20;rc++){
         HashMap map= new HashMap();
         map.put("fileName", fileName);
         map.put("sizeInBytes", sizeInBytes);
         map.put("lastModified", lastModified);
              list.add(map);
    request.setAttribute(list);
    %>
    <div class="HRGold"></div>
    <center>
    <form method="post" action="../com/mci/os/web/struts/taglib/Grid.java" >
    <dotj:grid name="grid" id="grid">
    <td>${fileName}</td>
    <input type="text" name="fileName" value="fileName1" size="25">
    <input type="text" name="sizeInBytes" value="sizeInBytes1" size="25">
    <input type="text" name="lastModified" value="lastModified" size="25">
    <input type="submit" name="submit">
    </dotj:grid>
    <br>
    </form>
    </center>
    </html:form>
    </html:html>
    and I am getting
    Compilation of 'D:\bea\user_projects\domains\OSDomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_OSEAR_ear_OS\jsp_servlet\_order\_acs\__oe_45_acs_45_existingcustinfo.java' failed:
    D:\bea\user_projects\domains\OSDomain\.\myserver\.wlnotdelete\extract\myserver__appsdir_OSEAR_ear_OS\jsp_servlet\_order\_acs\__oe_45_acs_45_existingcustinfo.java:304: setAttribute(java.lang.String,java.lang.Object) in javax.servlet.ServletRequest cannot be applied to (java.util.ArrayList)
    probably occurred due to an error in /order/acs/oe-acs-existingcustinfo.jsp line 102:
    request.setAttribute(list);
    I was trying to form a list in JSP itself and then pass the list to the action class where it would insert <table><tr> etc into JSP and make tables appear having user entries

  • Java Applets connecting to Oracle DB thru OAS (JNDI)

    i am developing an application, like i said before, i am using three applets, one controls a webcam, (records an image to disk and oracle), another controls a Electronic signature pad (records an image to disk and oracle), and finally a finger print reader (the same with this), at the beginning i didnt have any problem at all connecting this applet to the database, but top management wants to do things in another way, not allowing me to connect the applet directly to the database for security reason, My app resides on Oracle Application Server, and i use DataSource and Connection Pooling,
    I want that this applets use the available datasource on OAS to connect to the Database, due that the DataBase IP Address wont be public but OAS IP address will, I know that i must use JNDI to accomplish this, but i didnt have any results at all
    Message was edited by:
    efebo_abel2002

    i retrieved all the datasources from my app and i got this, i show my code and the returned errors, I can't connect my applet to the DB thru OAS datasources, any suggestions?
    package rdf.struts.ajax;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NameClassPair;
    import javax.naming.NamingEnumeration;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    public class ConductoresClient2 {
    public static void main(String [] args) {
    try {
    final Context ctx = getInitialContext();
    System.out.println(ctx!=null?"ctx no es null":"ctx es null");
    NamingEnumeration nenum=ctx.list("jdbc");
    while (nenum.hasMore()) {               
    NameClassPair entry = (NameClassPair)nenum.next();
    System.out.println("entry:="+entry.getName());
    try {
    DataSource ds=(DataSource)ctx.lookup("jdbc/"+entry.getName());
    Connection conn=ds.getConnection();
    Statement stm=conn.createStatement();
    ResultSet rs=stm.executeQuery("SELECT * FROM palic_ow.conductores");
    while(rs.next())
    System.out.println("rs.getString(1):="+rs.getString(1));
    System.out.println("rs.getString(2):="+rs.getString(2));
    System.out.println("rs.getString(3):="+rs.getString(3));
    catch (Exception e) {
    System.out.println("Exception conectando a la base :"+e);
    //java:comp/env/
    }catch (Exception e) {
    System.out.println("Exception obteniendo Context "+e);
    private static Context getInitialContext() throws NamingException {
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"oracle.j2ee.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL,"oc4jadmin");
    env.put(Context.SECURITY_CREDENTIALS,"admin");
    env.put(Context.PROVIDER_URL,"ormi://localhost:23791/sertracen");
    return new InitialContext( env );
    ctx no es null
    entry:=OracleDS
    Exception conectando a la base :javax.naming.NamingException: Lookup error: javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]; nested exception is:
         javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable] [Root exception is javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]]
    entry:=v8PooledDS
    Exception conectando a la base :javax.naming.NamingException: Disconnected: java.lang.NoClassDefFoundError: javax/resource/Referenceable
    entry:=caom
    Exception conectando a la base :javax.naming.NamingException: Lookup error: javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]; nested exception is:
         javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable] [Root exception is javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]]
    entry:=v8DS
    Exception conectando a la base :javax.naming.NamingException: Lookup error: javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]; nested exception is:
         javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable] [Root exception is javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]]
    entry:=v8CoreDS
    Exception conectando a la base :javax.naming.NamingException: Lookup error: javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]; nested exception is:
         javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable] [Root exception is javax.naming.NamingException: javax/resource/Referenceable [Root exception is java.lang.NoClassDefFoundError: javax/resource/Referenceable]]
    Process exited with exit code 0.
    null

  • Want to develope a e-mailing system in java... Wat technology shall i use?

    Dear all,
    I want to develope an web based e-mailing system Like yahoomail, gmail etc... I know upto struts frame work.... Probably which technology should i learn which should be helpful for my developement... PHP, Ajax, spring, hibernate or any else?
    Please give your valuble suggessions.....
    Eeshwaran,
    iGFYS, Bangalore.

    Hi Eeshwaran,
    Since you know Struts, you can develop your application using Struts. Also, you can use AJAX in your application which is again easy if you already know javascript.
    The following is brief for what can used for what:
    Struts, AJAX, HTML, JavaScript ======> Web Applicaton
    JavaMail API ======> Mailing Module
    Some Standard and recommended SMTP Host ====> mail server
    (SendMail - Not Sure)
    For the last one (SendMail) I do not know if are getting all that stuff as a part of development environment. If that is so then you need not worry about the same.However, with the above technologies you can atleast start of with something which is wired up as a prototype and later you can go on refining it until you get the final one.

  • 1. Resizing of column width. 2. Drag and drop of columns for resequencing

    QUERY : Has anyone some experience in implementation/development of following functionality in a JSP/Tomcat server based application:
    1. Resizing of column width for a result which has multiple columns. .2. Drag and drop of these columns or any other mechanism for re-sequencing the columns?
    I would like to know will JSF would be helpful in it.

    Amit,
    The column resizing and 'drag and drop ' are client side issues. They requires DHTML and Javascript.
    AJAX is what is required. (wiki AJAX for more info)
    I am working on an AJAX grid and combobox component for JSF that will do this and many more functions.
    Let me know if you want more information.
    [email protected]

  • Flash CFGRID Rows

    Is there a way to limit the number of rows on a Flash CFGRID?
    The maxrows attribute just limits the number of data rows to
    display, not the number of rows on the grid. The grid's always show
    7 rows, whether there is data or not, but I want to shorten
    that.

    I can't help with the flash grid, but the html grid problem
    can be solved with a custom column renderer
    http://blog.cutterscrossing.com/index.cfm/2007/11/30/CF8-Ajax-Grid-Renderers-and-Events
    Check out the above link and instead of an image replace with
    a check box.
    Ken

  • Flash CFgrid Limitations?

    Hey Guys-
    I have a situation that I'm a little confused with. I have a
    Flash-based CFGrid, populated with a query. This query, I added a
    null/empty column to and use that to display a checkbox for each
    row. This works fine. I use the checkboxes to select what rows will
    be sent to the next page for some processing.
    The problem I am having is, when you submit, only 8 rows are
    sent on to the next page. Even if you select more than 8
    checkboxes. Now, if I change the grid format to HTML, it sends on
    more than 8 no problem.
    The issue with an HTML grid is the column that holds the
    checkboxes doesn't display a checkbox unless you double click on
    the cell, so it's not apparent what is in that field.
    Anyone know what the limitations are on the flash cfgrid for
    sending this sort of data on? How can I figure this out???
    Thanks!

    I can't help with the flash grid, but the html grid problem
    can be solved with a custom column renderer
    http://blog.cutterscrossing.com/index.cfm/2007/11/30/CF8-Ajax-Grid-Renderers-and-Events
    Check out the above link and instead of an image replace with
    a check box.
    Ken

  • ERROR: Spry.Data.XMLDataSet.setDataFromDoc() failed to create dataSet

    Hi (sorry for my english in advance!!!)
    I´m trying to get some XML from a servlet but I get this
    error message:
    "Spry.Data.XMLDataSet.setDataFromDoc() failed to create
    dataSet ''for 'transacciones/tx' -
    http://170.14.46.119:8080/struts-ajax/xml.do"
    Here´s my code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <title>Prueba Spry</title>
    <script type="text/javascript"
    src="include/xpath.js"></script>
    <script type="text/javascript"
    src="include/SpryData.js"></script>
    <!-- Crear el dataset -->
    <script type="text/javascript">
    var dsTx = new Spry.Data.XMLDataSet("
    http://170.14.46.119:8080/struts-ajax/xml.do",
    "/transacciones/tx");
    dsTx.setColumnType("ingreso", "number");
    dsTx.setColumnType("egreso", "number");
    </script>
    </head>
    <body>
    <div id="Transacciones" spry:region="dsTx">
    <table id="tabla_tx" class="main">
    <tr>
    <th>Fecha</th>
    <th>Referencia</th>
    <th onclick="dsTx.sort('parade');">Para/De</th>
    <th
    onclick="dsTx.sort('categoria');">Categor&iacute;a</th>
    <th onclick="dsTx.sort('ingreso');">Ingreso</th>
    <th onclick="dsTx.sort('egreso');">Egreso</th>
    </tr>
    <tr spry:repeat="dsTx">
    <td>{fecha}</td>
    <td>{referencia}</td>
    <td>{parade}</td>
    <td>{categoria}</td>
    <td>{ingreso}</td>
    <td>{egreso}</td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    And here´s the XML generated by the servlet:
    <?xml version="1.0" encoding="UTF-8"?>
    <transacciones>
    <tx id="1">
    <fecha>10/06/06</fecha>
    <referencia>A1-0023871</referencia>
    <parade>CTI S.A.</parade>
    <categoria>Telefonía celular</categoria>
    <ingreso></ingreso>
    <egreso>$350,50</egreso>
    </tx>
    <tx id="2">
    <fecha>10/06/06</fecha>
    <referencia>A1-0653782</referencia>
    <parade>Garbarino S.A.</parade>
    <categoria>Equipamiento</categoria>
    <ingreso></ingreso>
    <egreso>$1049,00</egreso>
    </tx>
    <tx id="3">
    <fecha>11/06/06</fecha>
    <referencia>CI0002</referencia>
    <parade>Gomez y Gomez S.A.</parade>
    <categoria>Ingresos por ventas</categoria>
    <ingreso>$1955,00</ingreso>
    <egreso></egreso>
    </tx>
    </transacciones>
    Thanks for your help!!!!!
    Pablo

    Hi Pablo,
    I can't load your url:
    http://170.14.46.119:8080/struts-ajax/xml.do
    But perhaps it was only meant behind your firewall. In any
    case, there are a couple of things to look for:
    1. Is your XML valid? You can find out if the browser is
    throwing an error because there was something in your XML that it
    didn't like. The firefox browser will print an error message in the
    JavaScript console if this is the case.
    2. Is your server returning the XML as content-type
    application/xml or text/xml? If not, then some browsers won't parse
    the XML.
    --== Kin ==--

  • Suggest  work flow Engine !!

    I need to develop a web portal that uses Jsp - struts - Ajax .. I need a work flow engine written in java so that i can prepare work flow through that and use it in my web site . Suggest solution

    Yes, Ant is written in Java. It's not designed as a workflow engine, it's a build tool. But I've heard of a fair few people using it as a workflow engine. You'd have to write custom tasks for it, obviously. I don't know the details, but I bet Google does

  • How should I go about doing this exercise (networking/database related)

    Hey everyone
    As a learning exercise for myself, I've decided to write a basic web based chat room application. I'm going to:
    -allow users to create an account (store this info in a database)
    -force users to log in before entering a lobby (there will be multiple lobbies)
    -have users join a lobby, and then select one chatroom to join in that lobby
    -allow multiple users in each lobby and chatroom
    It is also going to be web based, so I want a user to be able to open a web page and then use the application without having to download/install it.
    My question is: How should I begin this project? As I can see it, I have a bunch of options, including using an applet or using java web start. What are my other options (if any)? What are the advantages/disadvantages of these options, and which would you use if you were creating a chatroom for a website that had hired you?
    Thanks for your help

    nightmares wrote:
    As a learning exercise for myself, I've decided to write a basic web based chat room application. I'm going to:
    -allow users to create an account (store this info in a database)
    -force users to log in before entering a lobby (there will be multiple lobbies)
    -have users join a lobby, and then select one chatroom to join in that lobby
    -allow multiple users in each lobby and chatroom
    It is also going to be web based, so I want a user to be able to open a web page and then use the application without having to download/install it.First of all, you haven't picked a trivial project ... but I bet you'll be a lot better by the time you've finished it.
    You've made a decent start by identifying some of the major functions that your chat room will support. You'll probably need to expand on it, and also determine the exact information requirements for those modules (For example: what will an account look like? What data will it hold? How will it interact with the other modules/classes in the chat room? What does your Lobby need to do?).
    I'm not an expert in web-based programming, but there are a few "unversals" to good design that might help (and provide you with some things to Google). It's probably going to sound like CD-101, but here goes:
    1. Pick a good development platform - You could do this with Notepad; but I don't advise it. You're going to have to manage a lot of complexity, and IDEs are the way to go. I don't want to start a war here, but both NetBeans and Eclipse have the tools for this sort of project - and they're free.
    2. Think what+, not how+ - ...at least to begin with :-). This is probably the hardest thing for newbies to learn, because they're just dying to get started on the code. Decide what you want to do before you dive into the how. You may find you change your mind about the how before you come to code. You may also find that somebody's already written a piece of code or library to do just what you want. As a very simple example: sendMessage() is a 'what' method; openSocket() is the 'how'.
    3. Loose coupling - as far as possible, keep your methods and classes self-contained and well-focused. This general principle also applies to system components - try to make sure that each one is well-defined and "talks" to other components in a well specified manner. There are several design patterns for the type of thing you want to do, but you might want to start with MVC (Model/View/Control). It'll also help you when you want to test (see below).
    4. Good naming - '*i*' may be a perfectly good name in a 'for' loop, but it's pretty useless outside it. Make your variable and method names mean something. There are also several conventions that other Java programmers expect, so you might want to [start here.|http://java.sun.com/docs/codeconv/]
    4. Think big, but start small - For example, a good 'test of concept' might be to get your chat room running on your local machine using a local database first. Providing you're using all the middleware you'll be using for your 'finished' version (eg, Tomcat), porting to the Internet shouldn't be too onorous (but it's unlikely to be completely glitch-free).
    5. Test, test, test - Test everything you do. It sounds boring, but good testing can actually highlight design problems. Find out a bit about it (eg, smoke tests, boundary checks) and try and find a tool that fits your needs. [This page|http://java-source.net/open-source/web-testing-tools] has a few suggestions.
    6. Document - Another snorer, but vital. javadoc is your friend, but you'll probably want other forms of documentation as well. UML wouldn't be a bad place to start.
    7. And finally, read - there's a lot to know about this stuff, and it's changing all the time. Here's a few pointers to get you going:
    - Database comms/Persistence/Model - JPA, Hibernate, JDBC.
    - Databases - MySQL, Derby, Oracle, DB2, SQLServer; also some [others here.|http://java-source.net/open-source/database-engines]
    - View - JSP, Struts, Ajax, Swing (non-web)
    - Control - Servlets, EJB, Tomcat, Jetty
    - Testing - JUnit
    - Communication/Messaging - JMS, SOAP
    - Other: ant, jar, war, ear, xml
    If you have any mates in the biz, you might want to talk to them too. An ounce of experience is worth a pound of heartache.
    HIH
    Winston
    Edited by: YoungWinston on Jul 30, 2009 3:33 AM

  • Language Bar Change Option Not Working

      
    Hi,
    I have created demo for radgrid filter. if I search in first textbox filter column and press enter then focus of control goes to second textbox filter column. I change the language English to Japanese and selecting input mode hiragana
    for typing text in filter it works in Firefox but not working in Internet Explorer. I have attached gif file for this problem.
    Please provide solution for it.

    Hi,
    C# forum is only for questions regarding C# language. The best way is to contact the support team of Telerik for help:
    http://www.telerik.com/products/aspnet-ajax/grid.aspx
    Or you may get more help from
    ASP.NET forums.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Converting cmyk PDF to greyscale. Lines are being altered!!

    I have a big catalog, done in InDesign as a CMYK doc...exported to a Press Quality PDF.  Printing it in black only, so I need to convert the doc to greyscale.  I've googled for days, tried everything.  It converts the doc to greyscale, but it's screw

  • Creative centrale can't play music files stored on Zen X-Fi.

    <\I installed Creative Centrale, connected the player and it gets recognized alright, but for some reason I can't play the music files stored on it, is it normal? Centrale plays the files on PC just fine, but if I try to play the files on the player

  • Strange Syntax Error in module pool table control........

    Hi Techies , In module pool am not able to validate the checkbook field that i have included in the table control screen . i was able to pass the other field defined in the same structure where checkbox field is declared .

  • Can I use yahoo toolbar with firefox 4.ob9?

    i can't add yahoo toolbar with firefox 4.ob9

  • Grid Control Lincesing - Confused

    Hi! Please help me understand Grid Control interoperability and licensing scheme! 1. Is it possible to manage Standard Edition instances (I mean management packs functionality) by Grid Control? (We have one Enterprise Edition instance). 2. If so, wha