Questions tagged [method-call]
386 questions
3
votes
3 answers
How to call java method in JSTL?
This might be duplicate question.
I just want to call method which is not getter or setter method eg. makeCall(someObj,"stringvalue") of xyz class.
Java Class
Class XYZ{
public String makeCall(Object objValue, String stringValue){
//some…

Sachin J
- 2,081
- 12
- 36
- 50
3
votes
2 answers
How do you log the callback methods being called?
For example, if I have this callback:
after_create :notify_users
When that is called, how can I log something like "notify_users method is being called" in my log file?
I actually have several callbacks in my application. I know I can add…

sjsc
- 4,552
- 10
- 39
- 55
3
votes
2 answers
java method call on multiple objects
I installed a plugin for eclipse that helps creating a JFrame in a UI.
The code generated form the plugin has some strange syntax.
I never ever saw something like this in java:
private JPanel b_,cb_,pb_,l_,tf_,ta_contentPane;
public Mainf() {
…

wolfi1571883
- 49
- 6
3
votes
1 answer
Buffer up remote method calls in Java (Android)
I have a client(android)-server app containing tasks that are to be distributed to users. A user can see all available tasks, and when he enters a task the client sends a "READ" notification to the server, indicating that the task has been…

Vering
- 907
- 9
- 19
2
votes
2 answers
Scala, call instance method right from superconstructor call?
Suppose I have the following Scala code:
class Foo(a: Int)
class Bar(b: Buffer[Int]) extends Foo (sum) {
def sum = (1 /: b)(_ + _)
}
why does it complain on calling the method sum from the constructor? Is it not possible to get such a behavior…

noncom
- 4,962
- 3
- 42
- 70
2
votes
1 answer
How does CMD.exe execute Call on a given label inside a batch file?
Suppose I have a batch file.
This batch file has a 'subroutine' labeled :AppndLog and it's purpose is to append a log file.
This routine starts at line - let's say 540. Now - other 'subroutines' thereafter may call this same Label but ALL of these…

k1dfr0std
- 379
- 1
- 15
2
votes
2 answers
Running 2 subs in excel from access vba - first runs, second doesn't
So I'm totally at a loss as to the issue here and for once can't find the answer already on here.
I have an access database that calls a sub in excel and runs it perfectly.
Then it flicks back to access, asks a question and then, depending upon the…

Dopester
- 31
- 3
2
votes
1 answer
Getting OUT_OF_ENERGY error at the TRON's contract call while not all of provided fee_limit was burned
I am trying to call method of the smart-contract deployed on Tron from program code by calling
/wallet/triggersmartcontract/
Tron node's API.
This worked just fine on the testnet Shasta, but the attempt of executing this on the mainnet failed with…

Yurii Baryshev
- 49
- 5
2
votes
1 answer
CALL on files with special symbols fail
I was trying to do some operations to every file in a folder.
for %%d in (*.txt) do call:test "%%d"
pause
exit /B
:test
echo %1
Usually this works fine, but if there is a file %~aaa.txt in the folder, it says that The following usage of the path…

l4m2
- 1,157
- 5
- 17
2
votes
2 answers
How to Dynamically call a method of a class if class name is passed as string
I want to create dynamic object so that I call the respective method of the class. All classes and interface is in different file but under the same folder
Given:
interface Method
{
public void display();
}
class Car implements Method
{
…

sakshi singhal
- 101
- 2
- 9
2
votes
4 answers
Javascript: How change function call params on the fly?
I'm receiving some 'body' content from a jquery's json call, where I can get the unique javascript element returned by doing:
script_element = $(data.body)[1]
This equals to: