aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes recommendation for a web site architecture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "recommendation for a web site architecture" Watch "recommendation for a web site architecture" New topic
Author

recommendation for a web site architecture

Dudley Dawson
Ranch Hand

Joined: Dec 14, 2004
Posts: 57
Hi
hope this is in the right forum...

I'm tasked with building a website that performs the following basic functions:
1. Allow the user to create/modify some data in a file on the filesystem.
2. At the user's request, perform some action (transparent to the user), that may be a shell script, standalone java prog, or a shell script that executes a java program, on that file.
3. Immediately following, email the result based on parameters supplied by the user at request time.

Can anyone kind of point me in the right direction of how to do this architectually? Particularly - how should i store these files so that they are not available via http on the site, but so that the web user cannot have access tot eh rest of the system. And, what is the best way to have a web app kick off a standalone program, and be able to respond to it's result?

thanks
[ February 28, 2005: Message edited by: Dudley Dawson ]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Haven't you gone over that stuff in your class yet?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Dudley Dawson
Ranch Hand

Joined: Dec 14, 2004
Posts: 57
Originally posted by Mark Spritzler:
Haven't you gone over that stuff in your class yet?


huh?
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
I think that was a probe to see if this is homework

How you make flat files inaccessible to your HTTP server may depend on your web server or OS permissions structures. I'll let somebody else jump in there. BTW: What are your HTTP server and OS?

To run an arbitrary OS command is not trivial. Use Runtime.exec() to run another process. On Windows you have to worry about whether you need to start CMD.EXE or COMMAND.EXE or not. Set up streams to read the stdout and errout from the command or the command may hang. Any output is probably interesting anyhow.

To mail the results, I haven't used the JavaMail APIs but google for them ... they're out there and they're not too hard.

Ok, I maybe scored on one out of three. Hope that helps!


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Dudley Dawson
Ranch Hand

Joined: Dec 14, 2004
Posts: 57
Homework? nah. More like promising a client results before really scoping out the project. Im running JRun4 on Suse 9.1 (also steepening my learning curve, but im doin' ok). The external process is actually going to be an XSLT transform. I guess I could use xalan as part of the web app, but would that be bad design? Bad performance?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

I think that was a probe to see if this is homework


Exactly, it really sounded like it would be a homework project.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: recommendation for a web site architecture