Browse Source

match changes to Tomcat example

PHP-4.0.5
Sam Ruby 26 years ago
parent
commit
5424369f3a
  1. 2
      sapi/servlet/servlet.java
  2. 11
      sapi/servlet/sessions.php

2
sapi/servlet/servlet.java

@ -155,6 +155,8 @@ public class servlet extends HttpServlet {
String servletPath=request.getServletPath();
String contextPath=getServletContext().getRealPath(servletPath);
System.out.println("queryString => " + request.getQueryString());
send(request.getMethod(), request.getQueryString(),
request.getPathInfo(), contextPath,
request.getContentType(), request.getContentLength(),

11
sapi/servlet/sessions.php

@ -43,6 +43,17 @@ Value of Session Attribute:
<br>
<input type=submit>
</form>
<P>GET based form:<br>
<form action="<?php echo $PHP_SELF ?>" method=GET>
Name of Session Attribute:
<input type=text size=20 name=dataName>
<br>
Value of Session Attribute:
<input type=text size=20 name=dataValue>
<br>
<input type=submit>
</form>
<p><a href="<?php echo $PHP_SELF ?>?dataName=foo&dataValue=bar" >URL encoded </a>
</body>
</html>
</body>

Loading…
Cancel
Save