Ashish K Sharma

Ranch Hand
+ Follow
since Aug 22, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ashish K Sharma

Even i did googling and found this result.
But this configuration is not working for me.

It is giving me error saying cannot make connection using url='' and diverClass= null.

my java code is not finding the paramaetres stored in server.xml for my datasource setting.

Am i missing something which is not mentioned in tomcat site.

Kindly get back ASAP.

Thanks
Ashish
17 years ago
Hi,
can anyone provide me code for making a database connection in Tomcat using datasource configuration in server.xml.

my code doesn't seem to pick parameters values from resource specified in global-resources.

Thanks,
Ashish
17 years ago
Hi All,

I am facing issue in Netscape 8.1.3 with focus of elements.
It is automatically trying to set focus to the first anchor tag that it finds on page.

I am running the browser in Internet explorer mode.

Does anyone knows how to resolve this.

Thanks,
Ashish Sharma
Hi All,

We are using xml and xslt combination to show content in our Application.
We are using jstl x:transform to produce the html from the xml and xslt combination.

But while transforming it is adding unwanted namespace tag <?xml version="1.0" encoding="UTF-8"?> in the output.

Is there a way to put this off?

Thanks,
Ashish Sharma
Hi All,

I am trying to setup RAD with tomcat 5.5.17.
All setup i mean adding server , adding project to server is complete.
Server is also getting started and stopped via RAD.
But even when I am trying to access http://localhost:8080, it is giving me an error saying

HTTP Status 404 - /
--------------------------------------------------------------------------------

type Status report

message /
description The requested resource (/) is not available.



Kindly help at the earliest.

Regards,
Ashish
Hi All,
I am using jdk 1.4.1.
this is not identifying DST start date as 11th of march, it's still getting DST start date as 1st of april.
I am trying to get time for time zone "America/Los_Angeles".
So for 27th of march it's giving me PST not PDT which is required.

Kindly let me know how can i retirve the time zone value as per the new norms.

Ashish
18 years ago
Hi , You can differ input boxes by ID's, by adding some counter field against their ID's, and later get the input boxes by ID to put the calendar value in it.
Hope this helps.
Send some sample code for more clarification.

Ashish
Thanks for your inputs.
Yes it's abour object instances for sure.
I believe i need to gain more knowledge on design patterns first.
Thanks again
18 years ago
Try
Thanks Kyle (sorry for misspelling last time)
18 years ago
Hi,
I want to Notify an class A whenever something happenes to another class B, i mean any method called, any variable updated?
How can i achieve this in java?

Ashish
18 years ago
Hi Kelly and Ulf,
Thanks for the help.
But that left me with one more query.

Why aint i able to make clone of a StringBuffer object, it's giving me an compile time error saying clone() is protected in java.lang.Object???

Any pointers to this?

Ashish
18 years ago
For second point,
say my session gets invalidated from DD, via session-timeout element, how can i call my user defined method then?
Isn't there some standard way to perform this??

Ashish
18 years ago
1) How do i know weather a session exists or not?
what i know is that i can call request.getSession(false), if it gives me null session already exists? Is there any other way?

2) whenever a session is invalidated i want to perform some special functionality, inside which method can i perform these actions?

Ashish
18 years ago
Hi,
I have problem in making a object immutable in java.
The scenario which i am trying is an object whose constructor take StringBuffer as arguement.

1) I have made StringBuffer variable as private and final.
2) i ahve made class as final as well.

Still when i am appending the variable value from outside, the value of string buffer is changing.
Java doesn't letting me clone the strignbuffer value as well.
Kindly suggest how to make this happen.

Please find the sample code here

[ February 18, 2007: Message edited by: Ashish K Sharma ]
18 years ago