servlet quest
Deepak A L <[email protected]> Thu, 21 Oct 2004 12:07:47 +0530
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
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