  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | servlet quest | servlet quest 2004-10-21 - By Deepak A L
Back 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 listserv@(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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=661323606-21102004><FONT face=Arial size=2>hi i have a servlet below </FONT></SPAN></DIV> <DIV><SPAN class=661323606-21102004><FONT face=Arial size=2>how do i call it from my jsp page </FONT></SPAN></DIV> <DIV><SPAN class=661323606-21102004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><SPAN class=661323606-21102004><FONT face=Arial size=2>import java.util.*;<BR>import java.lang.*;<BR>import javax.servlet.*;<BR>import java.servlet.http.*;<BR>import java.io.*;</FONT></SPAN></DIV> <DIV> </DIV> <DIV><SPAN class=661323606-21102004><FONT face=Arial size=2>public class MyServlet extends HttpServlet{</FONT></SPAN></DIV> <DIV> </DIV> <DIV><SPAN class=661323606-21102004><FONT face=Arial size=2> public String getUrl(HttpServletRequest req){<BR> String reqUrl= req.getRequestURL().toString();<BR> String queryString = req.QueryString();<BR> if(queryString != null){<BR> reqUrl += "?" + queryString;<BR> }<BR> return reqUrl;<BR> }<BR>}</FONT></SPAN></DIV> <DIV><SPAN class=661323606-21102004></SPAN> </DIV></BODY></HTML> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff SERVLET-INTEREST". <p> 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 <p>
|
|
 |