Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 302185 Details for
Bug 404165
Please stabilize dev-java/resin-servlet-api-3.1.12
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
SampleServlet.java
SampleServlet.java (text/plain), 881 bytes, created by
Krzysztof Pawlik (RETIRED)
on 2012-02-16 18:37:17 UTC
(
hide
)
Description:
SampleServlet.java
Filename:
MIME Type:
Creator:
Krzysztof Pawlik (RETIRED)
Created:
2012-02-16 18:37:17 UTC
Size:
881 bytes
patch
obsolete
>import java.io.IOException; >import java.io.PrintWriter; > >import javax.servlet.ServletConfig; >import javax.servlet.ServletException; >import javax.servlet.http.HttpServlet; >import javax.servlet.http.HttpServletRequest; >import javax.servlet.http.HttpServletResponse; > >public class SampleServlet extends HttpServlet { > @Override > public void init(ServletConfig config) throws ServletException { > super.init(config); > } > > protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { > String name = request.getParameter("name"); > response.setContentType("application/xhtml+xml"); > > PrintWriter out = response.getWriter(); > out.println("<html><head>"); > out.println("<title>Page title</title>"); > out.println("</head><body>"); > out.println("<h1>Hi " + name + "</h1>"); > out.println("</body></html>"); > out.close(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 404165
: 302185