File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Servlet Response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
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://aspose.com/file-tools
 
subject: Servlet Response
 
Similar Threads
Servlet to applet communication
Calling JOptionPane in A servlet Class
SERVLET-CONNECTIVITY
Checkbox
Unable to load tag handler class "com.opensymphony.webwork.views.jsp.PropertyTag