Danny Scott

Greenhorn
+ Follow
since Apr 04, 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 Danny Scott

Hi!
I have the following code in my servlet. I wana call a jsp from the servlet and i'm using a java bean. But when i compile it i get message RequestDispatcher(line 5) class not found and method request.setAttribute(...)not found.(line 3)
I've also read that RequestDispatcher is a interface.....???

1. MemberBean member=new MemberBean(userid);

2. ServletContext xx=getServletContext();
3. request.setAttribute("member",member);
4. String jsp="member.jsp";
5. RequestDispatcher disp=xx.getRequestDispatcher(jsp);
6. disp.forward(request,response);
23 years ago
Hi all!
jsp:usebean id="???" class="myclass" scope="request"
I make an object of my bean class in a servlet.Now what should be given as id in the above tag.
Thanks.
23 years ago