Mercurial Hosting > nabble
annotate src/nabble/view/web/user/Advanced2.java @ 69:4bc1fc540265 default tip
update luan
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Sun, 05 Oct 2025 20:45:39 -0600 |
| parents | 18cf4872fd7f |
| children |
| rev | line source |
|---|---|
| 0 | 1 |
| 2 package nabble.view.web.user; | |
| 3 | |
| 4 import nabble.model.User; | |
| 5 import nabble.view.lib.Jtp; | |
| 6 import nabble.view.lib.Shared; | |
| 7 | |
| 8 import javax.servlet.ServletException; | |
| 9 import javax.servlet.http.HttpServlet; | |
| 10 import javax.servlet.http.HttpServletRequest; | |
| 11 import javax.servlet.http.HttpServletResponse; | |
| 12 import java.io.IOException; | |
| 13 import java.io.PrintWriter; | |
| 14 | |
| 15 | |
| 16 public final class Advanced2 extends HttpServlet { | |
| 17 | |
| 18 protected void service(HttpServletRequest request,HttpServletResponse response) | |
| 19 throws ServletException, IOException | |
| 20 { | |
| 21 PrintWriter out = response.getWriter(); | |
|
19
18cf4872fd7f
remove anonymous posting
Franklin Schmidt <fschmidt@gmail.com>
parents:
0
diff
changeset
|
22 User user = Jtp.getUser(request); |
| 0 | 23 if( user==null ) { |
| 24 Jtp.login("You must login to change your settings.",request,response); | |
| 25 return; | |
| 26 } | |
| 27 | |
| 28 out.print( "\r\n<html>\r\n <head>\r\n " ); | |
| 29 Shared.title(request,response,"Advanced Settings"); | |
| 30 out.print( "\r\n </head>\r\n <body>\r\n " ); | |
| 31 | |
| 32 Shared.minHeaderGlobal(request, response); | |
| 33 Shared.profileHeading(request, out, user, "Advanced Settings"); | |
| 34 | |
| 35 out.print( "\r\n<br />\r\n\r\n<table class=\"profile-table\">\r\n <tr>\r\n <td>\r\n <p>Your settings have been updated.<br /><br /></p>\r\n\r\n <p><a href=\"/template/NamlServlet.jtp?macro=user_profile\">Return to menu</a></p>\r\n </td>\r\n </tr>\r\n</table>\r\n" ); | |
| 36 Shared.footer(request,response); | |
| 37 out.print( "\r\n" ); | |
| 38 Shared.analytics(request,response); | |
| 39 out.print( "\r\n</body>\r\n</html>\r\n" ); | |
| 40 | |
| 41 } | |
| 42 } | |
| 43 |
