Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

HASIKA NANAYAKKARA

Greenhorn
+ Follow
since Jun 03, 2001
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 HASIKA NANAYAKKARA

please tell me how to declare a session variable in a servlet and a method to pass parameters between two servlets.(i prefer to have code segments)thanx.
19 years ago
thanx anand.but tell me whether i should set an attribute first in the Servlet-1 and then get it in the other one.please let me know the necessary steps(code segments)
19 years ago
thanx anand.but tell me whether i should set an attribute first in the Servlet-1 and then get it in the other one.please let me know the necessary steps(code segments)
19 years ago
please let me know if it is possible for me to pass attributes from one servlet to another using response.sendRedirect....If it is tell me how it can be done ..Thank you
19 years ago
I GUESS THAT U UPDATE THE DATABASE ON A CLICK EVENT OF A SUBMIT BUTTON;ASSUME THE CAPTION OF THE BUTTON IS "UPDATE" AND THE BUTTON NAME "btnUPDATE".TRY THE FOLLOWING METHOD.IT COULD WORK
<%
String BUTTON=request.getParameter("btnUPDATE");
if(BUTTON==null)BUTTON="NULL" ;
if (BUTTON.equals("UPDATE")){
://WRITE THE REQUIRED DATABASE UPDATE CODE HERE
://WITHIN THE IF CONDITION
}
%>
19 years ago
I AM A DEBUTAN TO THE JAVA WORLD.LET ME KNOW HOW TO CALL A SERVLET FROM ANOTHER SERVLET(REDIRECT).CAN'T I USE THE "REQUEST.GETREQUESTDISPATCHER(...... " METHOD.I DON'T WANT TO GENERATE A HTML PAGE BY THE SERVLET.I JUST WANT TO CALL ANOTHER SERVLET.PLEASE I WANT IT QUICKLY,AND MAKE IT AS SIMPLE AS POSSIBLE.THANKS ALOT.
SAK2H
[This message has been edited by HASIKA NANAYAKKARA (edited June 03, 2001).]
[This message has been edited by HASIKA NANAYAKKARA (edited June 03, 2001).]
19 years ago