Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

Supri dharshni

Greenhorn
+ Follow
since Jul 14, 2009
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 Supri dharshni

Hi ,

Please let me know the advantage of defining the class as static.Because while discussing about the perofrmance issue in our project,the manager has recommended to make the classes static whereever it is possible.

Is it really helps to improve performance? And at which context we have to make the class static?
7 years ago
Hi,

I meant i need some values from properties file in a xml file.

<a:query>

(xs:QName("empid"),"123")
</a:query>
now,instead of hardcoding 123 i need this to be from properties file.
We have to do this onloading of the xml file.

Thanks
Hi ,

I have to read some values from .properties file in xml.Please let me know how to do this.I have read directly not through java.

Thanks.


Regards,
Priya.
Hi,

we are using restful webservices in our project.Can anyone let me know which is the best design pattern to develop restful webservices? and share how it helps in restful webservices.

Thanks in advance.

Regards,
Supri.
7 years ago
I know using design patterns is a good approach.But am not sure what are the disadvantages in using only the servlet classes.Please share if you have any idea regarding the same.
7 years ago
Hi ,

In my new project they are using the servlet classes for all actions.That is no frameworks like struts,spring is used.They are using the servlet classes throught out the application.Say to add a user ,delete a user etc... for each action they are calling a separate servlet class. Is it the correct way to proceed ? Upto my knowledge the servlets can be used to load anything during the start up is the effective way.

If using servlets for all actions is not the proper way then please let me know how we can modify in the better way. Experts please help.


Regards,
supri
7 years ago
Hi,

I am using t:inputFileUpload to upload the files.By default its displaying the textbox with browse button. I want to change the style of browse button. Using style and styleclass attribute its not working.When i tried to modify the style using some javascript its getting applied to text box too.But i want to change the style of the browse button.Please help me.
7 years ago
JSF
Hi,

Instead of creating and opening new connections for each and every request we have the connections in a connection pool.But what happens when the number requests exceeds the pool size limit.Will any exception is thrown? If so then how we have to handle such situation.Please reply.
Hi Paul ,

depends on the choices you make in your mappings - you mean my entity mappings(one to many,many to one etc..). In such a case also i have to create the hbm and pojo classes for all ,right ? So i think there is no way to reduce the number the hbm and pojo classes. Please correct me if i am wrong.
Hi ,

This is regarding hbm file creation in hibernate. In my database i am having 100 tables and i will be using all these tables for my querying.In such case do i need to create 100 hbm and pojo classes? or is there some other way to handle without creating hbm files for all the tables and only for few.Please clarify.
Hi,

In struts if we are using the two struts-config.xml files then if you send or received any request or response then is it search for all the xml files?
Can we have any names for my struts configuration file say supri.xml or is it only struts-config.xml?
7 years ago
Please any one reply me.
7 years ago
Hi,

Please tell me the about the class loader in java.What it does and how its loading the classes etc..I have gone through few articles in net but didnt get much clear details.
7 years ago
Hi,

Sorry i forgot to mention that i have call the constructor of a class without using new,this,super keywords.For example,

public class A{

public A(){

System.out.println("Hello Constructor");
}

public static void main(String args[]){

}

}
Now i have to print "Hello Constructor" without using new,this,super keywords.Is it possible?
8 years ago
Hi,

Is there a way to call a constructor in a java class other than new,super keywords? I am asking for calling the constructor which is present in the same class.

8 years ago