Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

nirmal baba

Greenhorn
+ Follow
since Apr 06, 2001
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 nirmal baba

In Jsps you can access the initial parameters using the following scriplet
<% String parameter=application.getInitParameter("nameoftheparameter"); %>
Hope this helps
nirmal
20 years ago
Hi
One important thing to keep in mind is that the jsessionid generated for keeping track of the session when u are using HttpSession object is server-specific..Different servers have diff ways of generating these jsessionids. While using the HttpSession API for session tracking u need not bother abt these ids.These r automatically generated for u.
Nirmal
21 years ago
jsp
Hello
U can use the <jsp:forward>action tag to allow the request to be forwarded to another servlet. The only constraint with this tag is the servlet to which the request is being forwarded must be in the same context as the JSP dispatching the request.
U can also use the <jsp:include> tag to include the servlet output in the calling JSP
Nirmal
21 years ago
Hello
There is nothing called servlet tunneling but certainly there is a concept called HTTP tunneling.
So let us try to understand what does HTTP tunneling means.
Most of the intranets work within the confines of a firewall that guards the intranet from direct influence of the external network. The firewall acts as a security wall for the intranet that protects it from malicious influences of internet.A proxy server,for example,acts as a firewall that allows the intranet users to surf through the web but does not allow them to connect to the network applications.
A typical firewall restricts all external communications from the intranet except the HTTP communications.So if a client behind a firewall(say an applet) wants to connect to an HTTP Server(where the servlet resides),then opening a simple socket on the client for initiating the communicaion with the server wont help since the firewall will block this request for being non HTTP.
In order to get through the firewall,u will have to wrap the client request in an HTTP message so that it will pierce throgh the firewall and reach the server.
This mechanism of encapsulating the client request in a HTTP message so that it may penetrate the firewall is called HTTP FIREWALL TUNNELING.
U will have to use the java.net.URL and java.net.URLConnection
classes for doing this.
This is a brief explanation. Any doubts,plz ask
Nirmal
21 years ago
Hi
U can download the 2.2/2.3 API from the sunsite.The URL is www.java.sun.com/products/servlet/download.html#specs .
Kindly check ,dowload and then confirm it to me!!!
Nirmal
21 years ago
Hi
U will have to use the RequestDispatcher's include(req,res) method in the calling servlet(servlet A in ur case) which then will include the output of the called servlet(servlet B in ur case) at the point of inclusion!!
Only thing that u have to keep in mind that u should use version2.1 and later (since RequestDispatcher got introduced in 2.1 only) for ur servlet class files to compile successfully
Kindly keep me informed if this explanation helped u sort out ur problem!!
Wish u all the best
Nirmal
21 years ago
Hello
I think u r not explicitly giving the page directive for importing the java bean class in ur jsp file that is using the bean!!!The required syntax is
<%@ page import="FullyQualifiedClassNameOFyourJavaBeanClass" %>
This is required for the JSPEngine to compile ur jspfile...Just putting the class file in the classpath of the web container wont help!!!
Kindly check with this change and respond
All The Best
Nirmal
21 years ago
Hello,
There r a no of load testing softwares available.One of them freely available and dowloadble is Velometer from www.binaryevolution.com.....Another one is from www.loadtesting.com .
A big list of load testing softwares can be obtained through a link in www.ecompanynow.com.
Hope that this information may be useful to you.
Regards
Nirmal
21 years ago
Loading a servlet involves three things-class loading from deployment archive+instantiation+initialization!!....In ur case even though the servlet is getting instantiated and loaded at startup ,it is not showing the System.out.println statements probably because u have put them in the service()/doGet()/doPost() method of ur servlet!! That's why they r showing up when one of these methods is invoked as a part of request processing.
They will appear at startup time only if u keep them in the init() method...Kindly try and confirm
Good Luck
Nirmal
21 years ago
Hello,
....I dont know whether this piece of information will help u.....RequestDispatcher object can be obtained using the getRequestDispatcher(String path) methods of ServletContext and
ServletRequest...But one important difference has to be kept in mind...The method of ServletContext accepts the ABSOLUTE PATH(ie u have to specify path relative to the root context) as the argument while the method of ServletRequest can accept ABSOLUTE/RELATIVE path.
.........I have never worked on JBuilder and dont know the directory structure used there.Kindly check that u are using the correct path as the argument(relative to the root context in ur case since u r using the method of ServletContext).
.....Also ,if possible kindly keep me informed about the exact cause of the problem when it gets solved!!!
All The Best!!
Nirmal
21 years ago