Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Response

 
Santosh Maskar
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have one html file and it will take a name as a inpunt, i want to process this name using servlet
Eg.
suppose user entered : Santosh
output is : hello Santosh

this user name is getting accessble in servlet and append the stiring Hello in servert and get back this Hello Santosh on html
[ August 11, 2004: Message edited by: Santosh Maskar ]
 
din dee
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
servlet u set response.setattribute(obj,name);
request.setAttribute("customer", customer);
rd = request.getRequestDispatcher("viewCustomer.jsp");
rd.forward(request, response);

jsp u use request.getattribute(name);



Thanking You
din
 
din dee
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
servlet u set
response.setAttribute(obj,name);
rd = request.getRequestDispatcher("viewCustomer.jsp");
rd.forward(request, response);

jsp u use request.getattribute(name);



Thanking You
din
 
din dee
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
servlet u set RequestDispatcher rd = null;
response.setAttribute(obj,name);
rd = request.getRequestDispatcher("viewCustomer.jsp");
rd.forward(request, response);

jsp u use request.getAttribute(obj);



Thanking You
din
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic