This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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