Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes .shtml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark ".shtml file " Watch ".shtml file " New topic
Author

.shtml file

ravi ckumar
Greenhorn

Joined: Dec 08, 2000
Posts: 18
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .shtml file