-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Jakarta Servlet chapter for Servlet 6.0 (part of Jakarta EE 10) #74
Comments
@markt-asf and @stuartwdouglas can you take a look at this in the next couple of days? I'd love to know (a) if this looks accurate for Jakarta EE 10 and (b) if you or someone on the team can make this change. |
@jhammen this is a good candidate. |
Done. You can advance. |
First example mentioned is "hello-servlet" which does not exist at the path given, looks like it was repaced with a "hello2" example which has similar code and an additional servlet. So the copy needs to be updated, code snippets should use the new code and links should point to the new example paths. The "hello2" example does not appear to have any deprecated methods, works fine with tomcat:10.1.16 |
Please no. It's the other way round. Surely the old ones will work fine but they expose outdated/bad practices these days. I am aware that the tutorial examples needed to catch up this but then Eclipse's budget for the initial work ran out and I've higher priorities in my free time (OmniFaces and Jakarta Faces itself, for example). I do however have a complete rewrite of Jakarta Faces chapter of the EE10 tutorial in my mind. So please leave that to me if possible. Note that its original source, the Faces 4.0 spec, has already been rewritten by me ~2y ago: https://jakarta.ee/specifications/faces/4.0/jakarta-faces-4.0 Btw I would love to continue reviewing the servlet chapters because I also had a lot of improvements for these in my mind. The existing examples are horribly outdated. |
Oh wait. They were already created. The PR is simply still pending review/merge. eclipse-ee4j/jakartaee-examples#80 The difficulty is that review/merge is beyond our control because repo is in different organization. As of now only @arjantijms can do that. |
OK that all makes sense and I'm glad this already fixed pending PR. @BalusC I don't want to get in the way if you have this update under control, I'm happy to step back. Did you want to assign me tickets for things you intended to do? Otherwise maybe @kito99 can assign other sections for me to work while I have the time to spare |
Current ticket is only for "Jakarta Servlet" so that's completely fine :) |
OK cool I'll continue, but maybe will wait until that PR is merged as I'm not sure it makes a lot of sense to review the examples before they are up to date |
@jhammen you can update the text in the meantime if you want.. |
You're right - the 6.0 links are now added/updated, please see the above commit reflected here: |
@jhammen it would also be nice to add a couple sentences about the new feature to get a UUID and other connection details for an incoming request to the https://jakartaee.github.io/jakartaee-documentation/jakartaee-tutorial/current/web/servlets/servlets.html#_getting_information_from_requests section. See #91. |
As to my concerns, eclipse-ee4j/jakartaee-examples#80 was finally merged last June. So I don't have any technical concerns/blockers since. |
For sure, will take a look this week |
thanks @jhammen ! |
I've reviewed and tested the servlet examples mentioned in this chapter and found no issues with deprecated methods. Examples tested were:
There are some smaller snippets that are not official examples e.g. TimeZoneHandler, ShutdownExample, these also look free of deprecated or removed methods. |
@kito99 please check above PR with content changes. I'm not seeing much else to add or change for Servlet 6.0 so let me know if there's anything left for this issue (BTW it's already a pretty long chapter, may want to chop it up into more than one page at some point.) |
Current tutorial chapters for Servlet: https://jakartaee.github.io/jakartaee-documentation/jakartaee-tutorial/current/web/webapp/webapp.html
For background, here are the changes for Servlet 6.0:
The only change that may affect the tutorial is the removal of deprecated features.
Please do the following:
The text was updated successfully, but these errors were encountered: