• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet Response

 
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic