http://www.apl.jhu.edu/~hall/java/Se...ial/index.html http://www.gulland.com/courses/JavaS...sp_objects.jsp
request.getServletPath()
int sep = request.getServletPath().lastIndexOf("/");
int dot = request.getServletPath().lastIndexOf(".");
out.println(request.getServletPath().substring(sep +1,dot));
Código PHP:
out.println(", OS Server: "+System.getProperty("os.name" ) +"<P>request.getProtocol():"+request.getProtocol() +"<P>request.getServerName(): "+request.getServerName() +"<P>request.getRemoteHost():"+request.getRemoteHost() +"<P>request.getRequestURI():"+request.getRequestURI() +"<P>request.getServletPath():"+request.getServletPath() +"<P>request.getContextPath()"+request.getContextPath() +"<P>request.getScheme()"+request.getScheme() +"<P>request.getRemoteUser()"+request.getRemoteUser());
Código PHP:
<%
String headername = "";
for(Enumeration e = request.getHeaderNames(); e.hasMoreElements();){
headername = (String)e.nextElement();
%>
<tr>
<td><b><%="<P>"+ headername +" : "+request.getHeader(headername)%></b></td>
</tr>
<%}%>
SOLUCION: Cita: <title>CPAG boli <%= request.getServletPath().substring(request.getServ letPath().lastIndexOf("/")+1,request.getServletPath().lastIndexOf(".") ) %></title>