Re: Announcement: ZK - an OSS project to enable rich user interfaces and easy-to-develop for Web applications

2005-11-16 Thread vineesh kumar
I just ckecked the ZK Framework  by downloading it.
Before going to more details I hav some queries,

1)Whether this framework can be used with struts?
2)Whether this is Lisenced?
  I am working on a commercial project. So wether i can adopt this
framework to include on my app and i can sell the product without any
restrictions?


On 11/15/05, Tom M. Yeh [EMAIL PROTECTED] wrote:
 ZK is an AJAX-based, event-driven, XUL-compliant, all Java framework to 
 enable rich user interfaces for Web applications. With ZK, you represent your 
 Web application in feature-rich in XUL and HTML components, and manipulate 
 these components by listening to events triggered by users, all at the 
 server, as simple and rich as you did for years in desktop applications.

 No JavaScript and AJAX for application developers. No need to replicate 
 business logic at the clients. No proprietary components. No compilation. 
 Just manipulate in a markup language, ZUL, deriving from XUL. Just POJO 
 (Plain Old Java cOdes). ZK works with existent frameworks and technologies, 
 such as JSF and Portals, so the pace of adapting it is all under your control.

 It is GPL. More details are available at http://zk1.sourceforge.net. You 
 could try the features online without installation at 
 http://www.potix.com/zkdemo/userguide.

 Welcome your input. Please forward to anyone who might be interested.

 Thanks and Regards,
 Tom Yeh
 The ZK project


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



Re: Eclipse setup questions

2005-11-16 Thread Seak, Teng-Fong
   Some more precisions are needed.  What output type are you 
referencing to?  Jar?  War?  Or something else?


   But in any case, the general way is File  Export, and then choose 
your type and in the next screen, specify your export destination.  You 
could use default settings for the rest.


Developer Developer wrote:


Hello All,
i am posting this question to the tomcat user group assuming people in this
group are familiar with eclipse IDE.
I am new to eclipse IDE. I have a question on the setup. I have 3 different
packages built in ecplise. I want to be able to direct the ouput of these
packages to 3 different folders that are outside my workspace.
Do you know how I can do that ?
Thanks a lot.

 




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



Re: Internationalization question

2005-11-16 Thread Seak, Teng-Fong
   I'm using Tomcat 5.5.9 (in Windows).  I've tried but I don't have 
any problem.  Try to upgrade your Tomcat.


Scott Smith wrote:


I'm using Tomcat 4.1.29 on Windows.  I have a context setup which contains
some image files (simple jpgs).  In the conf/server.xml file, the context
looks something like:



context path=photos docBase=c:\photodirectory debug=0
privileged=true /



Some of the filenames in this directory have non-English characters (e.g.,
ESPAÑA.jpg).



For the associated website, I have some html pages which refer to these
photos using an image tag that looks something like:



img src=http://myhost/photos/ESPAÑA.jpg ...



The problem is that the photos with non-English characters aren't being
displayed (it appears that Tomcat is unable to find them).  I thought URL
Encoding the filename would fix the problem, but it doesn't.  Some of my
experiments indicate that the browser (at least IE) will URL encode it
anyway as it makes the request.  The html pages are being sent to the
browser as utf-8.



As a test, I hardcoded the picture to be ESPANA.jpg in the html page and
changed the filename in the file system.  Everything worked fine.  Photos
that don't have non-English characters also work fine.  Unfortunately, the
photos are constantly changing and so I don't have the option of simply
renaming the files unless I find a way to do it that can automatically be
applied to future files as well as the current ones.



My suspicion is that Tomcat isn't URL decoding the filename.



Does anyone have any insight into this problem or suggestions about the
best way to fix the problem?



Scott




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



Re: Tomcat 5.5 and Logging - any plain english instructions anywhere?

2005-11-16 Thread Graham Leggett

Larry Isaacs wrote:


You could try modifying common/classes/logging.properties to see
if you can increase the output.


Tomcat doesn't ship with such a config file, but it gives a sample one 
in the logging docs. Having tried to do some semi intelligent cut and 
pasting to create a logging config for my webapp, I now have a zero 
length logfile.


I have listed logging.properties below, can anybody see anything wrong 
with it?



 I haven't worked with Struts
enough to say what logging output you should expect.  If no luck,
then there's always Google. :)


This is one of those Google searches that falls into the all questions 
no answers category, it was the first thing I tried :(


Here is logging.properties:

handlers = 1catalina.org.apache.juli.FileHandler, 
2localhost.org.apache.juli.FileHandler, \
   3manager.org.apache.juli.FileHandler, 
4admin.org.apache.juli.FileHandler, \
   5rfs.org.apache.juli.FileHandler, 
java.util.logging.ConsoleHandler


.handlers = 1catalina.org.apache.juli.FileHandler, 
java.util.logging.ConsoleHandler



# Handler specific properties.
# Describes specific configuration info for Handlers.


1catalina.org.apache.juli.FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3manager.org.apache.juli.FileHandler.level = FINE
3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
3manager.org.apache.juli.FileHandler.prefix = manager.

4admin.org.apache.juli.FileHandler.level = FINE
4admin.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
4admin.org.apache.juli.FileHandler.prefix = admin.

5rfs.org.apache.juli.FileHandler.level = FINE
5rfs.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
5rfs.org.apache.juli.FileHandler.prefix = rfs.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = 
java.util.logging.SimpleFormatter




# Facility specific properties.
# Provides extra control for each logger.


org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = \
   2localhost.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level 
= INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers 
= \

   3manager.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].level 
= INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].handlers 
= \

   4admin.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/rfs].level 
= FINE
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/rfs].handlers 
= \

   5rfs.org.apache.juli.FileHandler

# For example, set the com.xyz.foo logger to only log SEVERE
# messages:
#org.apache.catalina.startup.ContextConfig.level = FINE
#org.apache.catalina.startup.HostConfig.level = FINE
#org.apache.catalina.session.ManagerBase.level = FINE

Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


How to add client certificate to use in Servlets

2005-11-16 Thread Oliver Schoenwald

Hello,

I'm using Tomcat 5.5.4 and have implemented a webapplication that 
connects to other
servers to look for the existence of certain URLs and to load soap-data 
using the Jakarta Axis-Library.
Now there is a remote server reachable via an https-adress, and that 
server should accept client
certificate-based authentication. And here is where I'm lost for now. I 
have a client certificate in

pem-format (but I can have any other format, too, if I need).

So far I only found information about how to add server certificates to 
a keystore-file and how

to set tomcat to use that file for its own https-connector.

Question: How do I tell Tomcat to use that client certificate when a 
servlet connects to that

remote server? What format should the client certificate have?


Thank you in advance,

Oliver Schoenwald
University of Hagen


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



session expires dealing with big objects

2005-11-16 Thread Alessandro Colantoni
Hi all.

Some times my session expires wrongly when I deal with a bean very big.
My bean is a Struts form bean.
I didn't touch conf/server.xml and conf/web.xml of tomcat distribution
In my web.xml I put
session-config
   session-timeout180/session-timeout
/session-config

I've done such a file context.xml:

Context  path=/trayectorias docBase=trayectorias
relodable=false crossContext=true privileged=true debug=99

!-- PersistentManager: Uncomment the section below to test Persistent
  Sessions.

  saveOnRestart: If true, all active sessions will be saved
to the Store when Catalina is shutdown, regardless of
other settings. All Sessions found in the Store will be
loaded on startup. Sessions past their expiration are
ignored in both cases.
  maxActiveSessions: If 0 or greater, having too many active
sessions will result in some being swapped out. minIdleSwap
limits this. -1 or 0 means unlimited sessions are allowed.
If it is not possible to swap sessions new sessions will
be rejected.
This avoids thrashing when the site is highly active.
  minIdleSwap: Sessions must be idle for at least this long
(in seconds) before they will be swapped out due to
activity.
0 means sessions will almost always be swapped out after
use - this will be noticeably slow for your users.
  maxIdleSwap: Sessions will be swapped out if idle for this
long (in seconds). If minIdleSwap is higher, then it will
override this. This isn't exact: it is checked periodically.
-1 means sessions won't be swapped out for this reason,
although they may be swapped out for maxActiveSessions.
If set to = 0, guarantees that all sessions found in the
Store will be loaded on startup.
  maxIdleBackup: Sessions will be backed up (saved to the Store,
but left in active memory) if idle for this long (in seconds),
and all sessions found in the Store will be loaded on startup.
If set to -1 sessions will not be backed up, 0 means they
should be backed up shortly after being used.

  To clear sessions from the Store, set
maxActiveSessions, maxIdleSwap,
  and minIdleBackup all to -1, saveOnRestart to false, then restart
  Catalina.
 --
 !--
 Manager className=org.apache.catalina.session.PersistentManager
 debug=0
 saveOnRestart=false
 maxActiveSessions=-1
 minIdleSwap=-1
 maxIdleSwap=-1
 maxIdleBackup=-1
   Store className=org.apache.catalina.session.FileStore/
 /Manager
 --
   Manager className=org.apache.catalina.session.StandardManager
   debug=0
   checkInterval=60
  entropy=asdfghjklASDFGHJKLwefgbnmASDFGHJKLwedfgbhnxcvfghjukifgbhn
   maxActiveSessions=-1
   pathname =
   maxInactiveInterval=-1
   /Manager
   !--
   WatchedResourceWEB-INF/web.xml/WatchedResource
   --
   !--
   ResourceLink name=users global=UserDatabase
   type=org.apache.catalina.UserDatabase/
--
   Realm className=org.apache.catalina.realm.MemoryRealm
debug=99
pathname=webapps/trayectorias/WEB-INF/classes/resources/trayectorias-users.xml/

/Context

Previously I had tried with PersistentManager, and with tomcat 4.1.24,
5.5.0 y 5.5.7
The session expires wrongly only with big object.
I tried it in different computers and I notice that smaller is PC mas
frequently happens the error.

Have I configured something wrong?
Is it possible I have to configure some parameter to swap?
Is it possible to configure session size in some way?

Thanks a lot in advance

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



Re: advice on auto logout servlet

2005-11-16 Thread Jon Wingfield

I did an AJAX version of this a couple of months ago.
The slight gotcha is that the AJAX request prolongs the life of the 
session (you can't, it seems, override the cookie for AJAX requests) so 
the interval has to be slightly longer than the expiry time for the session.


Reynir Hubner wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,
I would suggest that you do this by using somethinglike JSON or AJAX.
See jasonspec: http://www.crockford.com/JSON/index.html

You could make the client query your server, in some interval and check
the session state.

hope it helps
- -reynir



Mark wrote:


Is there any way to allow servlets to auto-logout a user when the timeout
has been reached. Right now, I have tomcat configured for a 20 minute
session timeout. When the session times out, the user gets no notification
of this event. Is there any way to show the user that they have logged out?

Thank you.



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDeeqn19KgIQihNwgRAqT8AJ9ijf9kZZlldgjRTcAEtua+89enKQCgnqjm
iuCZACbq4A/JkmtB5yiIc8M=
=HSCq
-END PGP SIGNATURE-

-
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: advice on auto logout servlet

2005-11-16 Thread Frank W. Zammetti
You can do this strictly client-side, if requiring Javascript isn't a 
problem (which of course an AJAX-based solution does anyway).  Just 
start a timer from the onLoad event on each page.  When 20 minutes has 
elapsed, you can either pop an alert which is followed by a redirect to 
some appropriate page, or just do the redirect straight away, whatever 
you prefer.


The down-side is that a user could disable Javascript after the timer 
has begun but before the timeout occurs.  But, of course the session 
will still expire on the server, so it's probably not a big problem. 
And you'll need to keep your session timeout and client-side timeout 
values in sync, but that's pretty minor.


Frank

Jon Wingfield wrote:

I did an AJAX version of this a couple of months ago.
The slight gotcha is that the AJAX request prolongs the life of the 
session (you can't, it seems, override the cookie for AJAX requests) so 
the interval has to be slightly longer than the expiry time for the 
session.


Reynir Hubner wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,
I would suggest that you do this by using somethinglike JSON or AJAX.
See jasonspec: http://www.crockford.com/JSON/index.html

You could make the client query your server, in some interval and check
the session state.

hope it helps
- -reynir



Mark wrote:

Is there any way to allow servlets to auto-logout a user when the 
timeout

has been reached. Right now, I have tomcat configured for a 20 minute
session timeout. When the session times out, the user gets no 
notification
of this event. Is there any way to show the user that they have 
logged out?


Thank you.



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDeeqn19KgIQihNwgRAqT8AJ9ijf9kZZlldgjRTcAEtua+89enKQCgnqjm
iuCZACbq4A/JkmtB5yiIc8M=
=HSCq
-END PGP SIGNATURE-

-
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]






--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

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



RE: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M '

2005-11-16 Thread Richard Mixon
Nehal, I believe he is talking about windows (startup.bat ?), so there's not
.profile for the user. 

NanFei, there are a number of detailed posts on this topic during the last
week - search/Google for them. I believe you need to run tomcatw.exe - but I
do not have that version. You can also download the .zip version of tomcat
- it will have startup.bat in it.

HTH - Richard

 -Original Message-
 From: Nehal Sangoi [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, November 16, 2005 12:55 AM
 To: 'Tomcat Users List'
 Subject: RE: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M '
 
 In user's .profile
 
 -Original Message-
 From: NanFei Wang [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 15, 2005 6:45 AM
 To: users@tomcat.apache.org
 Subject: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M '
 
 
 Hi,
 In Tomcat 5.0, we can configure by ' set JAVA_OPTS=-Xmx256M ' 
 at the file of startup.bat.
 
 However, for Tomcat/5.5.9, It start by Service automatically 
 without a file of startup.bat.
 How and where to configure Tomcat/5.5.9 as by ' set 
 JAVA_OPTS=-Xmx256M '
 
 Regards
 
 NanFei
 
 
 -
 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]



JSP processing other than .jsp?

2005-11-16 Thread Marten Lehmann

Hello,

how can I define, that e.g. the extension .css shall be processed by 
tomcat same as a .jsp-file?


Regards
Marten

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



Re: JSP processing other than .jsp?

2005-11-16 Thread Frank W. Zammetti
FYI, I had a case once where I needed to make my CSS files JSP's because 
I was using HTC's and for some reason I couldn't get the path mappings 
to work right unless I used request.getContextPath() to prefix the HTC 
names... more than likely just my mistake somewhere, but making it a JSP 
(as Yaakov says, just renaming it to .jsp) did the trick.


I would personally prefer that approach because should you ever need to 
move to another app server, or even a hosted environment like I moved to 
a few months back, this way you won't have to mess with server settings, 
or getting some grumpy old admin to do it :)


Frank

Yaakov Chaikin wrote:

I assume you need this because you want to place some JSP code inside
your stylesheet

Two approaches:
1) If you know that ALL of your .css files will need to include JSP
code in them, then go to tomcat_dir/conf/web.xml and add another
servlet-mapping like so:
servlet-mapping
  servlet-namejsp/servlet-name
   url-pattern*.css/url-pattern
/servlet-mapping

2) If you need to place JSP code in just one or two .css files, I
would not start messing with server specific configurations and just
rename those .css files to have extension of .jsp. So, now you will
have a stylesheet file with .jsp. It seems weird and unusual, but
really doesn't make any difference as far as your HTML/JSP page is
concerned. Just point the link to the .jsp page instead in your
HTML/JSP page:
link href=styles/myStyle.jsp rel=stylesheet type=text/css

Hope that helps.

Yaakov.

On 11/16/05, Marten Lehmann [EMAIL PROTECTED] wrote:


Hello,

how can I define, that e.g. the extension .css shall be processed by
tomcat same as a .jsp-file?

Regards
Marten

-
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]






--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

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



Sharing webapps between linux and windows on single computer

2005-11-16 Thread Dhaval Patel
Hi all,

   I have computer three partitions:
Partition 1 : Windows XP (NTFS) - (aka P_NTFS)
Partition 2 : SuSE Linux 10.0 (Reiser) - (aka P_RES)
Partition 3 : Share (FAT32) - (aka P_FAT32)

Tomcat 5.5.12 with J2SE 1.5.0_05 on both SuSE and Windows.

   I use P_FAT32 for sharing my data files between SuSE and Windows. Since
P_FAT32 is FAT32 partition, SuSE reads it as noexec in the same way as it 
reads
P_NTFS. (I found from message while booting to SuSE). Unlike to P_NTFS, P_FAT32
is writable from SuSE. P_FAT32 is read by SuSE as vfat. Things are working
well. Somehow I am able to share my thunderbird offline emails and Firefox
bookmarks.

   I was wondering if we can share Tomcat webapps in that way. I did few 
things
to do that but could not have success. First I tried to put Tomcat on FAT32 and
try to start server. Since SuSE can not able to execute anything (from no exec)
flag, I could not able to run the server. Then I tried to run server from P_RES
from SuSE. It run well. Things are fine. Then I tried to move webapps directory
to P_FAT32 and create link in Tomcat about that tried to run it. No errors or
anything but again no page is loading. The default page is fully blank. (I dont
know why) I checked that Tomcat is running. Then I gave up.

   Windows somehow able to operate normally from Tomcat residing at P_FAT32
partition. 

   My question is, is it possible to put only webapps on P_FAT32 while tomcat
install files are in P_NTFS and P_RES and configured tomcat to read P_FAT32
webapps directory as appbase in host node of server.xml? Have anyone done
anything like this before? Only thing I am confused of end of line character
since it is different in windows and linux for any file. I mean can it work? I 
am
going to try it but if anyone had done something like this, please guide me.

   Thanks in advance.


Regards,
D



__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



Re: Query - Creation of a directory with special characters - _!':!bwt!#4!a!w!#4!bw2 on HP-UX by Tomcat

2005-11-16 Thread Mark Thomas

Sandeep G R wrote:

Hi,
I have Tomcat 5.0 running on HP-UX. Under /.java/.userPrefs directory, a
directory with special characters *_!':!bwt!#4!a!w!#4!bw2* is created. I
suspect Tomcat is creating this dir. Does anyone have information whether
this directory is created by Tomcat?

Thanks,
Sandeep

It is not created explicitly. The files Tomcat does create, are always 
inthe Tomcat install directory. It might be a side-effect of the JVM 
or one of the libs we use but it isn't something I have seen before.


Mark


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



can't get #include to work

2005-11-16 Thread gbaynham
I'm trying to include a file as my footer section.  I have formatted the 
section in home.html as:

!--#include file=footer.html--

after doing this and viewing the file through my local_host:8080 i don't see 
the footer.html file showing up.

from what I can see I need to enable SSI within tomcat.  I'm supposed to add 

Options +Includes

to my  httpd.conf or .htaccess file.  the problem is I don't ahve eitehr of 
these files.  I created a httpd.conf file and put it in my conf folder, but it 
still doesn't show up.  is there another setting I'm missing?

I'm running tomcat 5.5.9 on a windows XP box, I know, shame on me but it's all 
I have right now.

thanks in advance

GRB


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



stress test on tomcat

2005-11-16 Thread William Mok
Hi,

I have tomcat running on top of apache. I am running some stress test and I got 
the following problem:
I have 1000 threads running for the stresstest. It is very obvious an 
overloading problem.
Is there anything I can tune in apache or tomcat to get rid of the overloading 
problem?

-
16-Nov-2005 2:44:30 PM org.apache.jk.common.ChannelSocket acceptConnections
WARNING: Exception executing accept
java.net.SocketException: Too many open files

William

Tomcat overwrites error response body

2005-11-16 Thread Anurag Chakravarti
Hi,

Tomcat sends back a default error HTML page, even when I don't want it
to. I want my servlet to send its own error response body. I am doing
the following in my servlet doPut method.

java.io.PrintWriter pr = resp.getWriter();
pr.println(e.getErrorCode().serialize());
resp.sendError(e.getCode());

This does not work. Tomcat sends me a HTML page which I don't want.
What am I missing here.

Thanks
-Anurag

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



Re: can't get #include to work

2005-11-16 Thread gbaynham
Thanks Mark,  I made the changes to the conf/web.xml.  after doing that, 
however, I still can't get any of the SSI scripts to run.


any other help would be appreciated.

thanks,

GRB

- Original Message - 
From: Mark Thomas [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, November 16, 2005 2:56 PM
Subject: Re: can't get #include to work



[EMAIL PROTECTED] wrote:
I'm trying to include a file as my footer section.  I have formatted the 
section in home.html as:


!--#include file=footer.html--

after doing this and viewing the file through my local_host:8080 i don't 
see the footer.html file showing up.


from what I can see I need to enable SSI within tomcat.  I'm supposed to 
add Options +Includes

to my  httpd.conf or .htaccess file.

This is to install SSI for the Apache web server (httpd).

I'm running tomcat 5.5.9 on a windows XP box, I know, shame on me but 
it's all I have right now.
You need to uncomment the SSI servlet definition AND mapping in the 
conf/web.xml file


It sounds like you need to read the Tomcat documentation. The SSI how to 
would be a good place to start.


http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html

mark


-
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: Sharing webapps between linux and windows on single computer

2005-11-16 Thread Nikola Milutinovic

Dhaval Patel wrote:


  My question is, is it possible to put only webapps on P_FAT32 while tomcat
install files are in P_NTFS and P_RES and configured tomcat to read P_FAT32
webapps directory as appbase in host node of server.xml? Have anyone done
anything like this before? Only thing I am confused of end of line character
since it is different in windows and linux for any file. I mean can it work? I 
am
going to try it but if anyone had done something like this, please guide me.
 



Of course. For each VirtualHost in TC (including localhost), you can 
define appBase directory. Just let it point to your P_FAT32.


Nix.

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