Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Karne Reddy

Ranch Hand
+ Follow
since May 28, 2006
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 Karne Reddy

Hi,

As part of our new project, am doing analysis on performance of ORM tools. I compared two
1 . JPA(Hibernate) in JBOSS 5
2. only Hibernate.

I had inserted some records using the same and found that JPA(Hibernate) is performing well(taking less time) than Hibernate.


My Assumption on JPA(Hibernate) in JBOSS 5 :
Jboss 5 JPA(Hibernate) is nothing but JPA API is implemented to use Hibernate in background. which is an additional Layer.

But how come JPA(Hibernate) with additional layer is performing well than only Hibernate...

Please help me out..

Ashok
SCJP1.4,SCWCD 1.4, SCBCD5, XML Cer - Test 142
Hi ,

I have two machines with websphere application server/deployment mgr(with HTTP Server also) installed on both of them. And I had my application deployed and running on both of these app servers. We have been provided another ip(BIG IP) with an url. I need to acheive load balancing of both the app servers and able to access my application with the url provided. Any help is greatly appreaciated...

Thanks in Advance


Regards
Ashok
11 years ago
Hi Srinivasan,

Is the Limited Time Offer of WhizLabs is completed? or Still there



-----
SCJP,SCWCD
Hi Friends,

Can anybody help me out in viewing or applying an xslt to a xml document.

Here is my xslt code.


<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
<html>
<body>
<h2>My CD Collection</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>Title</th>
<th>Artist</th>
</tr>
<tr>
<td>.</td>
<td>.</td>
</tr>
</table>
</body>
</html>
</xsl:template></xsl:stylesheet>


And I applied the above xslt doc to the following xml file
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
<?xml-stylesheet type=�text/xsl� href="employees.xsl�?>
<employees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.employees.com/a employees.xsd" xmlns="http://www.employees.com/a">;
<!-- <?xml-stylesheet type=�text/css� href="emp.css�?> -->


<employee position="manager">
<name>
<first>John</first>
<last>Dent</last>
</name>
<age>34</age>
</employee>

....


</employees>

In the browser I am not able to see the expected result.
I am getting the following thing in browser:

<?xml version="1.0" encoding="UTF-8" ?>
- <!-- Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)
-->
<?xml-stylesheet type=�text/xsl� href="employees.xsl�?>
- <employees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.employees.com/a employees.xsd" xmlns="http://www.employees.com/a">;
- <!-- <?xml-stylesheet type=�text/css� href="emp.css�?>
-->
- <employee position="manager">
- <name>
<first>John</first>
<last>Dent</last>
</name>
<age>34</age>
</employee>

</employees>

Can anybody explain wat might be the reason?


----------
scjp, scwcd
Hi Friends ,
This is my first post in xml.

Iam having a problem while i am trying to apply a css file to XML file.
I am not getting the expected results.

Details:

My xml file employees.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
<employees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.employees.com/a employees.xsd" xmlns="http://www.employees.com/a">;
<?xml-stylesheet type=�text/css� href="emp.css�?>

<employee position="manager">
<name>
<first>John</first>
<last>Dent</last>
</name>
<age>34</age>
</employee>
.........
</employees>


Here is my css file emp.css

employee{
display: block;
font-weight : bold;
}
name {
display: block;
font-weight : bold;
font-size:18pt
}
age{
display: none;
}


When when i am accessing the employees.xml file in browser(Mozilla &
IE) I am not getting the expected result.

Can anybody help me out?


--------
SCJP,SCWCD
Hi,

For XML Certification IBM XML Certification is the best one.

Here is the test num: 142

For furthur details reg the topics, check here
http://www-03.ibm.com/certify/tests/obj142.shtml


-----------
SCJP,SCWCD
Hi Friends,

Can any one can throw some light on customisation of window.confirm()

function. I want Yes and No instead of Ok and Cancel.


-------------

SCJP1.4, SCWCD1.4
Hi,
Cud anyone pls the best book for (142) IBM XML Certification.



-----------
SCJP,SCWCD
Hi,
Atlast i done with 88%.

My reosources for Prep: HFSJ,SCWCD by Hanumandeshmuk.
Enthuware JWebPlus mock exams.
Some free mock exams in javaprepare.com, jirisonline,

The worst thing tat I found is mistakes on some of the questions
in the exam.
For who are looking for good score have a thorough check on the configuration of EJB Related stuff in the web.xml. And all the ejb related tags that can be used in web.xml. I missed almost 2 questions on this.

I practiced the Enthuware mock exams in which i scored 90+% in all the mock exams. It has not covered questions on all areas.

Next --> IBM XML
------
SCJP(91%),SCWCD1.4(88%)
Hi,

In how many ways can we get the ServletContext Object and from which objects?

In one mock test, I have seen tat we can get ServletContext from HttpServlet class instead of GenericServlet class?


AdvaNcely thanx
-----------
SCJP
1.<jsp:root xmlns:"http://java.sun.com/JSP/page"; version="2.0">
2. <jsp irective.page contentType="text/html" />
3. <h1>Hello</h1>
4. <jsp:scriptlet>
5. for(int i=0; i<5; i++)
6. {
7. out.println("World");
8. }
9. </jsp:scriptlet>
10. <jsp:text>!!!</jsp:text>
11.</jsp:root>
Which of the following statements are correct?




Select 1 correct option.
a This will generate output without any errors.


b Line 3 must be enclosed in <jsp:text> and </jsp:text>.


c Although line 3 is valid but "Hello" will not be displayed as HEADER1 format in the browser.


d Line 5 is invalid.
e Line 10 is invalid.


I thought ans is A but
Anwer is D
Because of
It should be written as:
for(int i=0; i&lt;5; i++)
Hi ,
set the path of the cookie(using setPath.. something like this chk the API) after its creation to /. And try to get the other web app.


--------
SCJP
Hi ,
I want to confirm the below statement.

"The order of elements in deployment descriptor is important. The elements must follow a specific order."

Is it correct?

If so, I am keeping the elements of DD and they were working fine.(Tomcat).

Any idea?


----------
SCJP
Thanx Narendra for ur reply.
I understood.


-----------
SCJP
Write the body value of <body-content> element for a tag that is supposed to interpret it's own body.

Ans is: tagdependent

Could any one explan the reason?


----
SCJP