Montano Mazvik

Greenhorn
+ Follow
since Feb 07, 2007
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 Montano Mazvik

Thanks a lot Nitesh, backport solved my problem

Cheers.
Hi All,

I am using jdk1.4, I got a problem in following peice of code.

My requirement is that 'refreshAll' function should be executed by one thread/request at a time AND meanwhile if any other thread/request attempts to run it then user should be prompted with error message that "operation already being performed by other user".

if(operation.equals("refreshAll")){
synchronized(this){
refreshAll(scope);
}
}

Please let me know how can I find out if a thread is already locked ?

Thanks
Hi there,

I have requirement to use <C:OUT inside value="" of my custom tag.

something like below.

<wda:input type="text"
name="directDebit"
value="<c:out value="${requestScope.VB.directDebit}"/>"
</wda:input>

but it give me exception

Attribute ${requestScope.VB.directDebit} has no value]

However when use same in normal input tag its working fine.

Please note that I am encoding the attribute contents in my tld if content doesn't start and ends with # I am returning the same content back. for e.g. if value="aaa" then same will be set in value attribute & value="#somekey#" then different value would be set.

Ideally speaking my tld should return back the current content which is "<c:out value="${requestScope.VB.directDebit}"/>" since it doesn't starts with # and the same should be taken care by JSTL.

I tried debugging but it's not even reaching my TLD code.

I am not sure what I am doing is correct, but I guess it should work somehow.

Please give my your inputs in fixing this problem
[ July 04, 2008: Message edited by: Bear Bibeault ]
15 years ago
JSP
Thanks...will move the jsps from web-inf
15 years ago
I am sorry... Actually I am supposed to make use of EL to display data.

I got over the problem now..

Thanks.
Hi,

I am trying to run a jsps placed under WEB-INF (due to security issues).

Although JSPs are getting run on server however images/javascript are not getting loaded.

Its giving broken link message in all JSPs "It's invalid to link to resources under WEB-INF".

Please someone suggest how to get over this problem.

Thanks in Advance.
15 years ago
I need to display some data in textarea of my jsp,

How can i achieve this despite of no value attribute in textared ?


Please suggest.

Thanks
Can someone help me in this...??

Thanks in Advance !!
16 years ago
Ben,

I am using RAD6.0 & I can see that properties file under

WEB-INF/classes/com/bba/mir/RegisteredCacheElements.properties

but still it is not getting loaded...!!
[ March 26, 2008: Message edited by: Montano Mazvik ]
16 years ago
Hello Ben,

have Kept the file into the JavaSource folder under the package "com.bba.mir"

I tried keeping it under the resources folder but didn't work !!

pls suggest.

Thanks.
16 years ago
Hi,

I am getting following exception when I try to load properties file using resource bundle into the init() method of my servlet which is
<onloadstartup>1<onloadstartup>.

My servlet code:

prop = new Properties();
ResourceBundle conf = ResourceBundle.getBundle("com.bba.mir.RegisteredCacheElements.properties");



Failed to load servlet: java.util.MissingResourceException: Can't find bundle for base name com.hsbc.us.mir.RegisteredCacheElements.properties, locale en_US


[BPSouther: Removed URGENT from post or subject line.]
[ March 26, 2008: Message edited by: Ben Souther ]
16 years ago
Hi,

I want to print Current time of US, I tried with following code but
its not working, its printing time in IST which my current locale.


Calendar calendar = Calendar.getInstance(Locale.US);
System.out.println(" Time "+calendar.getTime());
Calendar calendar1 = Calendar.getInstance(new Locale("EN","US"));

Can somebody help ?

Thanks in Advance.
[ March 11, 2008: Message edited by: Montano Mazvik ]
16 years ago
Thanks a Lot Jasper and ULF I think its working, now I will try to implement this in my application.

Thank you very much guys apriciate it.
16 years ago
Thanks for the reply Ulf.

I shouldn't be hesitating to tell you that I am getting stuck in setting up this time using date object.

I create date object
Date dt = new Date();

This will return me current date & time then I need to set this timing for every day 6.40 am.but don't know how to do it.

I tried dt.setHours() which is depricated & also dt.setTime(in miliseonds);
but not getting the correct way to do it.

Can you please tell me How to create a Date object that points to 6.30 AM
tomorrow and 24hrs period. I would apriciate that.

Thanks again !!
16 years ago
Hi,

I need to schedule a task for everyday at 6.30 AM, I am trying to use Java.Util.Timer and TimerTask to do so, however I am facing a problem in using following API

schedule(TimerTask task, Date time)
Schedules the specified task for execution at the specified time.

scheduleAtFixedRate(TimerTask task, Date firstTime, long period)
Schedules the specified task for repeated fixed-rate execution, beginning
at the specified time.

My Problem is I am not able to set the Timing which is 6.30 Am.

Please provide your valuable solutions.

Thanks in advance.
16 years ago