-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of Test #6 in Servlet and Gemini; updated Gemini version.
- Loading branch information
Brian Hauer
committed
Jun 4, 2013
1 parent
c9f3896
commit cdffad8
Showing
8 changed files
with
74 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+1.18 MB
gemini/Docroot/WEB-INF/lib/gemini-1.3.6.jar → gemini/Docroot/WEB-INF/lib/gemini-1.3.7.jar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
{{<layout}} | ||
{{$title}}Fortunes{{/title}} | ||
{{$body}} | ||
<table> | ||
<tr> | ||
<th>id</th> | ||
<th>message</th> | ||
</tr> | ||
{{#.}} | ||
{{#req}} | ||
<tr> | ||
<td>{{id}}</td> | ||
<td>{{message}}</td> | ||
</tr> | ||
{{/.}} | ||
{{/req}} | ||
</table> | ||
{{/body}} | ||
{{/layout}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package hello; | ||
|
||
import java.io.*; | ||
|
||
import javax.servlet.*; | ||
import javax.servlet.http.*; | ||
|
||
/** | ||
* Plaintext rendering Test | ||
*/ | ||
@SuppressWarnings("serial") | ||
public class PlaintextServlet extends HttpServlet | ||
{ | ||
|
||
@Override | ||
protected void doGet(HttpServletRequest req, HttpServletResponse res) | ||
throws ServletException, IOException | ||
{ | ||
// Set content type to text/plain. | ||
res.setHeader(Common.HEADER_CONTENT_TYPE, Common.CONTENT_TYPE_TEXT); | ||
|
||
// Write plaintext "Hello, World!" to the response. | ||
try | ||
{ | ||
res.getWriter().write("Hello, World!"); | ||
} | ||
catch (IOException ioe) | ||
{ | ||
// do nothing | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters