Jump to content
xisto Community

Ola Daniel

Members
  • Content Count

    15
  • Joined

  • Last visited

About Ola Daniel

  • Rank
    Newbie [Level 1]
  • Birthday 06/09/1982

Contact Methods

  • Website URL
    http://

Profile Information

  • Interests
    J2EE, Java, AJAX, Oracle, MSSQL, MySQL
  1. Great sites/ I use free templates all the time. Saves me the trouble of designing from scratch.
  2. Like luizzerros says the JSP support offered on the main page was what attracted me here. I hope the Tomcat support still exists. Ill patiently wait for yu to find out from Opaque. Thanks.
  3. Does anyone know how to upload files from client to server machine using AJAX.I would appreciate some sample codes. Im trying to use AJAX to upload an attachment from a client to my server.
  4. Can anyone kindly direct me on how to setup a J2EE website on Xisto. Im familiar with Tomcat and JBoss setups. But I'm not sure on how to setup my directory on Xisto to successfully run a Jsp website. help please.
  5. Im not really sure i get what yu want to do... but this might help. I use AJAX to submit my form using the Post method. Heres my code: function AJAXInteraction(url, callback) { var req = init(); req.onreadystatechange = processRequest; function init() { if (window.XMLHttpRequest) { return new XMLHttpRequest(); } else if (window.ActiveXObject) { return new ActiveXObject("Microsoft.XMLHTTP"); } } function processRequest () { // readyState of 4 signifies request is complete if (req.readyState == 4) { // status of 200 signifies sucessful HTTP call if (req.status == 200) { if (callback) callback(req.responseXML); } } } this.doGet = function() { req.open("GET", url, true); req.send(null); } this.doPost = function(str) { req.open("POST",url,true); req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); req.send(str); }} And I use it like this: var url = "/MyServlet";var querystr = "opt=NBCA&optionx=APPROVE&date_created=${param.date_created}";var ajax = new AJAXInteraction(url, approveResponse); ajax.doPost(querystr); You should be able to adapt this to suit your needs
  6. In addition to what the other guys have said MySQL is a very easy database to use unless of course you have no database back groud at all.To create a database:create database myDb;To create tablesCREATE TABLE `account01` ( `ACCOUNT_NO` bigint(20) NOT NULL auto_increment, `account_id` varchar(255) default NULL, `accountname` varchar(255) default NULL, `emailAddress` varchar(255) default NULL, `DATE_CREATED` datetime default NULL, PRIMARY KEY (`ACCOUNT_NO`))Besides the ease of using MySQL i think its a very light fast database compared with other databases on the market. PLUS ITS FREE!
  7. I say better to learn C first. Its not like its a requirement for Java. But its a valuable skill to possess. In my case I learnt C language first then shifted to C++ and right now Im using Java for everything like crazy. But Im glad i have a background in C and C++. Oh and by the way the basics of C, C++ and Java are only slightly similar by the time you get to the object oriented part they are worlds apart. Same logic but worlds apart.
  8. Java and Flash communication. Nope!Cant happen!!Unless you are thinking of a Dynamic Web page where you manipulate the behaivior of your flash based on user interaction. Same way as you would manipulate HTML, javascript on a JSP page.Otherwise programmatically theres no way fro Flashto directly communicate with java.
  9. I think Eclipse IDE is the wayto go. It has alot of built in features that woud make your coding alot easier.
  10. My thoughts exactly isnt Xisto supposed to be a free JSP web hosting site? Anyway if you come across some other free webhosting site. Please post here for other guys to see
  11. It sounds to me like you need to do some homework on how you want to get this done. There are many many ways to get this done. I would resommend using Java, its the easiest of them all.Using Java you have several options.1. Use JDBC - very very simple especially if you are used to SQL queries and so on.2. Use Persistence Objects - Advanced stuff. For Example EJBs, Hibernate e.t.c
  12. Technically there is no way to get the web session from a normal java class (POJO).However if you wire your POJO into a web application using the J2EE MVCpattern or FrontController pattern.i.e JSP submits to servlet, servlet passes the HttpServletRequest Object to POJO or bean. You can access your web session, your servlet context throught the request obejct.I suggest you do some research on MVC and FrontController design patterns.
  13. Sendo of course doing this "<input type=âfileâ name= âuploadfileâ value=âc:\temp\myphoto.jpgâ>" will not work. You are attempting to breach the security of your client machine. Imagine the havoc a web developers could wreak on a client machine if he could pick files from the client's machine at will without active participation from the client. You cannot, i repeat cannot upload a file from a client machine without PERMISSION being given to you by the client. I would suggest using an applet to copy the file from the client machine since you know the location of what you need the upload. Of course your applet has to be signed and your user has to accept your applet certificate. This way he has given you persmission to read and write files from his machine. If you do not understand my explanation. let me know i will be more than happy to explain further.
  14. There are lots of books available to help a newbie to Java Server Pages. My favorites include:1. Java Servlet & JSP Cookbook By Bruce W. Perry 2. Servlets and JavaServer Pages (J2EE Technology Web Tier ) - Jayson Falkner and Kevin Jones3. Pure JSP - Java Server Pages: A Code-Intensive Premium Reference by James GoodwillAnd Ill suggest you visit the JavaRanch - http://javaranch.com/. You can always get help from lots of friendly folks who will help when you need it.
  15. Configuring JBoss 4 to work with Java. Thats a very wide topic.The answer depends on the kind of J2EE/Java application that you need to run on the Jboss server. Do you want to run a J2EE application.If you can ask a specific question I might be able to help 'cos i use Jboss everyday to run my J2EE applications.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.