N S Raju

Greenhorn
+ Follow
since Apr 23, 2004
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 N S Raju

Hai

guess ur using command line compilation, just try
java -classpath <DIR> Controller.java

where DIR is the path till the dir where the DBConn.class is located

bye

Surya
19 years ago
Hai All,
I was trying this code in a servlets doGet method
//--

Doubt 1: Can we add Header After we commit the response ?
Doubt 2: We know that addCookie stmt sends cookie as a Response header,
The stmt in line 2 (when uncommented) does not create a cookie but line 1 does , how is this possible ?

thanks in advance
Surya
19 years ago
Hai Kush,
Keep ur class in a package and try ur servlet. Guess that shud do the job
bye
Surya
19 years ago
Hai !
The <transport-guarantee> element in <user-data-constraint >element is not clear. What is its purpose??
If we specify its value as INTEGRAL| CONFIDENTIAL, will that mean that the servlet-container will allow ONLY https connections to access the web-resource
thanks
Surya
Hai Paul !
Heres the web.xml snippet
<servlet>
<servlet-name>errortest</servlet-name>
<servlet-class>com.surya.servlet.ErrorTest</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>errortest</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>httptest</servlet-name>
<servlet-class>com.surya.servlet.HelloWorld</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>httptest</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>

The servlet defined last as the default servlet is being picked up, but while deploying this servlet no errors are occuring(which I had expected).
thanks
Surya
P.S Iam using Tomcat 5.0(Servlets 2.4)

Originally posted by Paul Anil:
Can you post your web.xml here?

Hai !
When we use only "/" for url-pattern then the servlet is supposed to be the default servlet.
I have defined two servlets with url-pattern "/" but while deploying the web-app Tomcat( iam using v5.0) does not complain...
is this behaviour left to the container ... ??
thanks !
Surya