Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

wildfly34 quickstart helloworld

32 views
Skip to first unread message

Martial KIBA

unread,
Jan 8, 2025, 8:51:29 AMJan 8
to WildFly
Dear All,

I am new to wildfly.Just downloaded and start testing the  quickstarts.

When exploring the code of  this helloword program (servlet version) i don't see where the servlet gets called.

May be i don't understand the basics of JEE10.

Can someone points me to a documentation or tell how the servlet gets invoked?

The codes works fine.

Here are the files

Regards.

index.html
HelloWorldServlet.java
web.xml

James Perkins

unread,
Jan 8, 2025, 12:34:38 PMJan 8
to WildFly
When you access http://localhost:8080/helloworld the server defaults to serving the index.html page. That page has metadata to redirect to the servlet. You invoke the servlet by making a request to http://localhost:8080/helloworld/HelloWorld as well.
Reply all
Reply to author
Forward
0 new messages