Ekta Matani

Greenhorn
+ Follow
since May 17, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ekta Matani

Hi,

By adding rmi plugin to your eclipse, you can execute rmi programs from within eclipse.

You can refer below link to get rmi plugin :

http://www.genady.net/rmi/v20/downloads.html

I think its a trial version[not sure] , you can download plugin as per eclipse version you are using.
You can read instructions and Demos for plugin installation details.

13 years ago
Object Relation Mapping is a technique which hibernate uses to modal object oriented paradigm and relational database paradigm.
The object oriented model deals with object, their attributes while relational model deals with tables, their column, tuples.
so these two are altogether different paradigms and there is gap between these two.
to fulfil this gap, hibernate uses ORM which maps both paradigms, where object is mapped to table and property(instance variable) of object is mapped to table column.
Hi,
I have some queries regarding jsp page scope,

In which scenerios to use page scope?
What is the use of page scope if page scope represent objects and attributes for current jsp page and cannot make objects available to next page?
Why servlets dont have page scope?
I need some practical examples of using JSP page scope in comparison with other jsp scopes.

Thanks in advavance!
Ekta
15 years ago
JSP
Hi Merrill,
i tried this ,still it is giving same error.

It seems file is not being validated as there is connection error.
after playing with code, i found one new thing,
as validation.xml & validator-rules.xml contains declaration for validator.dtd whose url is "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd"

if i change this url to "validator_1_0.dtd" (validator_1_0.dtd file is present in WEB-INF dir),
i get different error,
which is :
ERROR validator.ValidatiorPlugIn -
C:\bea\WEBLOG~1\samples\domains\workshop\validator_1_0.dtd
(The System cannot find the file specified)
java.io.FileNotFoundException

afterwards i copied validator_1_0.dtd and paste it into C:\bea\WEBLOG~1\samples\domains\workshop,
the problem gets solved ,i dont get any error and validation plu-in is also working fine.
but i dont know why the server demanded to paste file into workshop directory.
In normal case as i tried long before with jboss server i never had such problem,
are there any known issues for weblogic8.1 with struts?

regards,
ekta.
18 years ago
hi,
I am using struts1.1 for my web application.
I want to use validator plug-in for performing some validation task,for that, i added plug-in tag into struts-config.xml file as shown below

<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml">
</set-property>
</plug-in>

but after adding plug-in tag ,i get following error,

ERROR validator.ValidatorPlugIn - Tried all :'1' addresses, but could not connect over Http to server: 'jakarta.apache.org',port:'80'
java.net.ConnectionException Tried all :'1' addresses, but could not connect over Http to server: 'jakarta.apache.org',port:'80'

what is this error?
since last few days i searched for this error but could'nt get any solution for this ,
the files validator-rules.xml and validation.xml are also present in WEB-INF directory.
If anybody faced such problem and got solution for it,please let me know.

regards,
ekta.
18 years ago
hi,
Is JTest available as a trial version ?
if yes, can i get a link to JTest trial version download?i searched i didnt get anywhere.

thanks,
ekta
18 years ago
Hi,
I am using hibernate with mysql as database.
After few save & update operations, i am getting the following error :

[BasicResourcePool] com.mchange.v2.resourcepool.BasicResourcePool$Ac
- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30).

how to resolve this?

the properties which i have configured in hibernateconfig.xml are set with following values:

<property name="c3p0.max_size">100</property>
<property name="c3p0.min_size">10</property>
<property name="c3p0.timeout">10</property> <!-- seconds -->
<property name="c3p0.acquireRetryAttempts">30</property>
<property name="c3p0.acquireIncrement">5</property>
<property name="c3p0.idleConnectionTestPeriod">300</property>
<property name="c3p0.initialPoolSize">20</property>
<property name="c3p0.maxPoolSize">100</property>
<property name="c3p0.maxIdleTime">300</property>
<property name="c3p0.maxStatements">50</property>
<property name="c3p0.minPoolSize">10</property>

do i need to add any other property tags?or any value changes required for properties?
Please help me.

Thank you,
Ekta
Thanks!

Yes Harish, reading K & B thoroughly as it is instructed is sufficient,but for practice i also went through few mock exams :
1)http://www.javacertificate.com/ (SCJP 1.4)

2)http://www.javaranch.com/roundup.jsp

3)http://www.jchq.net/mockexams/exam1.htm

4)khalid mughal's

5)Whizlabs Java Certification (SCJP 1.4) Exam
that's all.

Ekta
-------(SCJP 1.4)------
18 years ago
Hi,
I have successfully completed SCJP1.4 with 88%.
I would like to thank K & B for providing such a good study material.

Thank U,
With Regards,
Ekta.
18 years ago
if a class contains data member ,every instance will have its own copy of data member if it is non static
however if it is static data member every instance of that class has to share a single copy of that member.

in this case, rate is static data member common to personal & bussiness,so if either of the object is trying to modify it,both will see its effect.

but for non static data member(balance in this case),every object has its own copy so the effects of changing non static variable will not be visible to other instances as long as they refer to different objects.
Hi,
can anybody please tell me what will be answer to the question given below,
[select 2 correct answers]

Question is:
Which code fragments will succeed in initializing a two-dimensional array named tab with a size that will cause the expression tab[3][2] to access a valid element?
1]
int [][]tab{
{0,0,0},
{0,0,0}
};

2]
int tab[][]=new int[4][];

3]
int tab[3][2];

4]
int [] tab[]={{0,0,0},{0,0,0},{0,0,0},{0,0,0}};

what i feel is,
option 4 is the correct ,since on accessing tab[3][2] it will return 0 which is valid.

option 1 is incorrect ,since size of the array tab is of 2*3 ,so on accessing tab[3][2] it will throw "array index out of bounds exception".

option 2 creates & initialises the int array tab with default value(is it correct?) which is 0.
but here on accessing tab[3][2] it throws null pointer exception.

option 3 is the only array tab declarations.

so i think option 4 is the correct ,i am confused which is the second correct answer?

Thank u,
Ekta
hi ,

I want to refresh a child window which is a jsp page when it gets loaded ,the problem is child window gets open up but it has to be explicitly refreshed by pressing F5 key to see the required result.

The following java script i have used to acheive this task,

function openWin(url)
{
var newWin = window.open(url,'popup','menubar=0,resizable=0,width=750,height=380,scrollbars=yes');
newWin.focus();
}


i am calling this function from parent jsp page on onklick event.

<html:submit property ="submit_find" styleClass="button" onklick="openWin('search.jsp');" >

Is there anything wrong with javascript or i have to put some additional things on jsp.
Plz help me to do this.
its urgent.
Thank u,
Ekta
hi ,

I want to refresh a child window which is a jsp page when it gets loaded ,the problem is child window gets open up but it has to be explicitly refreshed by pressing F5 key to see the required result.

The following java script i have used to acheive this task,

function openWin(url)
{
var newWin = window.open(url,'popup','menubar=0,resizable=0,width=750,height=380,scrollbars=yes');
newWin.focus();
}


i am calling this function from parent jsp page on onklick event.

<html:submit property ="submit_find" styleClass="button" onklick="openWin('search.jsp');" >

Is there anything wrong with javascript or i have to put some additional things on jsp.
Plz help me to do this.
its urgent.
Thank u,
Ekta
19 years ago
JSP
Hi,
I am using eclipse with jdk1.4 ,i have build & deployed war on this specifications, i am getting "java.lang.UnsupportedClassVersionError ",
Though this new war is compiled with this jdk1.4 version,it's still gives this error.
can anyone plz help me.
Thanks in advance.
Ekta