aspose file tools
The moose likes Servlets and the fly likes Servlet Response Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Servlet Response" Watch "Servlet Response" New topic
Author

Servlet Response

Santosh Maskar
Ranch Hand

Joined: Jul 02, 2003
Posts: 226
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

Joined: Aug 11, 2004
Posts: 9
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

Joined: Aug 11, 2004
Posts: 9
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

Joined: Aug 11, 2004
Posts: 9
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Servlet Response
 
Similar Threads
Servlet to applet communication
Unable to load tag handler class "com.opensymphony.webwork.views.jsp.PropertyTag
SERVLET-CONNECTIVITY
Calling JOptionPane in A servlet Class
Checkbox