Wrote java application, tips to integrate on web?

software development

#1

hello, i’m working on a java application that takes a string of input and asks the user if she wants to change each given word for a random verb, noun, or adjective. i’m new to web programming so i’m unsure if i should go with an applet or is there a better way? since i’m most familiar with java, i could get an applet running before anything else, but I’d like to have the page look like a normal html form. what should I look into? what do you suggest?

http://listenlight.net


#2

Applet is the only way to go on the DH server. They don’t run JSP servers, so you won’t be able to create any HTML based front end for the input.


yerba# rm -rf /etc
yerba#


#3

What about running the java application in the background on the server, i.e. it is started manually by me, or by the user when she starts a session, and use php to send data to the java application, which returns a simple string that is parsed by php to the page. is that out of the question? because the application, all it takes is a string for input, and then questions the user about each word in the string, or skips the words the user has chosen to skip.

right now the program loads four arrays filled with, respectively, transitive verbs, intransitive verbs, nouns, and adjectives. that’s it’s overhead, what it loads each time it starts. i just need some advice for going about doing this in php.

http://listenlight.net


#4

since the code is fairly simple, should i just rewrite it in php?

again, the program simply loads four arrays, which could be already loaded in the background, and the user enters text and interacts with a few menus or radio buttons and regenerates the page witht the output? i guess i’ll start poking around more in php…

http://listenlight.net


#5

At this time, Java <-> PHP Bridge isn’t stable nor are persistant processes permitted on the server.

Your best bet would be to code it in PHP vs trying to find some other method to input it into Java. The only other way PHP can communicate to a Java App is by calling it on the command line with command line parameters. But it’s ugly, not very elegant and prone to errors.


yerba# rm -rf /etc
yerba#