Raj Rajesh

Greenhorn
+ Follow
since Sep 17, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Raj Rajesh

Vivek Singh wrote:i am not sure if this is possible as the compiler only creates a blank constructor. So you are not sure about the TYPE and Number of params in your constructor. I am not sure what you want to achive

May be varargs can be used not sure how in your problem.


Or may be







In my project , user can create manual classes from a user interface.
So we dont know how many attributes / variables the user wants to initialize.
Thats why we are trying to make a dynamic constructor of a class and invoking a dynamic method ..


I mean , I am trying to make a method like this

public void method1(String className, String methodName, String val){
//create className object using its constructor
//Dynamically call method like className.methodName(val)
}
14 years ago

Vivek Singh wrote:

Raj Rajesh wrote: I can pass these details as a method param


Do you mean the params in the constructor?

Please write your constructor and explain what you want to achieve?...




public ManualClass(String str1 , String str2) {
this.str1 = str1;
this.str2 = str2;
}

I need to dynamically call the class constructor..
(I dont know how many param the constructor contains.)

After that I need to invoke the method what I passed as a String for a particular Object.
14 years ago
I have a class with parameterized contructor.

I need to create a method to which I can pass these details as a method param
1. ClassName
2. MethodName(which need to be invoke)
3.Method Param

How can I do it
Any sample examples.
14 years ago
I have a class with parameterized contructor.

I need to create a method to which I can pass these details as a method param
1. ClassName
2. MethodName(which need to be invoke)
3.Method Param

How can I do it
Any sample examples.

14 years ago

Ulf Dittmer wrote:What is a "Java Runtime Editor" ?



1. An editor in which user can write java code..
I mean java programs and if user will type an object name then respective method names should come up in drop down..
Similar to eclipse / netbeans..
But the editor should have some jar files, those I can use in my swing application .

2.It should also give compilation errors.
14 years ago
Hi,
I am working on a requirement in which I need to integrate a java runtime editor in swing application.
Any suggestions..
14 years ago
hi,
I installed jboss-4.2.2.GA and extracted richfaces-ui-3.2.1.GA-src in the jboss-4.2.2.GA\server\default\deploy folder.
But while running richfaces application through http://localhost:8080/richfaces-ui-3.2.1.GA-src , showing "HTTP Status 404 - /richfaces-ui-3.2.1.GA-src" error. I tried to run other simple applications, but those are also not running, as the same error showing "HTTP Status 404"....

please help me asap.
14 years ago
JSF