Title: Message
hi i have a servlet below
how do i call it from my jsp page
 
 
import java.util.*;
import java.lang.*;
import javax.servlet.*;
import java.servlet.http.*;
import java.io.*;
 
public class MyServlet extends HttpServlet{
 
 public String getUrl(HttpServletRequest req){
  String reqUrl= req.getRequestURL().toString();
  String queryString = req.QueryString();
  if(queryString != null){
    reqUrl += "?" + queryString;
  }
  return reqUrl;
 }
}
 
___________________________________________________________________________ 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

Reply via email to