creating html files within an web application? write access?

2006-01-19 Thread SOA Work


Hi there,

I'm a developer new to web programming. I'm using tomcat 5.x to deploy my 
applications.

Now I have an web application using an other application to generate some html 
files and necessary folders.
I would like to use my web application to automatically create the files, so a 
user knowing the url can view the generated html files.

1) Is it possible to execute a java programm within an web application (calling 
the main method)

2) Am I allowed to write files in my web application?

3) Can I configure tomcat to allow this?

Would be nice if someone can help me out here.

Dominik

p.s.: I think i can write at least to the temp directory, am I right? If no 
writing in the web app directory is allowed I could at last generate the files 
in temp directory and write them to my database?
__
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130


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



writing files with a web application

2006-01-23 Thread SOA Work

Hi,

I'm working on a web application using tomcal 5.x as servlet engine.
Now i have to use another java tool for generating some html files. 
I would like to call the main method in my java code. 

My question is now:

1.) am I allowed to call main methods or programms in my web applicatio?

2.) am I allowed to write files on the disk from within an web application? If 
I am, something went wrong while trieing ;-)
Can i write anywhere or have I to write to my application dir or to temp dir or 
something.

thx
Dominik
__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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



is there a possibility to define the startup order for webapps?

2006-04-24 Thread SOA Work

Hi there,

I'm currenttly using tomcat 5.x for running my webapps. Now I have the 
following problem:

I'm using an database system which runs as webapplication inside tomcat.
Another webapplication needs the database connection for startup. 
Everytime I restart tomcat the server doesn't get up, because the second webapp 
ist started before the database webapp. 

Is there a way to define the startup order of the webapplications deployed on a 
server? 
With wich system does tomcat choose the apps while startup? Could it be a 
possibility to rename the folder of the webapps?

thx 
Dominik 
___
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


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



Re: is there a possibility to define the startup order for webapps?

2006-04-24 Thread SOA Work

argh. annoying.
ok. thx anyway.

> -Ursprüngliche Nachricht-
> Von: "Tomcat Users List" 
> Gesendet: 24.04.06 17:57:49
> An: "Tomcat Users List" 
> Betreff: Re: is there a possibility to define the startup order for webapps?


> A couple of other ideas:
> 
> Use a small shared class (in shared/lib) to keep track of whether the
> database is running. The first webapp notifies this class when it's
> ready, and the second webapp checks if the database is ready before
> using it.
> 
> Or, just accept that database errors will occur during startup. This
> is not a bad solution. From a user's point of view, when the server is
> down all requests will return some kind of error, until the server is
> back up and running. The only thing you can hope to gain is a better
> error message for a few seconds during startup.
> --
> Len
> 
> 
> On 4/24/06, David Smith <[EMAIL PROTECTED]> wrote:
> > This question comes up every so often and the answer is always no. The
> > webapp load order cannot be relied upon. In your case, might I suggest
> > the database webapp be run on a separate instance of tomcat?  Can the
> > connection be done via TCP/IP?
> >
> >  --David
> >
> > SOA Work wrote:
> > > Hi there,
> > >
> > > I'm currenttly using tomcat 5.x for running my webapps. Now I have the 
> > > following problem:
> > >
> > > I'm using an database system which runs as webapplication inside tomcat.
> > > Another webapplication needs the database connection for startup.
> > > Everytime I restart tomcat the server doesn't get up, because the second 
> > > webapp ist started before the database webapp.
> > >
> > > Is there a way to define the startup order of the webapplications 
> > > deployed on a server?
> > > With wich system does tomcat choose the apps while startup? Could it be a 
> > > possibility to rename the folder of the webapps?
> > >
> > > thx
> > > Dominik
> > > ___
> > > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
> > > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > David Smith
> > Network Operations Supervisor
> > Department of Entomology
> > Cornell University
> > 2132 Comstock Hall
> > Ithaca, NY 14853
> > Phone: (607) 255-9571
> > Fax: (607) 255-0940
> >
> >
> > -
> > 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]
> 


___
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


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