Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm coding an automated test in Java which firsts creates a set of preconditions in my application using the existing API and then, during the executions of the tests, I need to update a specific value of a key in order to execute a different scenario. As this is a REST service, I need to use PUT or POST method. Which one is the one to pick?
It's an existing API: use the one it tells you to.
If it doesn't tell you which one, then use the one that works.
If both work, then read a decade worth of "PUT v POST" debates and decide on your own.
(I personally vote for PUT.)
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
So, I have this question here, which has been answered. I'm looking to replicate the marked answer in Java. Is there any way I can do some/most/all of it in Java?
Of course Java can be used to replace grep as seen e.g. in this question.
As you really want extract parameter values from a URL you could e.g. go with this approach, where a simple Java-function returns all parameters and their values as a Map. If you already use a HTTP-related library you may also want to look if they included a similar function.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have two applications running concurrently: one in Perl, and one in Java. The Perl app relies on using nfreeze to store objects in the database. If my Java app has access to that database, how can I "thaw" that object inside of the Java application?
I don't need to be able to write to that object, just read it and use it in the Java app.
Storable is specifically designed for Perl data structures. It hasn't been ported to other languages.
Instead of (or in addition to) using Storable, use XML, JSON or YAML (in no particular order).
It's that's not possible, your Java program is going to have to call a Perl script to translate the data into something more convenient.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am currently a relatively new in the field of programming, and I am helping with a friend of mine on building a social network. It is already live picxter.com. However we are looking on implementing a chat feature for our users and the owner told me I should use a Java applet as it would be best suited for our needs. However is this possible? We are not trying to make a chat site type of chat. We are trying to build a chat like Facebook.
Don't use Java for these sorts of applications! Using Java in your browser is not a very good idea in general. You could try to do it in JavaScript using AJAX (which is syntactically very similar to Java and by far not as slow, doesn't require a runtime environment and isn't as risky [you can argue about that, to be honest] in terms of security).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to develope an application which extracts data from another application (the "whatsapp" application) when i am getting an incoming call.
How can I do it?
Maybe relevant guids will help :)
Thanks in advance!
Yogo.
It is generally not possible, unless if the application makes it public, for instance, sharing data via Intent or storing files in a public folder, e.g. in the SDCard.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
I am writing one web page in which I am putting one html input type="textarea" in which user will write their java code and on submit it will return output of that java code. Can I do this using jsp? if not then what are the other ways.
I would think very carefully before allowing people to do that.
At the very least, to read and run the user's input, you will need a JDK to compile it, and a JVM to run it. Since you're talking about over the web, presumably the user's machine will not have those (otherwise they'd just use theirs), so you'd have to use the ones on your server - that is, take the user's text, upload it as a .java file to your server, compile and run it (for an anonymous user on your server!), and send the result back to the browser session.
As you can see, there are a couple of pretty big, bad security problems here. Not recommended !