Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.shtml file

 
ravi ckumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
im writing servlets using the weblogic server, where should i keep my .shtml files, i kept them in the public_html file but it did not work, the following are my programs, i did not get any output, where should i keep this file ???
<html>
<body>
<servlet code="http://localhost:7001/s7">
<param name="w" value=9000>
<param name="i" value=6000>
<param name="s" value=6000>
</servlet>
</body>
</html>
import javax.servlet.*;
public class s7 extends GenericServlet
{
public void service(ServletRequest req, ServletResponse res)
{
try{
String s1 = req.getParameter("w");
String s2 = req.getParameter("i");
String s3 = req.getParameter("s");
ServletOutputStream sos = res.getOutputStream();
sos.println(" "+s1 + s2 + s3);
}
catch(Exception e) { }
}
}
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic