hi all , my question is how to create a hypertext link in servlet so if the user click it, it shows another web page
or a message .

Recommended Answers

All 3 Replies

You would write it teh smae way you would in html. just remember to escape the double quotes in the servlet.

It should look something like this:

out.println("<a href=\"http://www.google.co.za\">google</a>);

thank you I really appreciate your help

My pleasure.

Please mark as solved if the answer solved your problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.