Marilyn Monickam

Ranch Hand
+ Follow
since Jun 05, 2001
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 Marilyn Monickam

Hi Andris,

I tried to use the encoder as the ampersands in the URL didn't get passed well.But thanks to Brian that I looked into the BrowserLauncher source code.
Starting and ending with quotes in the URL took care of the ampersands.

Thanks
Marilyn
19 years ago
Hi All,

It is required to open a page in internet explorer from a java application.

Here is the same code.

A combination of the url1 and cmd1 works fine.But when I use a combination
of url1 and cmd2 "http://"is prefixed in the url.
and the page is not displayed.
Could somebody help me with this ?.The url is again prefixed with "http:" inapite of the url already containing the protocol.

Thanks,
Marilyn

[ Jess added UBB [code] tags to preserve whitespace, check 'em out! ]
[ May 20, 2004: Message edited by: Jessica Sant ]
19 years ago
Hi
I would like to know how a popup window can be closed from another window that is not its parent. Another controller jsp opened the popup.
Many thanks
Marilyn
Hi,
Can somebody give me a site that offers free sms services to a mobile in Australia.
Thanks
Marilyn
20 years ago
Can I change the maxlength of a textfield dynamically using javascript.
For eg. As my option varies for a select combo I want to change the maxlength of a text field.
Hi
Could you let me know if there is a way to determine the size of a session object or any object?
Thanks
Marilyn
20 years ago
Hiep,
So did you try adding this statement to get the long value?
System.out.println(new java.util.Date(943921260).getTime());
Marilyn
20 years ago
Hiep,
The Date constructor that takes a long

'Allocates a Date object and initializes it to represent the specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.'
So if you construct a date object with this constructor and if you want to get the same long printed you should be using the method getTime() on the object created.
Hope this helps
Marilyn
20 years ago
Hi Gene,
Here's the code giving the from and to formats.
from format is what your database stores it as and to format is what you want that to be converted to. I found it to be working fine.
import java.text.*;
import java.util.*;
class DateEx{
public static void main (String args[]) throws ParseException{
String fromFormat = "yyyyMMddhhmmss";
String dateString = "20030922122150";
String toFormat = "EEEE, MMMM dd, yyyy hh:mm:ss a";
SimpleDateFormat sdFormat = new SimpleDateFormat(fromFormat);
Date date = sdFormat.parse(dateString);
sdFormat = new SimpleDateFormat(toFormat);

System.out.println(sdFormat.format(date));
}
}

Marilyn
20 years ago
I want to find out if today's date is after a particular date.
If my current date is
CD - Wed Mar 19 17:40:13 IST 2003
and the other date I want to compare to is
OD - Wed Mar 19 00:00:00 IST 2003
If I want to treat these two as equals what do i do?
In other words from the date object how can I get only yyyy-MM-dd and compare it with another.(before or after)
Thanks
Marilyn
20 years ago
Its the second thing I wanted to know "if there is a method that will tell me to use " |--" in this situation ". Will have to try a lot of combinations now :-)
21 years ago
Thanks Jim
Is there a method available that can return the pattern if I give a string?

Marilyn
21 years ago
Hi
Using the javax.util regex package' Pattern matcher is it possible to write a Pattern to check if a string does not contain two or more consecutive hyphens or spaces
Thanks
Marilyn
21 years ago
Hi
Many thanks to Arun and ilja for pointing out.
Thank You
Would it be better for
1) The string object to be converted to a Date
object while comparing or
2) The Date object to be converted to a String object.
and for what reason?
21 years ago
Hi
I have a string object of the format "mm/dd/yyyy" eg. 01/17/2002
I need to compare it with the current date

When I convert the current date to a string of format mm/dd/yyyy using simple date format i seem to be getting inconsistent results.

like 33/17/2002 and 13/17/2002.

Can somebody help.

Thank You
21 years ago