please send me the whole code of java wed site

Dani AI

Generated

Asking for "the whole code" for a Java website is too vague to be useful. A web project is a collection of choices (server framework, front end, persistence, build and deployment), so a single drop-in file rarely helps. Both and highlighted the need for clearer goals; the shortest path to a working site is to pick a small target and build it step by step. Below is a practical starter path, quick troubleshooting hints, and resources to get a runnable demo.

  • Decide the goal: static pages, a server-rendered site, or a JSON API for a single-page app.
  • Pick a modern Java stack (Spring Boot is the easiest path for beginners) and scaffold a starter project.
  • Implement one endpoint, verify it runs locally, then add persistence (use an in-memory DB for early testing) and simple templates or a JSON response for a frontend to consume.
  • Build and run with Maven or Gradle; package as an executable jar or deploy to a servlet container when ready.

A tiny example controller (Spring Boot style) that proves the app runs:

@RestController
public class HelloController {
    @GetMapping("/")
    public String home() {
        return "Hello from your Java web app";
    }
}

Quick troubleshooting tips:

  • If you get 404s, check the request mapping and that the server started without errors.
  • For build failures, inspect the top error in the build log (it usually points to the root cause).
  • For DB problems, verify the JDBC URL, credentials, and that migrations/user tables exist.

Resources to scaffold and learn:

When asking for code, include a short spec, what you tried, and any error output. That makes it realistic for someone to post a minimal, working sample tailored to the real need.

Recommended Answers

All 2 Replies

Are you serious?
#1. What is a 'wed site'?
#2. This is the C++ section.
#3. What do you even mean?
#4. If you want to learn java, there are many tutorials on the net, just use google. It only wants to help you.
#5. No to anything else you ask, because you are obviously slightly moronic and cannot read rules of a website.

commented: Excellent points +15

Here is the code:

<html>
 <head>
  <title>This is a title</title>
 </head>
 <body>
   Hello Nurse
 </body>
</html>

Given the thousands of internet sites out there can you understand how unintelligent your question is?

If you have been to told to build a site for an assignment come up with an idea and do some studying.

First learn these:
1) Java
2) HTML
3) Database connectivity with java
4) JSP - Servlets

Then after you have learned those come back with a question

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.