Saira Murty

Greenhorn
+ Follow
since Oct 07, 2002
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 Saira Murty

Hi Avi, thanks for your reply. I have jsut posted a pseduo code. the meaning of executeQuery is performing some SQL update. and in con.close() I am releasing the connection and putting it back to pool.
Hi friends,
I want to log information about all uncommitted transactions before calling rollback. or during roll back.
Is there any way to do that?
In my code,I have
setAutocommit(false)
executeQuery()
con.close();
performRollback();

Now in performRollback()is there any way to know about uncommitted transaction?

Saira
Congrats !! that's a v. good score.
Do you have working experience on EJB ?
You are an inspiration for us.
There were about 6 to 7 questions on security, EL has been extensively used,
EJB elements and other on deployment descriptor. Overall it was quite ok.
Was preparing for 3 past months but was not able to devote more than 2 hrs a day due to hectic work schedule. But covered up in the last 1 week.

I had referred to HF, JWEB plus and J2EE specs.
I passed SCWCD1.4 with 92%

I used Head First Servlet and Jsp (an excellent book for SCWCD preparation) and JwebPlus.

Now I want to set my next target. I am not able to decide between SCBCD and UML certification from IBM.

Please advise.
[ March 31, 2005: Message edited by: Saira Murty ]
Can we access request object in the doTag() of a class extending SimpleTagSupport??
This is in reference of HF final mock test , question no 25,page 811
The ans of which appears to be wrong.
The ans is as below

((PageContext)getJspContext()).getRequest()

If the ans is correst, please explain.
Congrats !! Thats really a good score.
I am planning to take SCWCD 1.4 exam on Thursday.
I have done JSTL and EL only from HF book. Is that sufficient ?
Please advise
Thanks Kapil.
I was a little doubtful because I just scored 65% in HF mock exam.
Hi,
I am planning to take SCWCD 1.4 exam on Thursday.
I have got about 80 - 89 % in all the exams of commercial JWebPlus
and 89 % in free mock test by Whizlab
Should I take the plunge?
Are the questions on design patterns in the real exam as confusing as in the mock tests?
I have done JSTL and EL only from HF book. Is that sufficient ?
Please advise

Thanks in advance
Hi friends,
Does SCWCD1.4 cover only core tag library?
or does it also cove I18 actions, SQl actions and XML actions?
Hi Friends.
What is the Difference between HttpSession.getAttribute() and HttpSession.getValue()
I know that method getValue() is deprecated. I just want to know that is there any added advantage of getAttribute() over getValue() ?
-Saira Murty
21 years ago
I want to create a menu with hotkeys in applet using AWT only.
I have 2 frames , the top frame contains the applet(menu).I have used PopupMenu passing MenuShortcut in the conmstructor/calling the setShortcut method of MenuItem. Tho' it displays the short cut key in the PopupMenu( ctrl-C) but does nothing when the shortcut key is pressed.
I have added ActionListener to the MenuItem and it responds to mouseClicks properly.The problem is with the shortcut keys only.I want to use AWT only.
Please give me a viable solution preferably with example
The code is as folls.

(Edited by Cindy to format code)
[ October 08, 2002: Message edited by: Cindy Glass ]
21 years ago
I want to create a menu with hotkeys in applet using AWT only.
I have 2 frames , the top frame contains the applet(menu).I have used PopupMenu passing MenuShortcut in the conmstructor/calling the setShortcut method of MenuItem. Tho' it displays the short cut key in the PopupMenu( ctrl-C) but does nothing when the shortcut key is pressed.
I have added ActionListener to the MenuItem and it responds to mouseClicks properly.The problem is with the shortcut keys only.I want to use AWT only.
Please give me a viable solution preferably with example
The code is as folls.
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
import netscape.javascript.JSObject;
public class PopupMenuEx extends Applet implements ActionListener{
Button btn1;
Button btn2;

PopupMenu popup;
PopupMenu popup1;
public void init() {
setBackground(Color.white);
MenuItem mi;
popup = new PopupMenu("popup1");

MenuShortcut shortcut = new MenuShortcut(KeyEvent.VK_C,false);
mi = new MenuItem("cut");
mi.setShortcut(shortcut);
popup.add(mi);
mi.addActionListener(this);

mi = new MenuItem("copy");
mi.addActionListener(this);
popup.add(mi);
popup.addSeparator();
mi = new MenuItem("paste");
mi.addActionListener(this);
popup.add(mi);


popup1 = new PopupMenu("popup1");


mi = new MenuItem("view");
mi.addActionListener(this);
popup1.add(mi);

mi = new MenuItem("Update");
mi.addActionListener(this);
popup1.add(mi);
popup1.addSeparator();
mi = new MenuItem("Refresh");
mi.addActionListener(this);
popup1.add(mi);

add(popup); // add popup menu to applet
add(popup1); // add popup menu to applet




btn1 = new Button(" File ");
btn1.addActionListener(this);
btn1.setBackground(Color.decode("#093a80"));
btn1.setForeground(Color.white);
btn1.setFont(new Font("Arial",Font.BOLD,11));
btn2 = new Button(" Edit");
btn2.addActionListener(this);
btn2.setBackground(Color.decode("#093a80"));
btn2.setForeground(Color.white);
btn2.setFont(new Font("Arial",Font.BOLD,11));



add(btn1);
add(new Label(" "));
add(btn2);
add(new Label(" "));


enableEvents(AWTEvent.MOUSE_EVENT_MASK);
enableEvents(AWTEvent.KEY_EVENT_MASK);
resize(200, 200);
}
public void processMouseEvent(MouseEvent e) {
if (e.isPopupTrigger()) {
popup.show(e.getComponent(), e.getX(), e.getY());
//popup.show(button, 20,10);
}
super.processMouseEvent(e);
}
public void actionPerformed(ActionEvent e) {
String command = e.getActionCommand();

if(e.getSource()==btn1)
popup.show(btn1, 0,20);
else if(e.getSource()==btn2)
popup1.show(btn2, 0,20);

if (command.equals("cut")) {
//openJSWindow("hello.htm");

}
}
}
[ October 07, 2002: Message edited by: Saira Murty ]
21 years ago