"Arora, Vinay" wrote: > I have one request - I want to know the difference between callpage( ) and > sendredirect( ) methods in JSP. > The callpage() call (which has been replaced by <jsp:forward> in the current specification) transfers control to a different JSP page (or servlet) within the same application on the server, without involving the client again. In addition, under servlet API 2.1 or later, the calling page can pass additional attributes in the request to the called page, using request.setAttribute(). A sendRedirect() call sends a message back to the client, telling them to ask for a different URL instead. If you want to end up the same place, this is going to take longer. However, you can use sendRedirect() to send the user to a different web application, or a different web site altogether -- <jsp:forward> only works within the same web application. Craig McClanahan ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
