newbie: servlet examples work, jsp not

2003-10-19 Thread busse
hello,

i am working in windows xp. i have the jsdk 1.4.1 installed. i also installed 
apache2 and tomcat 4.1 as described in the HowTo:
http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

after installation, i wanted to try the examples at http://localhost/examples.
the servlet examples work, but the jsp examples not. i get the following
error:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

and in the logs i have:

Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

But my Java_Home does point to c:\j2sdk1.4.1
and my classpath does point to c:\j2sdk1.4.1\lib\tools.jar

So, what am i making wrong? thank you in
advance.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: newbie: servlet examples work, jsp not

2003-10-19 Thread Johan Kok
JAVA_HOME or Java_Home --- I'm not usre if it makes a difference on the
Windows environment, but under Unix it definitely does.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 19 October 2003 12:36
 To: [EMAIL PROTECTED]
 Subject: newbie: servlet examples work, jsp not


 hello,

 i am working in windows xp. i have the jsdk 1.4.1 installed.
 i also installed
 apache2 and tomcat 4.1 as described in the HowTo:
 http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

 after installation, i wanted to try the examples at
 http://localhost/examples.
 the servlet examples work, but the jsp examples not. i get
 the following
 error:

 org.apache.jasper.JasperException: Unable to compile class for JSP

 An error occurred at line: -1 in the jsp file: null

 Generated servlet error:
 [javac] Compiling 1 source file

 and in the logs i have:

 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK

 But my Java_Home does point to c:\j2sdk1.4.1
 and my classpath does point to c:\j2sdk1.4.1\lib\tools.jar

 So, what am i making wrong? thank you in
 advance.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Writing temporary file downloading it? [SOLVED]

2003-10-19 Thread Jason Viers
I had to do it a little differently (this is for a .zip file so I had to 
use the OutputStream) but you definitely got me on the right track.

Thanks for all the help!

Jason

Shapira, Yoav wrote:

Howdy,

 

The directory it returns is C:\tomcat\work\Standalone\localhost\gss and
I can write test.txt there fine.  If I try to make a hyper link to
http://localhost:8080/gss/test.txt, though, Tomcat returns 404.  Do I
have to do something special to tell Tomcat to serve the file?
   

You can only http hyperlink to resources under your webapp root.  Your
temp file is not under your webapp root.  So you need a servlet that
will read your temp file, and write it out to the response.  Something
like:
BufferedReader bin = new BufferedReader(new FileReader(myFile));
PrintWriter out = response.getWriter();
String line = null;
while((line = bin.readLine()) != null) {
 out.println(line);
 out.flush();
}
Alternative approaches exist.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem running servlet

2003-10-19 Thread Ashish Goswami
Hi,
 
i am new to Tomcat. iam able to run jsp fine but not able to run even HelloWorld 
servlet.
 
I have made following entries to the web.xml file.
 
 servlet
servlet-nameHelloWorld/servlet-name
servlet-classHelloWorld/servlet-class
/servlet
 
 
servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping
 
 
i have put the Helloworld servlet class under web-inf/classes.
 
My web context in server.xml file is wreu
 
Context path=/wreu docBase=wreu debug=0
  reloadable=true crossContext=true
 
 
I am accessing the servlet using following 
URL:http://127.0.0.1:8080/wreu/servlet/HelloWorld
 
pls help me out.
 
thanks 
 
ashish goswami
 
 
 


-
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Re: newbie: servlet examples work, jsp not

2003-10-19 Thread Ben Souther
You don't need to set your classpath. Tomcat does that for you.

You should double check that your JAVA_HOME environment variable is set 
properly. From the command line type: %JAVA_HOME%\bin\javac
You should see a menu of switches for the compiler.
If not, check to see where your JAVA_HOME environment variable is pointing by 
typing: echo %JAVA_HOME%

You might also want to get tomcat working as a standalone before integrating 
with Apache to cut down on the number of simultaneous issues to be debugged.
http://localhost:8080/examples






On Sunday 19 October 2003 06:35 am, you wrote:
 hello,

 i am working in windows xp. i have the jsdk 1.4.1 installed. i also
 installed apache2 and tomcat 4.1 as described in the HowTo:
 http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

 after installation, i wanted to try the examples at
 http://localhost/examples. the servlet examples work, but the jsp examples
 not. i get the following error:

 org.apache.jasper.JasperException: Unable to compile class for JSP

 An error occurred at line: -1 in the jsp file: null

 Generated servlet error:
 [javac] Compiling 1 source file

 and in the logs i have:

 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK

 But my Java_Home does point to c:\j2sdk1.4.1
 and my classpath does point to c:\j2sdk1.4.1\lib\tools.jar

 So, what am i making wrong? thank you in
 advance.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_webapp connector ?

2003-10-19 Thread Javier Sanchez Monzon
Hi all, 

i am searching the mod_webapp web connector in order to connect tomcat 4.1.27 
LE and Apache 1.3.27.  I am using solaris.   

This connector does not appear anymore under the jakarta-tomcat server. Anyone 
that already downloaded it?, please send me it to this email. 


tino 








-
This mail sent through IMP: http://horde.org/imp/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie: servlet examples work, jsp not

2003-10-19 Thread busse
hello,

i tried %JAVA_HOME%\bin\javac and it works properly.

Any other ideas?

 You don't need to set your classpath. Tomcat does that for you.
 
 You should double check that your JAVA_HOME environment variable is set 
 properly. From the command line type: %JAVA_HOME%\bin\javac
 You should see a menu of switches for the compiler.
 If not, check to see where your JAVA_HOME environment variable is pointing by 
 typing: echo %JAVA_HOME%
 
 You might also want to get tomcat working as a standalone before integrating 
 with Apache to cut down on the number of simultaneous issues to be debugged.
 http://localhost:8080/examples
 
 
 
 
 
 
 On Sunday 19 October 2003 06:35 am, you wrote:
  hello,
 
  i am working in windows xp. i have the jsdk 1.4.1 installed. i also
  installed apache2 and tomcat 4.1 as described in the HowTo:
  http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html
 
  after installation, i wanted to try the examples at
  http://localhost/examples. the servlet examples work, but the jsp examples
  not. i get the following error:
 
  org.apache.jasper.JasperException: Unable to compile class for JSP
 
  An error occurred at line: -1 in the jsp file: null
 
  Generated servlet error:
  [javac] Compiling 1 source file
 
  and in the logs i have:
 
  Unable to find a javac compiler;
  com.sun.tools.javac.Main is not on the classpath.
  Perhaps JAVA_HOME does not point to the JDK
 
  But my Java_Home does point to c:\j2sdk1.4.1
  and my classpath does point to c:\j2sdk1.4.1\lib\tools.jar
 
  So, what am i making wrong? thank you in
  advance.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OFF-TOPIC] HTML-JavaScript -- Does anyone know what this is....

2003-10-19 Thread Jay Garala
Does anyone know this 'thing'
 
+-++-+
| Item 1 | | Item 2 |  
| Item 3 | | Item 4 |
| Item 5 | |   |
| Item 6 | |   |
| Item 7 | |   |
+-++-+
 
You know the 'Items available' is on the left selection box and 'Choosen' is
on the right.
 
Does anyone have links on the web or examples/code for this??
 
 
Jay Garala
Senior Analyst
Electrosoft Services, Inc.
7918 Jones Branch Drive, Suite 600
McLean, VA  22102
(703) 918-4907
 


Re: mod_webapp connector ?

2003-10-19 Thread Nikola Milutinovic
 i am searching the mod_webapp web connector in order to connect tomcat
4.1.27
 LE and Apache 1.3.27.  I am using solaris.

 This connector does not appear anymore under the jakarta-tomcat server.
Anyone
 that already downloaded it?, please send me it to this email.

mod_webapp is not maintained any more. You can find the last (and I mean
last) in the tomcat-connectors-*

I'd advise you to move to either mod_jk or mod_jk2. I had no luck with them
on Tru64 UNIX, but Linux is OK.

Nix.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



site certificate always presented

2003-10-19 Thread Sonny Sukumar

Hi guys,

I've successfully set up SSL with my Tomcat
installation (4.1.27) with a CA-signed cert I bought,
but now Tomcat presents the certificate everytime I
try to even connect using regular http over port 80. 
I thought it was only supposed to be presented when
the browser requests a secure connection (like
https://...;) to the SSL port (443 in my case).

Or am I wrong?

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.0.12: Proxy with mod_proxy and HttpConnector not possible?

2003-10-19 Thread Fredrik Håård
Hi,
I've been working with Tomcat for a while and just migrated my webapps to 
my Debian box. Since I'm, already running Apache I thought it a good idea 
to use Apache as a proxy for Tomcat, and for simplicity I settled for the 
solution specified at this address:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/proxy-howto.html

However, when trying this solution I get a ClassNotFoundException (from 
catalina.out):

Catalina.start: java.lang.ClassNotFoundException: 
org.apache.catalina.connector.http.HttpConnector

Furthermore, when reading up on Tomcat documentation, 
org.apache.catalina.connector.http does no longer seem to exist in Tomcat 
5. I tried googling for the exception and for Tomcat 5 and mod_proxy, but 
ended up with nothing useful.

So, is the documentation out of synch and I should use JK2, or did I miss 
something?

If I have to use JK, can you point me to a good reference source, the link 
in the Tomcat docs seem broken - at least I end up at the Jakarta binary 
distributions.

Fredrik
--
fredrik at haard dot se
/~\
\ / Join the ASCII ribbon
x  campaign against HTML email
/ \ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat + IIS 6.0

2003-10-19 Thread Grant C. Peters


Grant C. Peters
mailto:[EMAIL PROTECTED] 
http://www.gcpeters.com
(646) 685-6932


-Original Message-
From: Matthew Hall-Smith [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 18, 2003 07:46 p
To: Tomcat Users List
Subject: RE: Tomcat + IIS 6.0

Yes it does work, however you will need to register
jakarta_redirector2.dll with IIS 6.0 to prevent the lock down.

Cheers,

Matt

 -Original Message-
 From: Hart, Justin [mailto:[EMAIL PROTECTED]
 Sent: Saturday, 18 October 2003 7:17 a.m.
 To: Tomcat Users List (E-mail)
 Subject: Tomcat + IIS 6.0


 Hey,
   What's the story on Tomcat + IIS 6.0 and AJP connectors?
 Does this scenario work or not?  I've seen scattered throughout
 the net where noone can get this to work.  Can somebody just tell
 me yes or no, this does or does not work?

 Justin W. Hart


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 08-04-2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 08-04-2003
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.12: Proxy with mod_proxy and HttpConnector not possible?

2003-10-19 Thread Bill Barker

Fredrik Håård [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,
 I've been working with Tomcat for a while and just migrated my webapps to
 my Debian box. Since I'm, already running Apache I thought it a good idea
 to use Apache as a proxy for Tomcat, and for simplicity I settled for the
 solution specified at this address:

 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/proxy-howto.html

 However, when trying this solution I get a ClassNotFoundException (from
 catalina.out):

 Catalina.start: java.lang.ClassNotFoundException:
 org.apache.catalina.connector.http.HttpConnector

 Furthermore, when reading up on Tomcat documentation,
 org.apache.catalina.connector.http does no longer seem to exist in Tomcat
 5. I tried googling for the exception and for Tomcat 5 and mod_proxy, but
 ended up with nothing useful.

 So, is the documentation out of synch and I should use JK2, or did I miss
 something?

The documentation is out of synch (It's really talking about Tomcat 4.0.x).
To use mod_proxy (or any other proxy server) just set up a normal HTTP/1.1
Connector in Tomcat.  Also, the 'proxyName' and 'proxyPort' attributes are
unnecessary in Tomcat 5 as well.


 If I have to use JK, can you point me to a good reference source, the link
 in the Tomcat docs seem broken - at least I end up at the Jakarta binary
 distributions.

 Fredrik
 -- 
 fredrik at haard dot se

 /~\
 \ / Join the ASCII ribbon
  x  campaign against HTML email
 / \




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Meaning of entries in mod_jk.log

2003-10-19 Thread Bill Barker

Volker [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 can anyone please explain me the meaning of following entries in my
 mod_jk.log?
 Attempting to map ...
 Why does mod_jk try to map something here?

It's checking to see if the URL matches any of your JkMount statements.
Nothing more, nothing less.  When it is done without a match, it allows
Apache to continue to handle the request (and presumably return a 404 page).


 Are those outputs normal (For example
 /fh/DC/DCClasses/Resources/Forum/userIcons/bonus_calien1.gif does exist
 on my web server!) ?

 [Sat Oct 18 08:19:58 2003]  [jk_uri_worker_map.c (477)]: Attempting to
 map URI '/fh/DC/DCClasses/Resources/Forum/userIcons/bonus_calien1.gif'
 [Sat Oct 18 08:19:58 2003]  [jk_uri_worker_map.c (599)]:
 jk_uri_worker_map_t::map_uri_to_worker, done without a match
 [Sat Oct 18 08:19:58 2003]  [jk_uri_worker_map.c (460)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Sat Oct 18 08:19:58 2003]  [jk_uri_worker_map.c (477)]: Attempting to
 map URI '/fh/DC/DCClasses/Resources/Forum/userIcons/r_flirter1.gif'
 [Sat Oct 18 08:19:58 2003]  [jk_uri_worker_map.c (599)]:
 jk_uri_worker_map_t::map_uri_to_worker, done without a match
 [Sat Oct 18 08:19:59 2003]  [jk_uri_worker_map.c (460)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Sat Oct 18 08:19:59 2003]  [jk_uri_worker_map.c (477)]: Attempting to
 map URI '/fh/DC/DCClasses/Resources/Forum/userIcons/r_luzy.gif'
 [Sat Oct 18 08:19:59 2003]  [jk_uri_worker_map.c (599)]:
 jk_uri_worker_map_t::map_uri_to_worker, done without a match
 [Sat Oct 18 08:19:59 2003]  [jk_uri_worker_map.c (460)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Sat Oct 18 08:19:59 2003]  [jk_uri_worker_map.c (477)]: Attempting to
 map URI
 '/fh/DC/DCClasses/Resources/Forum/userIcons/bonus_flirtheart1.gif'
 [Sat Oct 18 08:19:59 2003]  [jk_uri_worker_map.c (599)]:
 jk_uri_worker_map_t::map_uri_to_worker, done without a match

 Thx and best regards

 Volker




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OFF-TOPIC] HTML-JavaScript -- Does anyone know what this is....

2003-10-19 Thread Gray, Jason
Try this one: 

http://www.blazonry.com/javascript/selmenu.php

Rgds
Jason

 -Original Message-
 From: Jay Garala [SMTP:[EMAIL PROTECTED]
 Sent: Monday,20 October 2003 2:41
 To:   [EMAIL PROTECTED]
 Subject:  [OFF-TOPIC] HTML-JavaScript -- Does anyone know what this is
 
 Does anyone know this 'thing'
  
 +-++-+
 | Item 1 | | Item 2 |  
 | Item 3 | | Item 4 |
 | Item 5 | |   |
 | Item 6 | |   |
 | Item 7 | |   |
 +-++-+
  
 You know the 'Items available' is on the left selection box and
 'Choosen' is
 on the right.
  
 Does anyone have links on the web or examples/code for this??
  
  
 Jay Garala
 Senior Analyst
 Electrosoft Services, Inc.
 7918 Jones Branch Drive, Suite 600
 McLean, VA  22102
 (703) 918-4907
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can i track the user action using right mouse button on thewebpage

2003-10-19 Thread kgsat
hi Aleksandr,
(BThanks for your response.Where can i find a sample code for writing filters
(Band the stuff related to filters.U have any pointers?
(Bpl send me.
(Bthanks again
(Bsat
(B- Original Message - 
(BFrom: "Aleksandr Shneyderman" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Friday, October 17, 2003 7:53 PM
(BSubject: Re: can i track the user action using right mouse button on
(Bthewebpage
(B
(B
(B I am not sure what is the significance of right click or left click.
(B What is important is that
(B
(B A - you have a way to track the session of the user,
(B which I assume you do since you use servlets (JSP)
(B B - that your images do get served by the tomcat and not
(B the front end apache or whatever else.
(B
(B If those two conditions met you have two choices that I can think of:
(B 1. Write a filter and do your own tracking of whatever items you might
(B think of.
(B
(B 2. Find some filters that were already written and modify them to suite
(B your needs. The other day I saw a post here on how one might track user
(B clicks. There were quite a few responses with pointers to some usefull
(B stuff, just search archives.
(B
(B HTH,
(B Alex.
(B
(B On Fri, 2003-10-17 at 06:08, kgsat wrote:
(B  Hi Folks,
(B 
(B  I have been into the development of a mpeg download site for quite
(Bsometime.
(B  i have a unique demand from the client.
(B  He wants to facilitate the user to download the a file from the site
(Busing
(B  right mouse button click and select the option, save target as from the
(B  popup menu.
(B  I could do that very well.
(B  And he also wants to do the user tracking such as,.
(B 
(Ba.. which user has downloaded how much MBs of file in a day,
(Bb.. which is the user now downloading a specific file, etc
(B 
(B  I have successfully met all his demands with the fact that the
(B  functionalities were implemented with the normal click(left click) of
(Bthe
(B  mouse button.This is because i could not find a way out to implement the
(B  funcionality with the mouse right button click.
(B 
(B  I have done all these tasks using JSP and Servlets.Will any one suggest
(Bme
(B  as how to implement the user tracking while using the right click of the
(B  mouse.
(B 
(B  It is very important that end user uses only right click to download a
(Bfile
(B  from the site.
(B  so pl suggest me
(B  thanks in advance
(B  sat
(B
(B
(B -
(B To unsubscribe, e-mail: [EMAIL PROTECTED]
(B For additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: can i track the user action using right mouse button on thewebpage

2003-10-19 Thread Aleksandr Shneyderman
1. servlet specs 
(B2. javapro had a good article about a year ago.
(B3. books about servlets
(B
(Bgoogle for it.
(B
(BOn Sunday 19 October 2003 21:21, kgsat wrote:
(B hi Aleksandr,
(B Thanks for your response.Where can i find a sample code for writing filters
(B and the stuff related to filters.U have any pointers?
(B pl send me.
(B thanks again
(B sat
(B - Original Message -
(B From: "Aleksandr Shneyderman" [EMAIL PROTECTED]
(B To: "Tomcat Users List" [EMAIL PROTECTED]
(B Sent: Friday, October 17, 2003 7:53 PM
(B Subject: Re: can i track the user action using right mouse button on
(B thewebpage
(B
(B  I am not sure what is the significance of right click or left click.
(B  What is important is that
(B 
(B  A - you have a way to track the session of the user,
(B  which I assume you do since you use servlets (JSP)
(B  B - that your images do get served by the tomcat and not
(B  the front end apache or whatever else.
(B 
(B  If those two conditions met you have two choices that I can think of:
(B  1. Write a filter and do your own tracking of whatever items you might
(B  think of.
(B 
(B  2. Find some filters that were already written and modify them to suite
(B  your needs. The other day I saw a post here on how one might track user
(B  clicks. There were quite a few responses with pointers to some usefull
(B  stuff, just search archives.
(B 
(B  HTH,
(B  Alex.
(B 
(B  On Fri, 2003-10-17 at 06:08, kgsat wrote:
(B   Hi Folks,
(B  
(B   I have been into the development of a mpeg download site for quite
(B
(B sometime.
(B
(B   i have a unique demand from the client.
(B   He wants to facilitate the user to download the a file from the site
(B
(B using
(B
(B   right mouse button click and select the option, save target as from the
(B   popup menu.
(B   I could do that very well.
(B   And he also wants to do the user tracking such as,.
(B  
(B a.. which user has downloaded how much MBs of file in a day,
(B b.. which is the user now downloading a specific file, etc
(B  
(B   I have successfully met all his demands with the fact that the
(B   functionalities were implemented with the normal click(left click) of
(B
(B the
(B
(B   mouse button.This is because i could not find a way out to implement
(B   the funcionality with the mouse right button click.
(B  
(B   I have done all these tasks using JSP and Servlets.Will any one suggest
(B
(B me
(B
(B   as how to implement the user tracking while using the right click of
(B   the mouse.
(B  
(B   It is very important that end user uses only right click to download a
(B
(B file
(B
(B   from the site.
(B   so pl suggest me
(B   thanks in advance
(B   sat
(B 
(B  -
(B  To unsubscribe, e-mail: [EMAIL PROTECTED]
(B  For additional commands, e-mail: [EMAIL PROTECTED]
(B
(B -
(B To unsubscribe, e-mail: [EMAIL PROTECTED]
(B For additional commands, e-mail: [EMAIL PROTECTED]
(B
(B-- 
(BThanks,
(BAlex.
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Internal Server Error

2003-10-19 Thread Anson Zeall
Hi guys,

For some reason, my tomcat won't start. It says there's a 500
Internal server error with:

exception

javax.servlet.ServletException: org/apache/naming/JndiPermission
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
6)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:60
1)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
5)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
at java.lang.Thread.run(Thread.java:534)


What does this mean?

Anosn



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Specify one file for all directory mappings

2003-10-19 Thread Eric Bessette
Is there a way to specify one file, like the one below, for all directory
mappings?

file (index.jsp):
%@ taglib uri=struts-tiles prefix=tile %

tile:insert definition=project.layout.main flush=true
tile:put name=sidebar value=${
pageContent.request.requestURI }/sidebar.jsp /
tile:put name=content value=${
pageContent.request.requestURI }/content.jsp /
/tile:insert

The file would be used for all uri's that end with directories, like
http://host/project/dir1/ and http://host/project/dir1/dir2/.

I tried using the welcome-file-list in my web.xml to do this, but it looks
like those files are only relative.

welcome-file-list
welcome-fileindex.jsp/welcome-file
welcome-file/shared/index.jsp/welcome-file
welcome-fileindex.html/welcome-file
/welcome-file-list

Is there anyway to configure Tomcat, Struts, or Tiles to do this?

Please reply to [EMAIL PROTECTED], as I'm not subscribed to this list.

Thanks,
Eric


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]