rudolf hitler

Ranch Hand
+ Follow
since Feb 07, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by rudolf hitler

Hi guys,
This question may sound stupid but i do need help very confused.
I am confused as to when i am suppose to use JSP& servlets or instead of JSP i can use Javascript & HTML.When should i use EJB instead of just a plain java class to do the same thin.
For e.g say
i have a module where i enter data about a customer in a form now should i develop the form in html or use awt/swing and then the input given to the form should be inserted into a database.So should i use EJB for inserting data into database or should i user servlets to pick up form data and insert into database.
If i use awt/swing how can i transfer the form contents when the data is submitted to servlet/ejb
and if i use ejb to insert data into database how do i get the form values into ejb.
Further when do i use multithreading in my module and how exactly can i implement it.
Please help me with this as it is very urgent and i am too confused as to what to choose over what.
19 years ago
Hi guys,
This question may sound stupid but i do need help very confused.I am confused as to when i am suppose to use JSP& servlets or instead of JSP i can use Javascript & HTML.When should i use EJB instead of just a plain java class to do the same thin.
For e.g say
i have a module where i enter data about a customer in a form now should i develop the form in html or use awt/swing and then the input given to the form should be inserted into a database.So should i use EJB for inserting data into database or should i user servlets to pick up form data and insert into database.
If i use awt/swing how can i transfer the form contents when the data is submitted to servlet/ejb
and if i use ejb to insert data into database how do i get the form values into ejb.
Further when do i use multithreading in my module and how exaclty can i implement it.
Please help me with this as it is very urgent and i am too confused as to what to choose over what.
Thanx in advance
Hi,
Im having problems performing ftp of a file to a another machine.Can someone tell me how to use FtpClient?

import java.io.*;
import java.net.*;
//import sun.net.*;
public class Example1
{
public static void main(String args[]) throws MalformedURLException
{
FtpClient ftp = new FtpClient();
ftp.openServer("shuttle");
ftp.login("Administrator","mdroy");
ftp.cd("c:\\DDDD");
ftp.ascii();
OutputStream theFile = ftp.put("c:\\Madhu\\sports\\2003\\feb\\archive_display.html");

}
}
It says it cannot resolve symbol FtpClient do i have to download any jar file.If yes then where do i download it from and here do i place it and how do i make my program recognize it.

i tried using Ftp Client Library
from a site suggested on the ranch but to no avail.So if someone can send me the code for ftpclient and also tell me if any jar files are to be installed if yes where
Thanx
well thanx u guys i tried both before posting the message to youll but both dont work it gives errors like u cant use toString() and i used toArray() to convert the arraylist to an array so like
Object i[]=array.toArray();
when i used String there instead of Object it again gives errors.So both of them dont work pls help its damn urgent
19 years ago
i have an array of objects i ant to pass each element of this array to a method that accepts strings as arguments.I would like to know how i could convert this array of objects to an array of strings and pass it to the method.
I casting the object to string but it gives me an error.
19 years ago
hi,
why dont u place the form in a html page and use javascript to pass the url to ur destination page.In javascript u can use the escape(variable)
function to encode url which automatically gets decoded at ur destination.
19 years ago
JSP
hi,
I have this form whose values i want to insert into the database using JSP and custom tags.I do not want to use servlets to insert values.Is it possible if yes ,how?
19 years ago
JSP
hi all,
i need to know how cn i perform ftp of a file from a ajava program can any1 help me out.its urgent so i need the reply soon.thnx
19 years ago
david,
thts already set is there any other way out.
19 years ago
Hi ppl,
I have this problem with tomcat everytime i make a change to my servlet tomcat doesnt reflect the change until i dont shut it down and start up.Is there any way i can get around this problem and not have to shut and start up the sever everytime i make a change the servlet.
19 years ago
tht doesnt help coz i had tried tht too before it keeps givin the exception no matter wht
19 years ago
how can i use a string tokenizer in a loop.I need to read each line of a file and split it on a delimiter.
My txt file is in the format
A|B|C|D
i have used the following:
try
{
FileReader fr=new FileReader("myfile.txt");
BufferedReader br=new BufferedReader(fr);
while((line=br.readLine())!=null)
{
StringTokenizer st=new StringTokenizer(line,"|");
while (st.hasMoreTokens())
{
a=st.nextToken();
b=st.nextToken();
c=st.nextToken();
d=st.nextToken();
e=st.nextToken();
}
}
}catch(Exception ex){}
What happens is it reads one line then gives nosuchelementfound exception .can u suggest a way of gettin through this.Maybe i need to undefine st object at the end of the loop.If it is tht how do i undefine the object.
19 years ago
How do i read each line of a file and form a loop peformin some processing on each line till end of file is reached.I tried using readLine() but it doesnt work.I need help its urgent
19 years ago
Hi,
I have this .shtml file in which the contents of the servlet tag are not bein replaced byu the output from the servlet.I am using tomcat and have uncommented the servlet mapping and ssi mapping elements in web.xml also have renamed the jar file for ssi.My sevlet compiles without any errors and also runs fine but the output is not bein tansfered to the shtml file.What might the problem be.I have placed my servlet in a directoy called moreservlets my sevlet name is header
so how am i suppose to give the servlet tag
<sevlet code=Header>
or <servlet code=moreservlets.Header>
also where are the shtml files supposed to be placed i have placed them in the webapps/ROOT directory.
19 years ago
Hi,
I have this .shtml file in which the contents of the servlet tag are not bein replaced byu the output from the servlet.I am using tomcat and have uncommented the servlet mapping and ssi mapping elements in web.xml also have renamed the jar file for ssi.My sevlet compiles without any errors and also runs fine but the output is not bein tansfered to the shtml file.What might the problem be.I have placed my servlet in a directoy called moreservlets my sevlet name is header
so how am i suppose to give the servlet tag
<sevlet code=Header>
or <servlet code=moreservlets.Header>
also where are the shtml files supposed to be placed i have placed them in the webapps/ROOT directory.
19 years ago