{"id":31738153,"url":"https://github.com/robert076/jsp-web","last_synced_at":"2025-10-09T09:53:24.744Z","repository":{"id":296248818,"uuid":"992741496","full_name":"Robert076/jsp-web","owner":"Robert076","description":"(UNI ASSIGNMENT) Web application for maintaining a collection of URLs for a list of users. Each user can add or delete URLs from his/her collection.","archived":false,"fork":false,"pushed_at":"2025-06-17T17:50:13.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-17T18:44:38.442Z","etag":null,"topics":["crud","java","jsp","login","register","webapp"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Robert076.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-29T16:31:22.000Z","updated_at":"2025-06-17T17:50:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0efce4b-4712-4d69-9c23-338cf8aedd9c","html_url":"https://github.com/Robert076/jsp-web","commit_stats":null,"previous_names":["robert076/jsp-web"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Robert076/jsp-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robert076%2Fjsp-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robert076%2Fjsp-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robert076%2Fjsp-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robert076%2Fjsp-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Robert076","download_url":"https://codeload.github.com/Robert076/jsp-web/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robert076%2Fjsp-web/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001068,"owners_count":26083022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crud","java","jsp","login","register","webapp"],"created_at":"2025-10-09T09:53:17.737Z","updated_at":"2025-10-09T09:53:24.731Z","avatar_url":"https://github.com/Robert076.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL Manager Web Application\n\nA JSP/Servlet web application for managing URLs with user authentication and session management.\n\n## Prerequisites\n\n- macOS (tested on macOS 23.6.0)\n- Homebrew package manager\n- Java Development Kit (JDK) 17 or later\n- MySQL 8.0 or later\n- Maven 3.8 or later\n- Tomcat 9\n\n## Installation Steps\n\n1. **Install MySQL**\n\n   ```bash\n   brew install mysql\n   brew services start mysql\n   ```\n\n2. **Install Tomcat**\n\n   ```bash\n   brew install tomcat@9\n   ```\n\n3. **Clone the repository**\n\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd jsp-web\n   ```\n\n4. **Set up the database**\n\n   ```bash\n   mysql -u root \u003c src/main/resources/schema.sql\n   ```\n\n5. **Configure database connection**\n   Edit `src/main/resources/database.properties`:\n   ```properties\n   db.url=jdbc:mysql://localhost:3306/url_manager?useSSL=false\u0026serverTimezone=UTC\n   db.username=root\n   db.password=your_password_here\n   db.driver=com.mysql.cj.jdbc.Driver\n   db.poolSize=10\n   ```\n\n## Running the Application\n\n1. **Build the project**\n\n   ```bash\n   mvn clean package\n   ```\n\n2. **Deploy to Tomcat**\n\n   ```bash\n   cp target/url-manager-1.0-SNAPSHOT.war /opt/homebrew/opt/tomcat@9/libexec/webapps/\n   ```\n\n3. **Start Tomcat**\n\n   ```bash\n   /opt/homebrew/opt/tomcat@9/libexec/bin/startup.sh\n   ```\n\n4. **Access the application**\n   Open your browser and navigate to:\n   ```\n   http://localhost:8080/url-manager-1.0-SNAPSHOT/login\n   ```\n\n## Stopping the Application\n\n1. **Stop Tomcat**\n\n   ```bash\n   /opt/homebrew/opt/tomcat@9/libexec/bin/shutdown.sh\n   ```\n\n2. **Stop MySQL (optional)**\n   ```bash\n   brew services stop mysql\n   ```\n\n## Troubleshooting\n\n1. **If Tomcat fails to start**\n\n   - Check Tomcat logs:\n     ```bash\n     tail -f /opt/homebrew/opt/tomcat@9/libexec/logs/catalina.out\n     ```\n   - Verify Tomcat is running:\n     ```bash\n     ps aux | grep tomcat\n     ```\n\n2. **If database connection fails**\n\n   - Verify MySQL is running:\n     ```bash\n     brew services list\n     ```\n   - Check database credentials in `database.properties`\n   - Ensure the database exists:\n     ```bash\n     mysql -u root -e \"SHOW DATABASES;\"\n     ```\n\n3. **If application is not accessible**\n   - Verify the WAR file is deployed:\n     ```bash\n     ls -l /opt/homebrew/opt/tomcat@9/libexec/webapps/\n     ```\n   - Check if the application directory exists:\n     ```bash\n     ls -l /opt/homebrew/opt/tomcat@9/libexec/webapps/url-manager-1.0-SNAPSHOT/\n     ```\n\n## Project Structure\n\n```\njsp-web/\n├── src/\n│   ├── main/\n│   │   ├── java/\n│   │   │   └── com/\n│   │   │       └── urlmanager/\n│   │   │           ├── dao/\n│   │   │           ├── model/\n│   │   │           ├── servlet/\n│   │   │           └── util/\n│   │   ├── resources/\n│   │   │   ├── database.properties\n│   │   │   └── schema.sql\n│   │   └── webapp/\n│   │       ├── WEB-INF/\n│   │       │   └── web.xml\n│   │       ├── css/\n│   │       │   └── style.css\n│   │       └── views/\n│   │           ├── login.jsp\n│   │           ├── register.jsp\n│   │           ├── urls.jsp\n│   │           └── edit-url.jsp\n└── pom.xml\n```\n\n## Features\n\n- User authentication (login/register)\n- Session management\n- URL management (add/edit/delete)\n- Popular URLs view for guests\n- Configurable URL list for authenticated users\n- Responsive design\n- Modern UI with unique styling\n\n```bash\nmvn clean package \u0026\u0026 cp target/url-manager-1.0-SNAPSHOT.war /opt/homebrew/opt/tomcat@9/libexec/webapps/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobert076%2Fjsp-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobert076%2Fjsp-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobert076%2Fjsp-web/lists"}