Commit 1f07196b authored by Fabien Triolet's avatar Fabien Triolet
Browse files

Modified generated code for a servlet

parent 87ff2108
/** /**
* $Id: Servlet.java,v 1.7 2002-12-04 12:04:34 triolet Exp $ * $Id: Servlet.java,v 1.8 2003-01-13 09:25:44 triolet Exp $
* *
* Transmorpher * Transmorpher
* *
...@@ -175,7 +175,7 @@ public class Servlet extends MainProcess { ...@@ -175,7 +175,7 @@ public class Servlet extends MainProcess {
iFile.writeln(8,"for (Enumeration a = servletParameters.getNames() ; a.hasMoreElements() ;){"); iFile.writeln(8,"for (Enumeration a = servletParameters.getNames() ; a.hasMoreElements() ;){");
iFile.writeln(10,"String name = (String)a.nextElement();"); iFile.writeln(10,"String name = (String)a.nextElement();");
iFile.writeln(10,"if (process.getParameter(name)!=null){"); iFile.writeln(10,"if (process.getParameter(name)!=null){");
iFile.writeln(12,"if (process.getParameter(name).equals(servletParameters.getParameter(name))){"); iFile.writeln(12,"if ((process.getParameter(name).equals(servletParameters.getParameter(name)))||(process.getParameter(name).equals(\"*\"))){");
iFile.writeln(14,"test=true;"); iFile.writeln(14,"test=true;");
iFile.writeln(12,"}"); iFile.writeln(12,"}");
iFile.writeln(12,"else{"); iFile.writeln(12,"else{");
...@@ -184,7 +184,7 @@ public class Servlet extends MainProcess { ...@@ -184,7 +184,7 @@ public class Servlet extends MainProcess {
iFile.writeln(12,"}"); iFile.writeln(12,"}");
iFile.writeln(10,"}"); iFile.writeln(10,"}");
iFile.writeln(10,"else{"); iFile.writeln(10,"else{");
iFile.writeln(12,"test=false;"); iFile.writeln(12,"test=true;");
iFile.writeln(10,"}"); iFile.writeln(10,"}");
iFile.writeln(8,"}"); iFile.writeln(8,"}");
iFile.writeln(8,"if (test){"); iFile.writeln(8,"if (test){");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment