Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

recommendation for a web site architecture

 
Dudley Dawson
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Haven't you gone over that stuff in your class yet?

Mark
 
Dudley Dawson
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mark Spritzler:
Haven't you gone over that stuff in your class yet?


huh?
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Dudley Dawson
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that was a probe to see if this is homework


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

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic