Prithvi Raj

Greenhorn
+ Follow
since Jul 13, 2001
Merit badge: grant badges
For More
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 Prithvi Raj

Hi All,
I shall briefly explain the scenario of the problem... i have a self signed jar signed using jdk 1.1.x tools and hence requires the jre version 1.3.0 . if the certificate (self signed) is not manually installed in the browser the applet does not initialize and a custom message is popped saying that the certificate needs to be installed (this is done by capturing the exception).
The problem is once the user installs the certificate without closing the browser , the installed certificate is not recognised. on closing the browser it gets recognised. is there a solution for this problem.
thanx in advance
regards
prasad
21 years ago
hi Christopher
Thanx a lot for u r input. it is working great. i did not want to use that api was because the telnet session data acts as interface to another third party software.
thanx again
22 years ago
i need to start the telnet session from java . the following code works fine in 98/ nt 4.0 but it does not work in win2k/XP . if returns an exitvalue of -1 thats all. can any one tell me why . is it because the telnet program in these environments seem to work differently because they do not open the window as in 98 or NT 4.0 . any work arounds
Process p = Runtime.getRuntime().exec("telnet");
BufferedReader br = new BufferedReader(new
InputStreamReader(p.getInputStream()));
BufferedWriter bw = new BufferedWriter(new
OutputStreamWriter(p.getOutputStream()));
bw.write("1");
bw.flush();
String line;
while ((line = br.readLine()) != null)
{
System.out.println(line);
}
br.close();
bw.close();
System.out.println(p.exitValue());
22 years ago
i need to start the telnet session from java . the following code works fine in 98/ nt 4.0 but it does not work in win2k/XP . if returns an exitvalue of -1 thats all. can any one tell me why . is it because the telnet program in these environments seem to work differently because they do not open the window as in 98 or NT 4.0 . any work arounds
Process p = Runtime.getRuntime().exec("telnet");
BufferedReader br = new BufferedReader(new
InputStreamReader(p.getInputStream()));
BufferedWriter bw = new BufferedWriter(new
OutputStreamWriter(p.getOutputStream()));
bw.write("1");
bw.flush();
String line;
while ((line = br.readLine()) != null)
{
System.out.println(line);
}
br.close();
bw.close();
System.out.println(p.exitValue());
22 years ago
interfaces like "Serializable" , "cloneable" are empty interfaces that do not contain any methods, but are used for tagging other classes with properties indicated by the interface type.

22 years ago
i do not wish to include because on include the control will come back to the including servlet. The problem is that the same context root on forward works for jsp but not for servlet.

Originally posted by kyle bober:
YOu may want to try servlet chaining. Instead of using the forward method use the include method. Then call the servlet you want to go to fro the request object. This will allow you to obtain the data in the request object of the other servlet(s). A reminder though in order to place the object(data) into the request object they must already have been instantiated within your current request object.


22 years ago
hi,
Please consider this scenario. I have written two projects in Proj1 and Proj2 (in iPlanet)
Proj1 has a servlet called servlet1
Proj2 has a servlet called servlet2
In servlet1 i want to dispatch request (forward) to servlet2
getServletContext().getRequestDispatcher("Proj2/servlet2").forward(request,response);
But the code does not forward request in iplanet. It gives an error like this
error: SERVLET-fileext_not_set: Extension of file not found, while displaying static content
the same code works fine in Netscape Application Server.
i tried to forward request from one servlet1 to servlet3 in the same project in iplanet like this
getServletContext().getRequestDispatcher("/servlet3").forward(request,response) it worked fine but the control came back to servlet1. why is it so. The servlets contain only system.out.println statements.
can any one please tell me what to do.
thanx in advance
prithvim
22 years ago
The servlet is not invoked because the most important thing u have to understand in client/server communication any request from a client( Applet side) request needs a response) that is why when u r client side makes a request to u r servlet, (whether u send something or not to the servlet) the servlet has to send something back. just open an object outputstream similar to input u have done and output some dummy (say string ) to applet. the applet has to have an inputstream which will read the response. So just read the response that is enough. u r servlet will surely be invoked. dont forget to set content type in the servlet before writing to output steam.
22 years ago
hi.
can anyone please tell me how to forward request to a servlet in iplanet Application Server from another servlet
Consider this scenario
there are two projects project1 and project2
project1 has servlet1
project2 has servlet2
servlet1 has to forward request to servlet2. i did it like this
getServletContext().getRequestDispatcher("Project2/servlet2").forward(request,response);
this is the error it gives
error: SERVLET-fileext_not_set: Extension of file not found, while displaying static content
that method works perfectly on Netscape Application Server
can any one give me a solution to this problem??
thanx in advance

------------------
prithvi
22 years ago