I'd like to write a java program that has the ability to input information onto an asp, and then read back the data that is returned from the asp.
Does anyone have any suggestions on how to go about doing this?
Is there an easier/more elegant solution than web scraping?
In order for Java code to work in ASP, it has to be compiled byte-code that can be read by the CLR. A quick Google search of "Java" + ".NET" yielded this: http://www.janetdev.org/
Another thing you could do is just learn C#. If you already know Java, there hardly is a learning curve.
Related
I have hosted my web-application on google appengine. I had to put up some java code on my website.So I am looking for a java parser for the website. Please suggest some.
Actually I wanted to put up a project that used C and Java so I am looking for a parser that can parse both the languages.Are there available parser or I will have to write my own ?
Edit : My sole purpose 'now' is code highlighting
If you just need code highlighting, there are tons of stuff out there. You could, for instance, use highlight.js, or even Google's own code prettifier.
At this moment, that is what I can get from your question, so until further clarification, I won't be able to give a more precise answer.
I just started learning Java, and I have no idea how it works. The programming language I learned before this was PHP.
My question is, how do I use Java on my website? I created a .java file and it showed up like this (it showed the script): http://cpcheats.co/java/learning/index.java
I'm guessing I need to upload java onto my web server. If I do, can you please tell me where to download it, and where to upload it? If I don't need to download Java, can you please tell me how to use it on my website? Thanks.
I'm guessing I need to upload java onto my web server.
Ok....
Go to a bookstore/library and buy/borrow a book on Java. Spend a weekend on it and when you have a programming question, please post it here and many of us here will try to help you.
Well, what you need first is to understand the basic concept of java, and of a java web application (java on the server). You need to follow a course and this is not the place to write a java getting started, because this already exist.
I suggest that you read this:
http://docs.oracle.com/javase/tutorial/getStarted/
http://docs.oracle.com/javaee/1.4/tutorial/doc/WebApp.html
After a couple of hours you should have a better understanding of what java is and what you can do with it.
Is it possible to call/run a python script file from Java code on the Android platform using SL4A? Basically I have a full blown Java Android app and I have several Python scripts that scrape some information from various web pages. I would like to be able to call these python scripts with the web page and get the results back. Is this possible? If so, can anyone point me in the direction of an example or two?
Thank you,
Harry
run an SL4A script from my application?
http://code.google.com/p/android-scripting/wiki/FAQ#Can_I_run_an_SL4A_script_from_my_application?
Here you go, a solution on how to make Android applications using SL4A and Python. I have developed a functional Python application following this tutorial so I can vouch for it. I assume you can add the Python code and do your data exchange with JSON.
I personally have never tried to mix these two together, though I will probably try after seeing your post.
Also, if you have any problems/questions, related to starting that example, post them here, I might help.
I want to know if it's possible to execute a javascript function from java. Basically I have a javascript function to which I want to pass a string and then get the output from that function.
If it's possible, how do I accomplish it?
EDIT -
I couldn't find a solution to this, what I did was re-write all the javascript code in Java. But I am guessing, Rhino ported on Android should do the trick. If someone has tried it out, please post a solution.
You probably want to take a look at the ScriptEngine. There are plenty of samples out there on how to use it. Works on anything but Mac where they for some reason selected to include AppleScript instead of JavaScript by default.
Edit: Take a look at this page, there seems to be a Rhino port for Android out there.
Javascript is not natively supported in java. If you need it, you may implement the Rhino javascript engine to do this.
"Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users."
Hey i was wondering if there is a specific api for printing a bunch of common file types(pdf,doc,docx,txt, etc..). I am trying to develop program similar to HP's eprint. eprint annoys me because it prints an email as well as the file attached to it. I just want something i can send files directly to. I have found that java has a printing api, but that seems to focus on printing something from a gui window. any ideas much appreciated!
Thanks
Morpheous
It would be difficult for Java alone to be able to print a variety of different file types, and most of the time I've seen Java programs use other programs to do the printing by using Runtime.exec. If you're going to be trying to use this though, please be sure to read this extremely important article: When Runtime.exec() won't