Home arrow static arrow Java Programming [Archive] - Java Web Hosting
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Java Web Hosting
This topic has 7 replies on 1 page.

Posts:129
Registered: 4/6/02
Java Web Hosting  
Jul 18, 2002 10:41 AM



 
I am looking for a site which supports free java web hosting.

It does not have to be very good but I just want something which I can use to test some of my apps and servlets.

Any suggestions?

Manny thanks,

me
 

Posts:283
Registered: 2/24/02
Re: Java Web Hosting  
Jul 18, 2002 11:06 AM (reply 1 of 7)



 
Unless you are creating server side stuff. You should only be worried if your users will have java. If all you are going to do is applets and such, it doesn't matter where you are because they will be client side.
 

Posts:283
Registered: 2/24/02
Re: Java Web Hosting  
Jul 18, 2002 11:07 AM (reply 2 of 7)



 
If you are going to use JSP or servelets, here's a site
http://www.jspin.com/home/sites/jsphosts/freejsph
 

Posts:236
Registered: 5/24/01
Re: Java Web Hosting  
Jul 18, 2002 11:11 AM (reply 3 of 7)



 
Unless you are creating server side stuff. You should
only be worried if your users will have java. If all
you are going to do is applets and such, it doesn't
matter where you are because they will be client side.

Rrrrright, but didn't he specifically say he wanted to test out servlets?

In any case, check out this post from yesterday:

http://forum.java.sun.com/thread.jsp?forum=45&thread=277469

- Sheepy
 

Posts:46
Registered: 7/16/02
SRRY BUT I REALLY NEED HELP BAD  
Jul 18, 2002 11:14 AM (reply 4 of 7)



 
I have narrowed it down to the events method and it seems there is a problem with the event. I have it working kinda right and I wanted to clear the buffer.

http://www.state.nj.us/military/test/testingjava/applet.htm
try the applet out. type in bob press search then press search again.
it is repeating the text. but it also seems that it may not be the buffer.

THE MAIN CONCERN IS THE DEPRECATED ERROR


the error:
Note: Z:\applications\JCreator LE\MyProjects\helloworld\test\teststate\Virginia.java uses or overrides a deprecated API. Recompile with "-deprecation" for details.
1 warning

the foowing is the code:

import java.awt.*;
import java.applet.*;
import java.lang.*;
import java.io.*;
import java.net.URL;

public class Virginia extends java.applet.Applet
{
String results[]=new String[10];
String resultsString;
String queryString;
TextArea lt;
Label lbQueryString= new Label("Please enter search text:");
TextField tfQueryString= new TextField(25);
Button btSearch=new Button("Search");
Button btClear=new Button("Clear Entry");

private void getString()
{
try{
URL yahoo = new URL("http://www.nj.gov/military/test/testme.txt");

BufferedReader in = new BufferedReader(new InputStreamReader(yahoo.openStream()));

String line= in.readLine();
System.out.println(" in ");
int i=0;
while ( line != null )
{
int index = line.indexOf(queryString.trim());
if ( index != -1)
{
results=(line);
i++;
System.out.println(i);
}
line = in.readLine();
}
in.close();
}catch (IOException e)
{System.out.println("Error -- " + e.toString());}

for (int i=0;i<10;i++)
{
if(results!=null)
{
resultsString+=(results+"\n");
}
}

}

public boolean action(Event evt, Object arg)
{
if (evt.target instanceof Button)
{
String label = (String)arg;
if (label.equals("Search"))
{
queryString=tfQueryString.getText();
this.getString();
lt.setText(resultsString);

}else
{
queryString="";
lt.setText("");
}
return true;
}else
return false;

}

public void init()
{

lt = new TextArea(resultsString, 10, 50);
add(lbQueryString);
add(tfQueryString);
add(btClear);
add(btSearch);
add(lt);
this.destroy();
}

}

 

Posts:605
Registered: 3/5/02
Re: Java Web Hosting  
Jul 18, 2002 12:01 PM (reply 5 of 7)



 
It would be easier to install tomcat on your local machine and test it there.
 

Posts:129
Registered: 4/6/02
Re: Java Web Hosting  
Jul 19, 2002 9:52 AM (reply 6 of 7)



 
I use forte but through experiance I have learned that what works on a localhost does not always work on the net.

I have signed up with mycgiserver.com and it is great.
 

Posts:17
Registered: 12/1/97
Re: Java Web Hosting  
Aug 4, 2004 5:44 PM (reply 7 of 7)



 
Try this one. http://www.eatj.com
 
This topic has 7 replies on 1 page.