Tomcat9, JSP, CSS and JS not loading in Firefox

2020-01-15 Thread Léa Massiot
Hello, My question is about loading a JSP page in Firefox (or Google Chrome) and not having the CSS loaded and the JS operational. I am using Tomcat v9.0 and Eclipse Java EE IDE v.2019-12 (4.14.0). When I'm developing using Eclipse IDE, I usually: - select a JSP in the "WebContent" directory in t

Re: ClassNotFoundException - Involving a class implementing Filter and two projects depending on another one

2015-03-30 Thread Léa Massiot
On 3/30/2015 2:36 AM, Tim Watts-3 [via Tomcat] wrote: > On Sun, 2015-03-29 at 12:56 -0400, Tim Watts wrote: > > > On Sun, 2015-03-29 at 18:06 +0200, Lmhelp1 wrote: > > > On 3/29/2015 5:36 PM, André Warnier [via Tomcat] wrote: > > > > Lmhelp1 wrote: > > > > > > > > > Hello, > > > > > > > > > > Tha

Re: Debugging a Webapp in Eclipse running Tomcat as a stand-alone JVM process

2014-11-24 Thread Léa Massiot
Thank you for yours answers. @Glen Peterson: Thanks for sharing about the method you use. Best regards. -- View this message in context: http://tomcat.10.x6.nabble.com/Debugging-a-Webapp-in-Eclipse-running-Tomcat-as-a-stand-alone-JVM-process-tp5025598p5025883.html Sent from the Tomcat - User m

Re: Debugging a Webapp in Eclipse running Tomcat as a stand-alone JVM process

2014-11-20 Thread Léa Massiot
Thank you for your answers. @MarkEggers Thank you very much for sharing. > Christopher Schultz wrote > There are reasons to use jsvc, but the ability to run as a non-root uses > is not one of them. What are these reasons according to you (apart from running Tomcat as a daemon on Unix which was a

Re: Debugging a Webapp in Eclipse running Tomcat as a stand-alone JVM process

2014-11-20 Thread Léa Massiot
Thank you for your answer. > Konstantin Kolinko wrote: > Why do you need the ports to be 80 and 443? (You cannot open those on > Linux unless you are a root). > You can > a) change the port numbers in your configuration > b) use firewall (iptables) to map different local ports to those external >

Re: Debugging a Webapp in Eclipse running Tomcat as a stand-alone JVM process

2014-11-20 Thread Léa Massiot
Thank you for your answer. > Konstantin Kolinko wrote: > Deployment can be done from Ant or from Maven. There exists tools for > that. Ok, I understand. > Konstantin Kolinko wrote: > If you are developing your web application, is there a reason why you > run Tomcat standalone and not from withi

Re: Debugging a Webapp in Eclipse running Tomcat as a stand-alone JVM process

2014-11-19 Thread Léa Massiot
Thank you for your answer. Your link helped. What was missing from the scenario I described previously was: exporting the .war of the webapps into the Tomcat "webapps" directory. Actually, I was hoping it would be done automatically "somehow"... :'/ Is there - by any chance - an option "somewhere

Debugging a Webapp in Eclipse running Tomcat as a stand-alone JVM process

2014-11-19 Thread Léa Massiot
Hello and thank you for reading my post. My problem is about debugging a Webapp in Eclipse running Tomcat as a stand-alone JVM process. -- In more details -- Below is what I would like to do: - Start Tomcat: - on Windows: via "startup.bat" in a "cmd.exe" ; - on Unix (Debian Squeeze): via "JSV

Re: From HTTP to HTTPS request.getHeader("referer")

2014-11-06 Thread Léa Massiot
Hello and thank you for your answers. I would like to say that my problem is solved (even though I would like to answer the remarks you made). I can't really tell what combination of adjustments (see my previous posts) are responsible for it. I just did things with more care than when I do things

Re: From HTTP to HTTPS request.getHeader("referer")

2014-11-04 Thread Léa Massiot
Hi, > Christopher Schultz wrote: > If you want to switch protocols I don't think I want that... but maybe I do not understand properly what you mean... For the webapp I've been considering in that thread, I would like Tomcat to serve pages only via HTTPS. I do not want some pages to be served via

Re: From HTTP to HTTPS request.getHeader("referer")

2014-11-03 Thread Léa Massiot
Hi, thank you for your answer. > On 2014-11-03 4:34 PM, Christopher Schultz wrote: > Redirects definitely work with HTTPS. You must be doing something > wrong. Perhaps a configuration mistake with a port number or something > like that. My configuration in Tomcat 7.0.55 "server.xml" is: ( - basic

Re: From HTTP to HTTPS request.getHeader("referer")

2014-11-02 Thread Léa Massiot
Hi again. It looks like "sendRedirect()" is working if I pass it a HTTPS URL as an argument: - String s_prov = request.getScheme() + "://" + request.getServerName() + request.getContextPath() + "/" + "example1.jsp"; respo

Re: From HTTP to HTTPS request.getHeader("referer")

2014-11-02 Thread Léa Massiot
Léa Massiot wrote > Before I tried to make the webapp work with HTTPS, I was always using > calls like these: > -- > response.sendRedirect(&

Re: From HTTP to HTTPS request.getHeader("referer")

2014-11-02 Thread Léa Massiot
Hello Mark, Chris and Terence. Thank you for your answers. After reading them and observing a few things I realized that my problem is not exactly the one I described at first. Christopher Schultz-2 wrote > The Referer is going to be the URL that was showing in the web browser > when the user cli

From HTTP to HTTPS request.getHeader("referer")

2014-10-31 Thread Léa Massiot
Hello and thank you for reading my post. I'm trying to make a webapp work with HTTPS. It was working properly with HTTP. Below is the problem I have. Inside a servlet, in its "doPost()" method, to check whether the "incoming JSP" is "example1.jsp" or "example2.jsp", I am using the following piec

Re: HTTPS / URLs with no port number / Tomcat only

2014-10-28 Thread Léa Massiot
Christopher Schultz-2 wrote > A bit of warning: when modifying iptables, you need to be very careful > that you don't wipe-out any rules that allow you to gain remote access > to the server. For instance, if you have a default rule to DROP all > packets and an exception that allows port 22 (ssh) tr

Re: HTTPS / URLs with no port number / Tomcat only

2014-10-27 Thread Léa Massiot
Thank you for you answer. It was the firewall. I thought about it and I thought I was disabling it temporarily by flushing iptables (iptables -F). But apparently it's not enough... Do you know the command for disabling the firewall completely (and temporarily) without having to reboot? I just add

Re: HTTPS / URLs with no port number / Tomcat only

2014-10-27 Thread Léa Massiot
Hello and thank you for your answer. I followed your first advice. I edited "server.xml" ending up with the following connectors: --- --

HTTPS / URLs with no port number / Tomcat only

2014-10-26 Thread Léa Massiot
Hello and thank you for reading my post. I was willing to run only a Tomcat server and not a Tomcat server + an Apache HTTP server. Mostly because: - an article like this one: http://www.tomcatexpert.com/blog/2011/11/02/best-practices-securing-apache-tomcat-7 says, if I understand properly, that

Re: How can Tomcat be started at boot time as a non-root user

2014-10-15 Thread Léa Massiot
Thank you George Sexton for your explanations. Best regards to you all. -- View this message in context: http://tomcat.10.x6.nabble.com/How-can-Tomcat-be-started-at-boot-time-as-a-non-root-user-tp5023810p5023899.html Sent from the Tomcat - User mailing list archive at Nabble.com. -

Re: How can Tomcat be started at boot time as a non-root user

2014-10-14 Thread Léa Massiot
Hello Dan and thank you for your answer. I installed the JSVC tool as indicated in your document http://tomcat.apache.org/tomcat-7.0-doc/setup.html#Unix_daemon I copied the "jsvc" executable into "/opt/tomcat7/bin/". I also copied "/opt/tomcat7/bin/daemon.sh" into "/etc/init.d" and renamed it as

How can Tomcat be started at boot time as a non-root user

2014-10-14 Thread Léa Massiot
Hello and thank you for reading my post. My question is about how can Tomcat be started at boot time as a non-root user. The OS is Debian Wheezy. Below is what I did already: root> chown -R tomcat7.tomcat7 /opt/tomcat7/ I created a new file: "/etc/init.d/tomcat7" Owner and owner group: root Pe

Re: File download using a servlet and error handling

2014-09-26 Thread Léa Massiot
Ok guys, thank you all: I understand better. I'll see what I can do. Best regards. -- View this message in context: http://tomcat.10.x6.nabble.com/File-download-using-a-servlet-and-error-handling-tp5023017p5023118.html Sent from the Tomcat - User mailing list archive at Nabble.com. ---

Re: File download using a servlet and error handling

2014-09-25 Thread Léa Massiot
Hello to you too, I was thinking maybe about an "error-page"... (never done that before): in case an exception is thrown after the response "has been committed", maybe this error page could be sent to the user... I don't know if it's possible... nor how to do it really. Could it be a solution? Be

File download using a servlet and error handling

2014-09-25 Thread Léa Massiot
Hello and thank you for reading my post. My question is about downloading a file using a servlet and handling possible errors that may take place during the download process. 1) I have a JSP page "download-file.jsp" with a "Download file" button: ==

Re: Lots of configuration descriptors

2014-09-24 Thread Léa Massiot
Ok. Sorry. Very good, I didn't know... I'm just a simple Tomcat user. I didn't mind to be rude. -- View this message in context: http://tomcat.10.x6.nabble.com/Lots-of-configuration-descriptors-tp5022940p5022954.html Sent from the Tomcat - User mailing list archive at Nabble.com. -

Re: Lots of configuration descriptors

2014-09-24 Thread Léa Massiot
Hello Mark, Thank you for your answer and for the info about the binary search. This was the kind of info I was looking for. Yet, I guess one has to view the source code to get that kind of information... it's probably what you did... Best regards. -- View this message in context: http://tomc

Lots of configuration descriptors

2014-09-24 Thread Léa Massiot
Hello and thank you for reading my post. My question is about configuration descriptors and how Tomcat deals with a lot of them. I have been thinking about a solution for a problem I have to solve. This solution would involve the creation of possibly a lot of configuration descriptors. -- About

Re: Tomcat-user versus StackOverflow

2014-03-14 Thread Léa Massiot
uot; for while. I was in hurry and thought by mistake that the forum was dead. It wasn't meant on purpose. I guess I could delete my thread on "StackOverflow" and thank you again for your answers both on "StackOverflow" and "Tomcat-Users"? Best regards, -- Léa Massiot

RE: Pass an object from one Webapp to another on two differents servers

2012-09-03 Thread Léa Massiot
Hello Casper. Yes, we are ok now. I think the responses to your question are in my previous posts :) Thank you for helping me out. -- View this message in context: http://tomcat.10.n6.nabble.com/Pass-an-object-from-one-Webapp-to-another-on-two-differents-servers-tp4985870p4986207.html Sent f

Re: Pass an object from one Webapp to another on two differents servers

2012-09-03 Thread Léa Massiot
According to the notations in my first post, the successive URLs are: 1) SERVER_1/WEBAPP_1/HTML_1 2) SERVER_2/WEBAPP_2/SERVLET_2 3) SERVER_1/WEBAPP_1/JSP_1 "SERVLET_2" does all the work it has to do using the information provided by the user in the "HTML_1"'s form "F1". When the work is over, "SER

Re: Pass an object from one Webapp to another on two differents servers

2012-08-31 Thread Léa Massiot
The user doesn't shift from "WEBAPP_1" to "WEBAPP_2" for good. The user will go on with "WEBAPP_1" after "WEBAPP_2" has done what it has to do after the form ("F1") submission. Best regards. -- View this message in context: http://tomcat.10.n6.nabble.com/Pass-an-object-from-one-Webapp-to-anoth

Re: Pass an object from one Webapp to another on two differents servers

2012-08-31 Thread Léa Massiot
(Warning: there is some "raw text" in this post.) Hello Casper. Hello list. Thank you for your answer and your advices. Here is some interesting litterature related to my problem: "Redirecting from a servlet to an exterior URL using a POST" http://www.mail-archive.com/servlet-interes

Re: Pass an object from one Webapp to another on two differents servers

2012-08-30 Thread Léa Massiot
Hello Casper, Thank you for your answer. What you are explaining totally makes sense. The "doPost()" method of "SERVLET_2" ("WEBAPP_2") ends up with a "sendRedirect()" method call which redirects to "j1.jsp", a JSP in the first webapp ("WEBAPP_1"). Let's forget about sessions and passing whole o

Re: Pass an object from one Webapp to another on two differents servers

2012-08-29 Thread Léa Massiot
I posted mistakenly in the "Tomcat" forum instead of here "Tomcat-User" (I just moved my thread). Can you help me? Best regards. -- View this message in context: http://tomcat.10.n6.nabble.com/Pass-an-object-from-one-Webapp-to-another-on-two-differents-servers-tp4985870p4985967.html Sent from t

Re: Tomcat6 - Context - aliases

2012-04-10 Thread Léa Massiot
@André Warnier: Thank you. -- View this message in context: http://tomcat.10.n6.nabble.com/Tomcat6-Context-aliases-tp4678430p4762217.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: Tomcat6 - Context - aliases

2012-04-10 Thread Léa Massiot
Hello and thank you for your answers. Christopher Schultz-2 wrote > why don't you just write a simple file-fetching servlet? They are > dead-simple to write This looks very interesting. André Warnier wrote > you probably do /not/ want bots to be able to point directly to the > documents upload

Re: Tomcat6 - Context - aliases

2012-04-09 Thread Léa Massiot
I edited my previous post at 1:14 PM 2012/04/09. Thanks. -- View this message in context: http://tomcat.10.n6.nabble.com/Tomcat6-Context-aliases-tp4678430p4715649.html Sent from the Tomcat - User mailing list archive at Nabble.com.

Re: Tomcat6 - Context - aliases

2012-04-09 Thread Léa Massiot
@André Warnier: Thank you for your detailed answer. As of your objections: 1) We don't agree with each other. I *DO* care about what URLs look like: a) in general, b) for some reasons related to the user's speaking language, c) for search engines, d) ... The URL of a link can be seen in many ci

Re: Accessing USB drive content from pages served from tomcat6 server

2012-04-06 Thread Léa Massiot
Hello Souvik, BTW, it's not Konstantin who had a problem but me. Try this: 1) Create a "usb_1.xml" file in "/etc/tomcat6/Catalina/localhost/" (the OS being Debian Squeeze) with the following contents: < Context docBase="/media/WCF/usb_1" / > (Think about removing the extra spaces I added above)

Re: Tomcat6 - Context - aliases

2012-04-06 Thread Léa Massiot
Christopher Schultz-2 wrote > Do you really need crossContext="true" here? I guess not since - as I just tested - removing it doesn't change anything... Thank you. So I removed the "crossContext" attribute (and the "path" attribute) and the new contents of "an_alias_1.xml" are: -

Re: Tomcat6 - Context - aliases

2012-04-05 Thread Léa Massiot
Konstantin Kolinko wrote > > You should remove the path attribute when Context is defined in an XML > file. > The name of the xml file itself specifies the path, not the attribute. > Indeed. Thank you. Best regards. -- View this message in context: http://tomcat.10.n6.nabble.com/Tomcat6-Contex

Re: Tomcat6 - Context - aliases

2012-04-04 Thread Léa Massiot
Ok. So, I found a solution, if I can call that a solution. - I created a file "an_alias_1.xml" in "/etc/tomcat6/Catalina/localhost/" (the OS being Debian Squeeze). - Here are the contents of this "an_alias_1.xml" file: < Context path="/an_alias_1" docBase="/home/d1" crossContext="true" / > - Thi

Re: Tomcat6 - Context - aliases

2012-04-04 Thread Léa Massiot
Hello André, André Warnier wrote > > - you need to tell your webapp where the uploaded files should be > stored/retrieved > - you cannot do it via an "alias" under Tomcat < v7 > Exactly. André Warnier wrote > > - so instead of an alias, do it via a property in a properties file, which > yo

Re: Tomcat6 - Context - aliases

2012-04-03 Thread Léa Massiot
Thank you all three for your last answers. André Warnier wrote > this might help, in a container- and version-independent way : > http://jaitechwriteups.blogspot.de/2007/01/how-to-read-properties-file-in-web.html I'm sorry, no offence... but I don't see how... :/ Pid * wrote > Please define 'in

Re: Tomcat6 - Context - aliases

2012-04-02 Thread Léa Massiot
Pid * wrote > Either they did not, or they selected an alternative based on their > use-case. I'm sure they did. You'll see below, my requirements are basic. Pid * wrote > What is your exact requirement? - Users upload files to the server running Tomcat. - The Webapp stores these file on the ha

Re: Tomcat6 - Context - aliases

2012-04-02 Thread Léa Massiot
Thank you for your advice. And how did people do to declare aliases before the "aliases" attribute of the "Context" element was introduced in "Tomcat7"? -- View this message in context: http://tomcat.10.n6.nabble.com/Tomcat6-Context-aliases-tp4678430p4679060.html Sent from the Tomcat - User mail

Re: Tomcat6 - Context - aliases

2012-04-02 Thread Léa Massiot
Hello, Thank you for your answers. Teppei Yamada wrote > 1. What version of Tomcat7 did you test? On a Windows XP machine: Tomcat 7.0.20 On a Debian Squeeze machine: Tomcat 7.0.22 Teppei Yamada wrote > 2. Where do you place context.xml in Tomcat6? > I don't know you are aware that context.xml

Tomcat6 - Context - aliases

2012-04-02 Thread Léa Massiot
Hello, I've been struggling lately with the "aliases" attribute of the "Context" element of the "context.xml" file. I tested a Webapp with "Tomcat7" and it appears to work properly. As a "Debian" user, "Tomcat7" is not yet packaged in the current stable release "Squeeze" so I installed "Tomcat6" i

Re: Session expiration - browser -Web application

2011-11-08 Thread Léa Massiot
@Terence : Thank you for your answer. Actually, I extracted the Java code from the JSP and put it in a TLD so that the code is cleaner and more manageable. Best regards, -- Léa -- View this message in context: http://old.nabble.com/Session-expiration---browser--Web-application-tp32780678p3280414

Re: Session expiration - browser -Web application

2011-11-04 Thread Léa Massiot
Héhé. No comment. Have a good week-end and cheers, -- Léa -- View this message in context: http://old.nabble.com/Session-expiration---browser--Web-application-tp32780678p32783180.html Sent from the Tomcat - User mailing list archive at Nabble.com. --

Re: Session expiration - browser -Web application

2011-11-04 Thread Léa Massiot
@Christopher : Thank you for your answer. Christopher wrote: > > The new session created is completely empty. It has nothing to do with the > user going back in the history, etc. > No, you are right. What I meant is that I was/am managing session expiration inside the Webapp (for instance if the

Re: Session expiration - browser -Web application

2011-11-04 Thread Léa Massiot
@Tim : Thank you for your answer. > [Tim wrote:] "Uncertain" is a bit vague. Yes. Ok. This is my understanding which is "uncertain" then. What happens is what you wrote: "a new session for the user with _none_ of the objects from the old session in it". > [Tim wrote:] If every page in the web ap

Session expiration - browser -Web application

2011-11-04 Thread Léa Massiot
Hello, Thank you for reading my post. Maybe my question is not purely related to "Tomcat" but here is my problem: - a user logs into my Webapp; - his session expires; - if he: - presses the F5 key (browser refresh functionality), - goes back to the previous screen using the browser "

Re: Compile, build and prepare Webapp for Tomcat in command line

2011-11-01 Thread Léa Massiot
@Christopher : Thank you for your answer. I wouldn't mind using "Maven" instead of "Ant"... yet it doesn't look like I can a find a nice and simple (hello world) example to get started with it (like the one I found for "Ant", cf. the link in my previous post)... Actually, I managed to build my We

Re: Compile, build and prepare Webapp for Tomcat in command line

2011-10-31 Thread Léa Massiot
@Jürgen : Thank you for advising me to use Maven. @Tim : Thank you for advising me to use Ant. I have been following the following tutorial to get introduced to Ant: http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html I think it's a good one. Now, I am going to have to do something simil

Compile, build and prepare Webapp for Tomcat in command line

2011-10-31 Thread Léa Massiot
Hello, Thank you for reading my post. I am presently programming my Webapps inside "Eclipse". I would like to automate the compiling and building of my source code. I need to know which "javac", "java" (and maybe "jar") commands I should run from a console to generate everything that is needed f

Re: WebApp access to a LAN share

2011-10-19 Thread Léa Massiot
Hello again. @awarnier and others. It worked! Thanks. I just want to add that I had to install the "smbfs" package to be able to mount Windows shares: > apt-get install smbfs Best regards, -- Léa -- View this message in context: http://old.nabble.com/WebApp-access-to-a-LAN-share-tp32658680p326

Re: WebApp access to a LAN share

2011-10-16 Thread Léa Massiot
Hello everyone and thank you very much for your fast answers. @Brian and @Chuck I did configure the WebApp "context.xml" file to let my WebApp access files elsewhere on my hard disk (S hard disk for now). You are helpful. Thank you. @p Yeah... well, in the end, I'll have to put everything on th

WebApp access to a LAN share

2011-10-15 Thread Léa Massiot
Hello, Thank you for reading my post. Here is my problem: - I have two machines S and M on the same LAN. - S is a Debian machine running a Tomcat server. - And I have a WebApp W deployed on this Tomcat server. - M is a Windows machine which hosts some files for W. - S and M belong to the same S

Re: URL "simplification"

2011-10-13 Thread Léa Massiot
Hello and thank you for your answers. I'm sorry for my late answer but I couldn't work on that issue before. Here is what I've done in the end: (I used this document in particular: http://tomcat.apache.org/tomcat-7.0-doc/proxy-howto.html) 1) Here is what I added to "httpd.conf" (Apache configura

Re: URL "simplification"

2011-10-10 Thread Léa Massiot
Thank you all for your answers. @Mark Yes indeed fundamentally three operations... 1. I guess you can only have one ROOT WebApp not several... It's not ok for me, I have several WebApps I want to treat that way. @Francis Francis wrote: > Apache and configure a vhost with proxying That looks pr

URL "simplification"

2011-10-10 Thread Léa Massiot
Hello, Thank you for reading my post. Here is my question: - Presently, to access my WebApp first page, I have to type in the following URL in a browser: http://hostname-or-ip:8080/my-webapp/ - Instead, I wish I could type in a URL such as: http://my-webapp/ Is it possible? How? And by the way,

Re: WebApps sharing uploaded files

2011-10-05 Thread Léa Massiot
Hello. Ok. I found what I was doing wrong and corrected my mistake: added "/w1" at the beginning of the "href" attribute value. See below: 2.C) test_download.html Test download /w1/attachments/foo.txt Foo.txt Now it works! Best regards, -- Léa -- View this message in co

Re: WebApps sharing uploaded files

2011-10-05 Thread Léa Massiot
Hello. Ok. I found what I was doing wrong and corrected my mistake: added "/w1" at the beginning of the "href" attribute value. See below: 2.C) test_download.html Test download /w1/attachments/foo.txt Foo.txt Now it works! Best regards, -- Léa -- View this message in co

Re: WebApps sharing uploaded files

2011-10-05 Thread Léa Massiot
Hello. Ok. I found what I was doing wrong and corrected my mistake: added "/w1" at the beginning of the "href" attribute value. See below: 2.C) test_download.html Test download /w1/attachments/foo.txt Foo.txt Now it works! Best regards, -- Léa -- View this message in co

Re: WebApps sharing uploaded files

2011-10-05 Thread Léa Massiot
chris wrote: > > Be careful: if you undeploy the webapp, you will have all those files > deleted by Tomcat. > Ok. Thank you! André wrote: > > Thanks. Seen. Lea, do you follow ? > Yes, thanks! Ok. I do not properly understand the doc.: http://tomcat.apache.org/tomcat-7.0-doc/config/contex

Re: WebApps sharing uploaded files

2011-10-04 Thread Léa Massiot
Hello André, > Do you mean that you are going to create a new JSP for every new file > someone may ever upload? No... > Or do they always upload the same file "f.txt"? No... I understand your being puzzled... my bad: the example I posted is oversimple but it works if tested! In reality, the "

Re: WebApps sharing uploaded files

2011-10-04 Thread Léa Massiot
Hello André, > Do you mean that you are going to create a new JSP for every new file > someone may ever upload? No... > Or do they always upload the same file "f.txt"? No... I understand your being puzzled... my bad: the example I posted is oversimple but it works if tested! In reality, the "

Re: WebApps sharing uploaded files

2011-10-03 Thread Léa Massiot
Hello Tim, Ok. - I have only one copy of "f.txt". - "uf1" and "uf2" are two distinct directories, the first in "w1", the second in "w2". - I have one JSP (same code) but two copies of it, the first in "w1", the second in "w2". "f.txt" either lives under "uf1" xor "uf2". Maybe I'm not clear enough.

Re: WebApps sharing uploaded files

2011-10-03 Thread Léa Massiot
Hello, I solved my problem: 1) in WebApp "w1", upload files to the directory "w1\uf1\", 2) in WebApp "w2", upload files to the directory "w1\uf2\", 3) then you can have the same JSP "foo.jsp" for both WebApps. Put one JSP in "w1" and another one in "w2". The JSP itself contains a switch:

Re: WebApps sharing uploaded files

2011-10-03 Thread Léa Massiot
Hello André, Thank you for all these useful advices. Best regards, -- Léa -- View this message in context: http://old.nabble.com/WebApps-sharing-uploaded-files-tp32570911p32582797.html Sent from the Tomcat - User mailing list archive at Nabble.com. -

Re: WebApps sharing uploaded files

2011-10-01 Thread Léa Massiot
Hello André, Thank you for your answer. awarnier wrote: > > You can define "uf" wherever you want, as long as Tomcat (and the > applications > which run under it, like your JSPs) has write access to it. > Actually, I already noticed and tried that and my first question is closely linked to m

WebApps sharing uploaded files

2011-09-30 Thread Léa Massiot
Hello, Thank you for reading my post. o I have two WebApps "w1" and "w2" (under the Tomcat "webapps" directory). o Both "w1" and "w2" contain (at least) a JSP which allows to upload files to the server. o Presently, the uploaded files are stored: - in the "w1\uf1\" directory for "w1", - in the "