Zafar Anwar

Greenhorn
+ Follow
since Jun 06, 2012
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 Zafar Anwar

Seetharaman Venkatasamy wrote:

Zafar Anwar wrote:
But it prints true. Can you anyone help me?



because, java.util.ArrayList.add(E) returns boolean



I got it, thanks!
6 years ago
JSP

In JSP I have.

<%
request.setAttribute("names", new ArrayList().add("ABC"));
out.println(request.getAttribute("names")); // It should print arraylist object. But it prints true. Can you anyone help me?
%>

getAttribute() should return either Object or null.

// But it prints true. Can you anyone help me?
6 years ago
JSP

Sana Rs wrote:This 5yr old thread has helped me a lot for my lab exams thanks a lot for all the help



I am not able to start binary distribution of tomcat6..

Tomcat location: C:\Users\Zafar.Anwar\Documents\Newfolder\apache-tomcat-6.0.35-windows-x64\apache-tomcat-6.0.35\
JDK location: C:\Program Files (x86)\Java\jdk1.7.0_03
JRE Location: C:\Program Files (x86)\Java\jre1.6.0_14

I have following user environment variables

Name: JAVA_HOME
Value: C:\Program Files (x86)\Java;

Name: CATALINA_HOME
Value: C:\Users\Zafar.Anwar\Documents\Newfolder\apache-tomcat-6.0.35-windows-x64\apache-tomcat-6.0.35

Name: PATH
Value: %PATH%;C:\Program Files (x86)\Java\jdk1.7.0_03\bin;%JAVA_HOME%\bin;%CATALINA_HOME%\bin

Name: CLASSPATH
Value: %CLASSPATH%;C:\Program Files (x86)\Java\jdk1.7.0_03\lib;

In command prompt I typed 'tomcat6' and the output was as following:

C:\Users\Zafar.Anwar\Documents\Newfolder\apache-tomcat-6.0.35-windows-x64\apache -tomcat-6.0.35\bin> tomcat6
[2012-06-07 06:38:11] [warn] The system cannot find the Registry key for service 'tomcat6'
[2012-06-07 06:38:11] [error] Load configuration failed
[2012-06-07 06:38:11] [error] The system cannot find the file specified.
[2012-06-07 06:38:11] [error] Commons Daemon procrun failed with exit value: 2 (Failed to load configuration)
[2012-06-07 06:38:11] [error] The system cannot find the file specified.

C:\Users\Zafar.Anwar\Documents\Newfolder\apache-tomcat-6.0.35-windows-x64\apache-tomcat-6.0.35\bin>

Could some one please help me, on how to start tomcat6, please?
6 years ago