This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

rohit sen

Greenhorn
+ Follow
since Jan 25, 2010
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 rohit sen

That works. Thanks for the quick reply!
8 years ago
Hello

Here is my code. Is there a better way to do this without using the string replace function? I can use regex to replace all alphabets with spaces but wanted to know if I can somehow specify the characters to ignore when converting the string to date.




Thanks in advance
8 years ago
Darryl, that works! Thanks a lot!

Thanks Michael for the tip. I would have tried to to do it that way as the last option.

8 years ago
Hello

A Jmenu automatically collapses, if we click anywhere outside it. Is there a way to replicate this action without clicking?

I tried menu.setSelected(false). This un-selects the menu but it still remains open.

I tried this ans still the menu and menu item is un-selected but they remain open


Thanks in advance.
8 years ago
Thanks for that information.
8 years ago
Doesn't matter if it is a JMenuItem or JMenu. FocusListener doesn't seem to work on both.
8 years ago
Hi

This is my code. I don't see the focus events when the menu is focussed / unfocussed. Am I missing something here? How can I capture focus events on JMenuItem?



Thanks in advance
8 years ago
Hello Everyone

Here is my code. When I run this, I just see a empty box without scroll bars. I think the scroll bars show up automatically as the text size increases. But I don't see the text field in the Scroll Pane. What am I missing here?





Thanks
9 years ago
Hello All

I know I am supposed to post this in results section but I had some questions which might be useful to future test takers.

First, what is the questionnaire about test takers experience before the actual exam begins? Do the answers change the questions we get? Because I answered everything as 'intermediate' except for J2EE patterns to which I answered 'novice'. And I got about 12 questions on patterns. I always thought I wouldn't get more than 4 or 5 questions on patterns. Is this just a coincidence?

Second, I read somewhere in HFSJ that we wont be tested on HTML knowledge but there was a question in which choosing the correct answer actually comes down to your knowledge of HTML. I am very sure of this because the actual EL code is exactly the same and the only difference is the way it should be displayed and that needs HTML knowledge.

Other than that I felt it would really be great if they could show us the correct answers because I went through all the answers more than once and had about 50 mins left. Still I got 6 answers wrong. I guess those 6 questions will remain a unsolved mystery to me.

Thanks!
That was quick! Thank you for the answer. That question has been bothering me for a while now.
Hello All

If the HttpServlet abstract class implements all the doXXX methods, why is it an error if a 'get' request is made and there is no doGet() in the servlet? Why doesn't the inherited doGet() run and display a empty page?

Thanks!

Bear Bibeault wrote:By the way, the tagdir directive is unnecessary when the tag files are declared in a TLD.



Thank You..didn't know that.
Ok...Thank You!

I just wanted to know if I was missing something or I did not understand properly because there is usually a very good reason whenever i see a redundancy other that "specs say so".
When the location of tag files is already standardized i.e WEB-INF/tags or WEB-INF/tags/moreTags etc, whats the point in again giving the same path in tag dir?
Also even If I give tagdir='WEB_INF/someDir', it wont look for tags in that folder right? So I don't see the use of giving a tagdir at all. But why is it mandatory?