Mehul Wani

Greenhorn
+ Follow
since Mar 18, 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 Mehul Wani

Hi All,

We are facing problem with Axis2 client. We are using xmlbeans axis2 stub and it is taking around 16 seconds to reach the request on server and approximately 46 seconds to get back the response after server sends back the data. Even if setting the timeout of 10 seconds, client is not getting timed out. The time out is set using following method of Axis2 stub:

stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(Long.parseLong(timeout));

Also, please note that web service needs authentication which is being done by setting some of the properties of stub.

Thanks.
14 years ago
Hi,

This is regarding the service URL difference between Axis1 and Axis2 implementation of web service. With Axis1, if one tries the service URL: http://host:port/deployed_application_name/service_name , then a message "Hi, there is a Axis service" is displayed.

However, if one tries the service URL with Axis2, nothing is displayed. Can someone tell me the reason behind this. Actually, I have a load balancer which pings this URL every 5 secs. So, when it pings the Axis2 service, nothing is found and an exception is thrown as a result of this.

Appriciate with any kind of help on this.
14 years ago
Bill,

Many thanks for the reply.

Do you by any chance know any of good Xpath packages that can work with DOM?

Hi,

I'm parsing a large XML file(of size 3.5 MB) using DOM parser. I'm using relative XPath for processing the XML. However, with DOM, XPath is consuming lot of time(almost a min. for a parent child combination and have 900 such elements) and total time taken is 10 -12 hours for one such file.

Can anyone suggest a good effiicient parser which has similar features of DOM like relative XPath and returning node object on querying with XPath?

Thanks.
Hi,

I have client class calling a web service. Now, it may happen with the wev service it may take long to send back the response.But I have a time restriction that if the response doesn't come within given time period I have to stop the client call.

The time requirement is done. But how to stop the client after the call is made?

Please help!!! Its urgent.
15 years ago
How to send nested object collection to PL/SQL Procedure as an Input parameter.

The scenario is there is a parent mapping object containing a collection(java.sql.Array) of child objects.
I need to send the parent object collection to PL/SQL procedure as a input parameter.
public class parent{
String attr1;
String attr2;
Child[] attr3;
}
public class Child{
String attr1;
SubChild[] attr2;
}
public class SubChild{
String attr1;
}

Urgent!!!
Try using the following:

15 years ago
Hi,

You cannot hide/disable the close box of the popup since,this is a browser window one cannot have control on its control buttons like minimize/close. However, you can use custimized popups made up of <div> tags.
Hi,

"Core Servlets and JavaServer Pages" By Marty Hall is a good book to start off with and it also includes all the details to set up your development environment and steps for writing your programs in text editor,running and debugging them. In all, perfect for a new bee.

You can also visit:http://www.coreservlets.com for examples and more details.

[ April 07, 2008: Message edited by: Mehul Wani ]
[ April 07, 2008: Message edited by: Mehul Wani ]
15 years ago
For WLS 8.1 you can find it at the following location:

Drive_Name\bea\user_projects\domains\your_domain\work\jspsrc\jsp_servlet\_web_45_inf\_jsp
[ April 04, 2008: Message edited by: Mehul Wani ]
15 years ago
For WLS 8.1 you can find it at the following location:

Drive_Name\bea\user_projects\domains\your_domain\work\jspsrc\jsp_servlet\_web_45_inf\_jsp
[ April 04, 2008: Message edited by: Mehul Wani ]
15 years ago
JSP
Oops!!! Sorry!! Just a correction in previous post's code
Uncomment the alert line

function show(tabName) {
//Add this line and you will come to know why it is not working
alert(document.getElementById(tabName).style.display);
if(document.getElementById(tabName).style.display == "none")
{
document.getElementById(tabName).style.display = "block";
}
else if(document.getElementById(tabName).style.display == "block")
{
document.getElementById(tabName).style.display = "none";
}
}
Yes, definitely it won't enter the if block because it does not return the value you are comparing in the if statement.

If you put an alert before if as shown you will easily come to know what is the value here's the code:

function show(tabName) {
//Add this line and you will come to know why it is not working
//alert(document.getElementById(tabName).style.display);
if(document.getElementById(tabName).style.display == "none")
{
document.getElementById(tabName).style.display = "block";
}
else if(document.getElementById(tabName).style.display == "block")
{
document.getElementById(tabName).style.display = "none";
}
}
Brent,

I tried it on Firefox v1.5. I have javascript code having lot of document.getElementById(). Now, when I open an url in Firefox and parallely open the javascript console, I see a lot of errors and warnings on the console.

If instead of document.getElementById() one uses document.forms[0].fieldName
works fine with firefox.

Thanks for the reply and correct me if I'm wrong.
Hi,

I don't know what exactly you are trying to do. I guess you wish to show/hide the div based on the input selected in the select box(Please correct me if I'm wrong).

If the case as above, then you can simply use the visiblity parameter of style attribute of <div> as ---

Hide: document.getElementById(divId).style.visibility="hidden"
Show: document.getElementById(divId).style.visibility="visible"

Hope this helps you!!!