peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Does anybody know how to setup PHP on Tomcat 5.5?

I found this tutorial
http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-5x/
but i can't get it work.

Can somebody help?

Thank you

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The first link tutorials give you geneal idea what you are about to do and how you can do it with different techniques.I love that Zen Garden example, brilliant work.
Second one, stright forward tutorials very nice done.

Anyway, good luck wih your development, hope to see final outcome of your work :p

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I seen your site in IE 6 and firefox but didn't see any anomalies there. everything in order. did you sort you problem?

If not can you do small screenshot and post it so we know where to look for it...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I like that layout simple and effecient...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

In JavaScript, images in array and random number generator. Generate number between zero and maximum size of array. Then call position and ask the image to be displayed.

Flash, again JavaScript to get time of server or user pc, but would prefer user time. Then check time intervals to display appropriate animation.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

you have to find some convertor which can work with this audio dat files, if their are audio

just simple google search

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

ehmm, there is no rollover image in the top image bar. This images are static, or I should put it this way, when you position your mouse over them they do not change. If they been made as rollover they would change to something else or just change colour.
This yahoo bar is simple table like this

<table>
	<tr>
		<td><a href="link_one.html"><img src="first_image"></a></td>
		<td><a href="link_two.html"><img src="second_image"></a></td>
	</tr>
	<tr>
		<td><a href="link_one.html">Text link one</a></td>
		<td><a href="link_two.html">Text link two</a></td>
	</tr>
</table>
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

cool, just next time try to provide simple explanation or give an example :cheesy:

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

your question is realy cunfusing, what I understand is you just want that:
7 years loan is calculated with 0.0535
15 years loan with 0.055
30 years loan with 0.0575
to get output like following

With a loan amount of  $200000.00
for 7 years     at a rate of 0.0535     The monthly payment will be $2859.79
for 15 years    at a rate of 0.055      The monthly payment will be $1634.17
for 30 years    at a rate of 0.0575     The monthly payment will be $1167.15

if yes code is following

import java.io.*;  // java input output package
 import java.text.DecimalFormat;
class PaymentArray2
{
 public static void main(String[] arguments)
 {
  double amount = 200000;
  int[]term = {7, 15, 30};
  double[] rate = {.0535, .055, .0575};
   DecimalFormat twoDigits = new DecimalFormat("$000.00");
 
   System.out.println("With a loan amount of  " +twoDigits.format(amount));

   for (int i = 0; i < rate.length; i++)
   {
   	System.out.print("for " + term[i] + " years");
    System.out.print("\tat a rate of " + rate[i]);
    double payment = (amount*(rate[i]/12))/(1-(Math.pow(1/(1+(rate[i]/12)),(term[i]*12))));
    System.out.println("\tThe monthly payment will be " + twoDigits.format(payment));
   }
  }
 }

if I'm wrong please clearly state what you want us to do :mrgreen:

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I don't think so, usualy you can get a site for £4 a month. Best thing is to instal Tomcat on your pc together with database(MySQL) and practice there

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
Debug[B]1[/B] d = new Debug1(); // this was Debug d = new Debug();
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

the tutorial which i mentioned has multithreading. It is starting from simple window to window messaging and than they explain advance technics which include multithreading

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is a briliant tutorial in Deitel&Deitel book Programming in Java Sixth Edition somewhere around cahpter 23-24

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

[Hey Guys
:eek:
Im having mega issues uploading my files from dreamweaver to my host... leesonwedding.com. Im not sure whats up but it is not putting the dependant files. If anyone has any suggestions it would be greatly appreciated.

bassettbrandi2@hotmail.com]:!: :lol:

sorry I didn't get it what you mean by dependant files?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I prefer the first one with list of options, its easier to read and quick to find what you are looking for

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

no that is not what he wanted. he is not looking for html code. point is, take lazy user which doesn't like to move with mouse. after filling requered fields he only will press enter and by transfered to next page. Press enter work as long after typing password user pressed TAB to move to next field. But to move directly from password to next page you have to make key listener to listen for enter to be press

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

JCreator is very simple to use. Just create new document give it jsp extension and point to place where you want document to be saved. Than do your coding and compile. Everything done. Be carefull with beans which are usually placed in separated folder than rest of classes( folder classes holds your compiled java files and some people like to put there another folder called beans). What I mean is, if beans saved in other directory then servlets, JCreator will create new folder inside beans called beanes and put there your compiled bean classes. Once you try run your servlet you get error telling you your bean classes can't be find

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

lol, that is same like asking for serial number

once your trial period is out you can do only two thinks buy whole packege or delete it, as reinstaling or moving clocks back will not help you

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If I understand well you try write into text file which is part of JAR?

This is not possible you can only read from it check my question

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Is firewall configuarted to allow Dreamweaver access Internet?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Last screen defenetly show that images are not found however first seems to be somehow strange. So you are looking in wrong place for them. I see you are using Front page check if you are not using full path such as "C:/MyWeb/Images/" this is know as absolute path.So if your html document is in MyWeb folder and images Images folder your path can be like this

<img src="Images/img1.jpg">

and this is example of relative path

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have already working client-server messenger which is using threads. I can easily do plaintext username and password but I wish to use encryption on password.

How can this be done?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm trying to create a login for clients to server based on three way handshake. Client send his username in synchrinization to server, server acknowledge and send random encryption string to client with request for password, client encrypt password and send over to server. If password ok connection established.

I'm trying look up google but getting nowhere. Can you please suggest sources for beginner in networking?


Thank you

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can you please help me with launching Acrobat Reader from html document?
I have a html page which contain few links leading to PDF documents. There is no problem to open basic PDF's throught hyperlink into browser window, but some of this PDF's are searchable and if I try to open them this way I loose search functionality. What I'm looking for is to launch Acrobat Reader as external application on its own and not application in browser window.


Any suggestions will be appreciated

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can somebody suggest some good and cheap JSP provider with MySQL (UK if possible).
( :lol: know cheap but i'm student and need something to practice on as uni service has limitations)

Thank you

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

To anybody who wish to include images or read text file in their JAR fils here is small help

Include image

URL urlImage = getClass().getResource("Image/imageName.gif");
myImage = Toolkit.getDefaultToolkit().getImage(urlImage);

Include text file

JarFile jarFile = new JarFile("MyJar.jar");
JarEntry entry = jarFile.getJarEntry("TextFile/myTextFile.txt");
InputStreamReader input = new InputStreamReader(jarFile.getInputStream(entry) );

Don't forget include requered libraries :D

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

help with the path for servlets

I'm runnning Tomcat Appache 5.5.15 wth JAVA 1.5.06. To get servlets run on my laptop I only copied and past servlet-api.jar & jsp-api.jar into following directory

C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext

which is where java is installed

you can find this jar files in tomcat as follow

C:\Tomcat 5.5\common\lib

and to setting path for java, don't forget put on end of path semicolum " ; " or some pc refuse to work with java

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well, problem gets deeper, will try explain what I got...

I have work folder for my school project, there is a program which holds main function, then there is txt file which I will rewrite with new datas with each run of program. In same diredtory is folder with images, folder with other text files and package folder and manifest.

Manifest is game.mf

Main-Class: Game

In order to create JAR file I used following command

jar cmf game.mf Game.jar *.class GamePackage/*.class Image/*.gif TextFile/*.txt

It created for me, jar with all stuff inside but it is only working if I keep it in original directory. If I move game.jar and "rewritable" txt to diferent directory my images get lost and the function which use other txt file will not work(close down application)

any suggestions?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

OK, I will leave rewritable out, but still there is one more txt file which is design for reading only. How do I add to the JAR?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm creating a jar file of my game to make it smaller and easier to transfer. I was able to created jar file out of my classes and include there images.

Question is - how do I include txt file which is used for reading and writing?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is a site called w3scools.com, which can help you with many things in basic web design, here is a link to it, stright to part in which they explain how to embed flash into html

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can you translate this :cheesy:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jdesk
top/jdic/desktop/internal/impl/ServiceManagerStub
        at org.jdesktop.jdic.desktop.internal.ServiceManager.getService(Unknown
Source)
        at org.jdesktop.jdic.desktop.Desktop.browse(Unknown Source)
        at MainWindow.actionPerformed(Game.java:176)
        at java.awt.MenuItem.processActionEvent(MenuItem.java:597)
        at java.awt.MenuItem.processEvent(MenuItem.java:556)
        at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:298)
        at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:286)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:466)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Press any key to continue...
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

well whach this short movie and give your opinion :mrgreen:

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No I don't, just simple check for action event which is build on if statement

else if(evt.getSource() == menuItemRules)
	{
		Desktop.browse(new URL( "http://www.google.co.uk/"));
	}
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can somebody please provide my with usefull info how to open internet browser from java program? The way how this should work, work cross platform & open default browser don't force certain browser

I tried to use info from this page but couldn't get it work. Together with tutor we downloaded requered libraries. But when implemented compiler give us following errors, red parts mark erorr place

C:\CW1 - Game\Game.java:174: 
unreported exception java.net.MalformedURLException; 
must be caught or declared to be thrown 
Desktop.browse([B]n[/B]ew URL  ( "http://www.google.co.uk/"));
                                       
C:\CW1 - Game\Game.java:174: 
unreported exception org.jdesktop.jdic.desktop.DesktopException; 
must be caught or declared to be thrown 
Desktop.browse[B]([/B]new URL( "http://www.google.co.uk/"));
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Good, that is what I was trying say to you

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

no, i wanna use it as a blog, download it to my computer and up0load it to web

Haha what is difference between "downloaded to my pc and than uploaded to my web" and "used as image link", only that you not click to that image and go to your favorite web site :mrgreen:

lol just do it, but will be nice if you state where you get it from or give it a link to that site bellow your image

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
var xmlVal:XML = new XML();
xmlVal.ignoreWhite = true;
xmlVal.load("myFile.xml");
xmlVal.onLoad = function(bSuccess:Boolean):Void {
    if (bSuccess) {
        var xmlWorkbook:XMLNode = xmlVal.firstChild;
        while (xmlWorkbook.nodeName != "Workbook")
        xmlWorkbook = xmlWorkbook.nextSibling;
    }
}

If you don't mind, can you explain line-by-line what you are doing?
What I understand/gues is
1)declaring variable to hold xml
2)you ignore white space
3)loading in xml file
4)checking if document loaded properly
5) if yes continue with
a)assign value of xmlVal.firstChild to var on other side {what is firstChild any declaration/description?}
b)while you do not find Workbook repeat { does it already passed first workbook?}
c)asuming this is reading part - reading from xml

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

well, i wanna make a blog with that from neopets. would that be illegal? i would only use it on my website to let others use on neopets and use it on neopets

if you mean, use it as inage link to go that site, I don't see any problem with that

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm not in Flash programming, but principle is gone be same for all programming. Try to search for first association of "Workbook" and read from that point on or assume that this work on principle read line-by-line do an if statement to check for read content if that is
<?mso-application progid="Excel.Sheet"?>
than ignor it and read next line

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

so even if i used a the google image search? and wat about neopets?

eltommyo for the futhure, do not post in more than one forum

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Ok, I play neopets, I also help people in neopets. I want to know if i take a picture of neopets, the caption contest picture, and add a place to put text and then use tht would that be against the law? also my guild on neopets is a narnia guild, i want to know if i take pitures from a google image search of from disney.com would that be illegal? thank you!

Bite confusing your writing style ;)

  1. education
  2. advertising - making money of it
  3. just make your own logo/avatar etc

For education in 100% you can use everything as long you state is coming from certain site.
Advertising you have to contact owner and explain what you are up to, get his/her permision.
Last, people do not realy care for this.

Happy????

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It does work in FireFox but IE6 doesn't like it

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry m8, this is not an ebay where you can get your stuff. If you want flash games you can use google to search for them, but you will get very few results which include code. Most of them gone be tutorials

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

hi

Thanx for ur remady

sir , i wanna source code for making converting tool .
that's why please give me the link , where java source code is available ( Free of cost).

Thanx
Sanjay

Hmm, I wonder why he was boosting around with his MCA & SCJP(Sun Certified Java Programmer) and join me. Firstly saing I wanna source code and now please give me a link with free java code, you must be out of mind. Strange acting, have icy bye - bye

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It has to do something with your browsers settings than. When I open that page I got message "auto start rotator" and then second window open which is rotating url. Also you should upload this on server, I don't know if this will work from station.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Your script work absolutly fine for me, I did use only short listing of few address, changed time for faster cycling and had no problems ( used IE6 and firefox 1.0.7).

<html>
<head><title>Control page</title>

<SCRIPT language="JAVASCRIPT">
var Win;
var page_index=0;
var page = new Array();
page[0] = "http://mail.yahoo.com/";
page[1] = "http://www.daniweb.com/";
page[2] = "http://www.dutchfightclub.nl/";
page[3] = "http://www.dabs.com/";
page[4] = "http://www.lowestonweb.com/";
page[5] = "http://www.vantecusa.com/";

function next_page()
{
page_index++;
if (page_index == 6) 
page_index = 0;
Win.location.replace(page[page_index]);
}

</SCRIPT>
</head>

<body>
<h1>Auto Start Page Rotator</h1>

<SCRIPT language="JAVASCRIPT">

Win=window.open(page[0], 'Win','resize=yes,toolbar=yes,status=yes,scrollbars=yes,screenX=0,screenY=0,width=1000,height=666')
setInterval("next_page();",8000);
</SCRIPT>

</body>
</html>

You can check it here (I will removed from website when you tell me, it just example for you to see)
Dont forget people have often blocked pop ups so they may not want to see it in this form
To admin - if you feel this is advertaising please remove provided url, I have not objections