Sergey Lotvin wrote:Additional question. As I call the Servelt first, then I do not have "doGet" "doPost" methods. So how can I start any processes in that Servlet? which method I shall use?
Tapas Chand wrote:
Sergey Lotvin wrote:Additional question. As I call the Servelt first, then I do not have "doGet" "doPost" methods. So how can I start any processes in that Servlet? which method I shall use?
When hyperlink is clicked, it will go to the Servlet and "doGet()" method will be called.
You can write your code in "doGet".
Dave Tolls wrote:So what happens when you click that link?
http://localhost:8084/mS/ns.java
What is action="act"?
And no, I'm not going to another link to see your code. Post it here.
So why did you use something different in the link href?
Sergey Lotvin wrote:
Use just what you put between <url-pattern>...</url-pattern> tags.
And doGet will work in your target Servlet.
Bear Bibeault wrote:...continually ignoring my advice...
permaculture is giving a gift to your future self. After reading this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|