M Yuvi

Greenhorn
+ Follow
since Mar 19, 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 M Yuvi

"Is it that the virtual machine will look into the object type only in case if the corresponding method is overridden?"

I believe this query can be classified under method overriding. If you still don't agree, excuse me !

I was under the impression that irrespective of the whether the method is overridden or not, the virtual machine will look into the object type (and not the reference type) to invoke the method. If it is not so, how and when the virtual machine will know whether a particular method invoked is overridden or not and decide whether to consider the reference type or the object type to invoke the method?

The question could be basics and this could be an inappropriate forum. But I would appreciate if one of you can make me understand the concept.
13 years ago
I understand that the method is not been overridden within the sub class in this example.

My doubt is how the virtual machine identifies the method to be executed in case of non-overridden method. If the method is not overridden, will the virtual machine not consider the type of the object the reference variable is referring to, in order to identify which method should be executed, rather would invoke the method based on the reference type?
13 years ago
Hi,

Help in understanding the below given code.

class Super{
private void display(){
System.out.println("Super display");
}
public static void main(String arg[]){
Super s = new Sub();
s.display();
}
}

class Sub extends Super{
public void display(){
System.out.println("Sub display");
}
}

I expected the output to be "Sub display", as the object type of S is Sub and hence the method belonging to Sub class should be executed. Is it that the virtual machine will look into the object type only in case if the corresponding method is overridden?

Regards
Yuvi
13 years ago
Hi,

The requirement is to configure the Tomcat server to allow connections only from defined hosts. The host addresses to be allowed can be listed in a file.

Note : Using servlet filter this can be achieved. However the requirement is to fix it in the container level itself.

Regards
Yuvi
13 years ago
Hi,

The requirement is to read the data available in the database and send them as excel stream to another web application - in specific a JSP page.

1. Everytime I read the records from the database, should I generate an Excel sheet and store the excel file physically before sending it across? What is the better way to implement this?

2. Which API is better to use to generate the excel sheet, write the data into it, read the data from it and send it across as excel stream?

3. How do I send the data as excel stream to the other application?

Thanks
Yuvi
13 years ago
I have problem with populating the form with data, upon selecting a value in the list box. Upon selecting the list box, by handling the ValueChangeListener, I want to populate the form with the corresponding data.

Below is the JSP
...
<h:selectOneMenu valueChangeListener="#{user.fetchData}" onchange="submit();" value="#{user.userId}">
<f:selectItems value="#{user.userIdList}" />
</h:selectOneMenu>

<h:inputText value="#{user.userName}" />
<h:commandButton action="#{user.submit}" value="click"/>
...

The corresponding managed bean is ...

public class User {

private int userId;
private List<SelectItem> userIdList=new ArrayList<SelectItem>();
private String userName;

// getter and setter methods
public void fetchData(ValueChangeEvent event){
// some logic to assign the userName
userName="C";
}
}

Upon selecting a particular userId, the corresponding userName is displayed in the form if the "disabled" property of userName UI component is set to "true". Otherwise, the data is not displayed in the form. However my requirement is, the corresponding data should be displayed and the user should be allowed to edit the details and store it on submit.

Please help me in resolving this.
14 years ago
JSF
Thanks for the reply

With regard to public UDDI registry, I understand what you have told.

I am trying to understand the UDDI registry. I have few doubts. I will be happy if you can calrify me on these (My doubts might be very basic and simple, but I am novice to Web Services as well Ranch )

1. Please validate if my understanding is right : B2B automation did not found to be success. Hence, a public UDDI Business Registy is no more required, as the consumer would always communicate with the provider to automate the B2B. Hence, the consumer can get the description of the Web Service either from the provider's UDDI registry or the provider can provide the URI of the wsdl to the consumer to access.
If this understanding is right, can you tell me why do we still need to have the information about the service provider? Would the Service implementation and metadata information not do?

2. There are list of vendors who provider UDDI registry servers. Now how do I decide upon the UDDI registry and what is DE feature that decides the UDDI registry server?

Yuvi
14 years ago
Hi,

I want the list of UDDI registry providers and their features and comparisons. Can somebody help me in this?
I know that IBM, MS provider UDDI registries. But I want to know the features of those as well.

Regards
Yuvi
14 years ago
Not able to resolve this exception java.lang.NoClassDefFoundError: weblogic/logging/LogEntryFormatter. Please help!!! I am trying to persist an object in database by creating entity manager factory.
14 years ago