You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Anthony E. Carlos" <an...@digitalphenom.com> on 2004/10/22 19:24:00 UTC

[Somewhat OT] Content vs. Programming

Hello, folks!

Based on my readings, it seems that most people running Tomcat on 
dedicated boxes. Unfortunately, I'm in a shared environment running 
multiple instances of Tomcat, one for each client. My problem is that 
some clients like to update their own static content via ftp, while 
letting me, the programmer, handle the more complex stuff.

What stinks is that if they ftp content to the server, then I've got to 
merge their new and changed stuff into my development box because when 
I deploy my war file (I'm developing in a separate environment), it 
overwrites all of their stuff.

My content providers aren't technically savvy, so I can't expect them 
to learn to use CVS. They're probably using some GUI program like 
Dreamweaver to create their pages. Does anyone have a suggestion to 
help streamline the battle of content providers versus programmers?

I've thought of having them upload to a alternate directory and then 
running some ant script to copy new and changed files into the Tomcat 
directories, but that still won't help with the merging process. To 
make things even more complicated, and we're also using Tiles so my 
content providers have to ask me to add entries into struts-config.xml 
and tiles-defs.xml when they create a new page.

Is anyone else dealing with this kind of inefficiency, or do you all 
work with just other programmers?

Thanks for your opinions,

-Anthony Carlos


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: [Somewhat OT] Content vs. Programming

Posted by er...@swapsimple.com.
On Fri, Oct 22, 2004 at 01:24:00PM -0400, Anthony E. Carlos wrote:
> I've thought of having them upload to a alternate directory and then 
> running some ant script to copy new and changed files into the Tomcat 
> directories, but that still won't help with the merging process. To 
> make things even more complicated, and we're also using Tiles so my 
> content providers have to ask me to add entries into struts-config.xml 
> and tiles-defs.xml when they create a new page.

	Sounds like you need to impose some structure on how your clients
upload things.  Since you have more than one person/group of people
working on the same stuff _someone_ needs to do the merging, but there's
no reason to do it by hand.  Since you're using CVS, let CVS do some
of the work for you.

	1: Have your clients upload to a checked out copy of your sources
	   This assumes your source layout and your installed layout are
	   fairly similar.  This can be made easier if you declare that
	   all of their stuff needs to go in some subdirectory that
	   maps to the installed layout in a well define manner.
	2: To satisfy their immediate update requirement, write a script that
	  watches for new files and copies them to the webapps directory when
	  they appear.
	3: Before you install a new war file, go into the upload directory,
	  run an update, merge changes, check in those changes.  Then re-update
	  your development box and rebuild.  If you define a branch for the
	  client upload changes you can import each of their changes to the
	  branch and then do all of your merging work on your development
	  box.  In fact, you could even automate the checkin using the afore
	  mentioned script.  Branches are extremely useful for things like this.

eric

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: [Somewhat OT] Content vs. Programming

Posted by Michael McGrady <mi...@michaelmcgrady.com>.
You must be saying that you are using an instance of Tomcat and that 
your "content providers" are putting pages into your application in that 
instance.  If so, since you are only in development, why don't you forgo 
the war file and just bounce your application with manager to catch the 
differences?

Michael McGrady

Anthony E. Carlos wrote:

> Hello, folks!
>
> Based on my readings, it seems that most people running Tomcat on 
> dedicated boxes. Unfortunately, I'm in a shared environment running 
> multiple instances of Tomcat, one for each client. My problem is that 
> some clients like to update their own static content via ftp, while 
> letting me, the programmer, handle the more complex stuff.
>
> What stinks is that if they ftp content to the server, then I've got 
> to merge their new and changed stuff into my development box because 
> when I deploy my war file (I'm developing in a separate environment), 
> it overwrites all of their stuff.
>
> My content providers aren't technically savvy, so I can't expect them 
> to learn to use CVS. They're probably using some GUI program like 
> Dreamweaver to create their pages. Does anyone have a suggestion to 
> help streamline the battle of content providers versus programmers?
>
> I've thought of having them upload to a alternate directory and then 
> running some ant script to copy new and changed files into the Tomcat 
> directories, but that still won't help with the merging process. To 
> make things even more complicated, and we're also using Tiles so my 
> content providers have to ask me to add entries into struts-config.xml 
> and tiles-defs.xml when they create a new page.
>
> Is anyone else dealing with this kind of inefficiency, or do you all 
> work with just other programmers?
> m
> Thanks for your opinions,
>
> -Anthony Carlos
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: [Somewhat OT] Content vs. Programming

Posted by Robert Koberg <ro...@koberg.com>.
Anthony E. Carlos wrote:

> Hello, folks!
> 
> Based on my readings, it seems that most people running Tomcat on 
> dedicated boxes. Unfortunately, I'm in a shared environment running 
> multiple instances of Tomcat, one for each client. My problem is that 
> some clients like to update their own static content via ftp, while 
> letting me, the programmer, handle the more complex stuff.
> 
> What stinks is that if they ftp content to the server, then I've got to 
> merge their new and changed stuff into my development box because when I 
> deploy my war file (I'm developing in a separate environment), it 
> overwrites all of their stuff.
> 
> My content providers aren't technically savvy, so I can't expect them to 
> learn to use CVS. They're probably using some GUI program like 
> Dreamweaver to create their pages. Does anyone have a suggestion to help 
> streamline the battle of content providers versus programmers?
> 
> I've thought of having them upload to a alternate directory and then 
> running some ant script to copy new and changed files into the Tomcat 
> directories, but that still won't help with the merging process. To make 
> things even more complicated, and we're also using Tiles so my content 
> providers have to ask me to add entries into struts-config.xml and 
> tiles-defs.xml when they create a new page.
> 
> Is anyone else dealing with this kind of inefficiency, or do you all 
> work with just other programmers?

Don't war it and update the server with your changes via cvs. Then you 
can check if there are updates on the server, if so commit them and then 
update locally.

best,
-Rob


> 
> Thanks for your opinions,
> 
> -Anthony Carlos
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


testing my account please ignore.

Posted by Wade Chandler <wc...@redesetgrow.com>.
Testing my account.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: How to save files being download

Posted by Steve Kirk <to...@web-startup.co.uk>.
More info here
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/default-servlet.html#secure
which refers to the servlet spec, which is here
http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html


> -----Original Message-----
> From: vivek gupta [mailto:gvivekkumar@yahoo.com] 
> Sent: Friday 22 October 2004 19:07
> To: Tomcat Users List
> Subject: How to save files being download
> 
> 
> Hi Folks,
>           I am testing my website at web hosting
> company which is using tomcat. I can see my
> application running if I type www.abc.com/root/.
> 
> But my problem is if I put 
> 
> www.abc.com/root/jsp it show all my jsps which lying
> in jsp directory and let any one to download my file.
> I tested any my localhost to and it works same. 
> 
> Any one know how to prevent it. What setting needs to
> change so that if user types 
> www.abc.com/root/jsp
> 
> he get unauthorised access or page can not be
> displayed kind message.
> 
> Thanks in advance
> Vivek
> 
> 
> 		
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


How to save files being download

Posted by vivek gupta <gv...@yahoo.com>.
Hi Folks,
          I am testing my website at web hosting
company which is using tomcat. I can see my
application running if I type www.abc.com/root/.

But my problem is if I put 

www.abc.com/root/jsp it show all my jsps which lying
in jsp directory and let any one to download my file.
I tested any my localhost to and it works same. 

Any one know how to prevent it. What setting needs to
change so that if user types 
www.abc.com/root/jsp

he get unauthorised access or page can not be
displayed kind message.

Thanks in advance
Vivek


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: [Somewhat OT] Content vs. Programming

Posted by Steve Kirk <to...@web-startup.co.uk>.
Sounds like it's a case where using a war file is causing the problem.  I
would drop the war files altogether and just distribute their contents.
That way you can distribute just the bits of the webapp that you have
changed.  Sounds to me like you own the JSP/servlet/config files and they
own the static files.  So they can just ftp the files to the server, and you
copy them to your machine when you need to, but you only ftp back up the
files that you own.

Or another approach is to put all static content in a webserver directory
that is not part of the webapp.  That way it won't be in the war file.  I
know this somewhat defeats the object of a warfile, but you have a situation
here where a compromise is required.

> -----Original Message-----
> From: Anthony E. Carlos [mailto:anthony@digitalphenom.com] 
> Sent: Friday 22 October 2004 18:24
> To: 'Tomcat Users List'
> Subject: [Somewhat OT] Content vs. Programming
> 
> 
> Hello, folks!
> 
> Based on my readings, it seems that most people running Tomcat on 
> dedicated boxes. Unfortunately, I'm in a shared environment running 
> multiple instances of Tomcat, one for each client. My problem is that 
> some clients like to update their own static content via ftp, while 
> letting me, the programmer, handle the more complex stuff.
> 
> What stinks is that if they ftp content to the server, then 
> I've got to 
> merge their new and changed stuff into my development box 
> because when 
> I deploy my war file (I'm developing in a separate environment), it 
> overwrites all of their stuff.
> 
> My content providers aren't technically savvy, so I can't expect them 
> to learn to use CVS. They're probably using some GUI program like 
> Dreamweaver to create their pages. Does anyone have a suggestion to 
> help streamline the battle of content providers versus programmers?
> 
> I've thought of having them upload to a alternate directory and then 
> running some ant script to copy new and changed files into the Tomcat 
> directories, but that still won't help with the merging process. To 
> make things even more complicated, and we're also using Tiles so my 
> content providers have to ask me to add entries into 
> struts-config.xml 
> and tiles-defs.xml when they create a new page.
> 
> Is anyone else dealing with this kind of inefficiency, or do you all 
> work with just other programmers?
> 
> Thanks for your opinions,
> 
> -Anthony Carlos
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org