Anand Shrivastava

Ranch Hand
+ Follow
since Jul 22, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
11
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Anand Shrivastava

Dear friends,

I have installed java 7 on my machine. However, when i try to compile any servlet it is not able to locate any of the packages relating to servlets i.e. javax.servlet.* and javax.servlet.http.*.

I surfed the net and found that I need to have jsdk.jar. However, despite rummaging the net for an entire week, I could not find jsdk.jar. I was also directed to a page which says that I should download the servlet development kit, but the links provided in most of the pages on the net are old and redirect me to the oracle sun site, which does not have any such development kit. Now, it has become a nightmare for me to compile even a trifle servlet.

Kindly help,
Thanks in anticipation.

Anand.
5 years ago
Dear friends,

I am not able to read the data sent from a jsp as xml. The jsp which sends the data as xml is as under:



And the relevant function of the receiving jsp which has to read this sent data is as under:



However, I am not able to read the firstname and after giving the alert of editing, the script stops. Please help.
5 years ago
JSP
Dear friends,

Thanks a lot. I figured it out.
The URL is malformed
It was


whereas, "&" should be used in place of "?" and it should be



Thanks a lot friends.
6 years ago
JSP
Dear friends,

Kindly consider the following function:



And the following jsp file which is used for saving in database only



However, the ajax is not working and the data is not getting saved and i get the status as 0. Please help.

6 years ago
JSP
Dear friends,

After lot of mind boggling the thing which worked was
before iterating over the rows for removal

I add the lne

partTbl.removeEditor();

and everything works now
I wonder why.

But thanks to the Almighty and you guys
6 years ago
That is why I have incremented rowdeleted to keep track of relative position of a row with respect to the loop after the row is deleted. The logic works pretty fine without that listener. As soon as I attach that listerner it starts giving bizarre result. I have even done that backward loop iteration. It also gives the same result. The problem is somewhere with the listener.
6 years ago
Dear friends,

I have a JTable called partTbl with DefaultTableModel. However, I have attached the following listener is attached to it:


The above listener makes sure that whenever a user preses tab and the cell gets focus it automatically comes to the editing mode which was what I wanted.

However, when I try to remove a row this listener interferes with it and un-intended rows get deleted. This I have verified, because when I remove the above
listener, the following code for removing the rows works very well, which along with the listener gives bizarre results:

6 years ago
I am posting the entire code for your convenience

6 years ago
I am using netbeans and I have written this code in netbeans txtphone focuslost event section. I think so far as over-riding etc. are concerned, netbeans must have handled those issues.
As I have written the code in txtphone focuslost event section, I think it should be invoked only when txtphone field looses focus.
6 years ago
So far as UI is concerned, even I found netbeans better than eclipse.
6 years ago
I noticed one more thing. When the message dialog box appears for the first time, and if you drag it, there lies an identical dialog box beneath it and one more beneath it. This makes me to think that three dialog boxes, one below the other, are being opened probably.
6 years ago
Dear friends,

Please see the following code



Here, if the textfield is left empty, the result string is displayed and txtphone field gains focus. So far so good. But as soon as it gains focus it again automatically comes to this focuslost method thrice. I fail to understand, why this is happenning.

Please help
6 years ago
I really thank all of you guys for such an exhaustive discussion
I dont know much, but I wud suggest you to acquire as many certs as possible and keep your artillery afresh always.
6 years ago