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
-
Free & Pretty Good Web-Design Templates theyre pretty good
Ola Daniel replied to grnjd's topic in Websites and Web Designing
Great sites/ I use free templates all the time. Saves me the trouble of designing from scratch. -
JSP (J2EE) Hosting JSP and Servlet Web Site
Ola Daniel replied to Ola Daniel's topic in Websites and Web Designing
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. -
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.
-
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.
-
Using The Post Method Without HTML Yeah, See the Above Line.
Ola Daniel replied to szupie's topic in Programming
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 -
How To Use MySQL ? How do you use MYSQL?
Ola Daniel replied to carl1405241526's topic in Programming
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! -
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.
-
Java Unlimited Java,jsp,servlet,Swing,GUI Designing
Ola Daniel replied to arunkumarhg's topic in Programming
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. -
I think Eclipse IDE is the wayto go. It has alot of built in features that woud make your coding alot easier.
-
Need Free JSP Or Servlet Web Hosting I need help
Ola Daniel replied to yeh's topic in Websites and Web Designing
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 -
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
-
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.
-
Uploading Image File Through JSP Code To Server
Ola Daniel replied to welcome77in's topic in Programming
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. -
What Are Your Favorite JSP Book(s) Advice for a beginner?
Ola Daniel replied to uapconsole's topic in Programming
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. -
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.