Posts
Include Tag JSP
- Get link
- X
- Other Apps
Registration.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html> <html> <body> <%@ include file="Header.jsp" %> <h1><center>Registration Page</center></h1> <form> <table> <tr> <td>Enter Name :</td> <td><input type="text" name="t1"></td> </tr> <tr> <td>Enter Lastname :</td> <td><input type="text" name="t2"></td> </tr> <tr> <td>Enter Address :</td> <td><input type="text" name="t3"></td> </tr> </table> <input type="submit" value="Register"> </table> </form> <%@ include file="Footer.jsp" %> </body> </html> =========================================================...
First JSP Program
- Get link
- X
- Other Apps
1. Click on Project (in my case JspDemo is my project) 2. Now click on src---> main --->Select WebApp folder 3. Now right click on webApp folder and click New--->Jsp File 4. Rename that jsp file with meaningful name (Example i give Login.jsp) 5. Click finish So your JSP file is created Here you can write java code inside scriptlet tag Now select project and right click after run---> run on server Select tomcat and click next after configure your project and click finish Now jsp page is running on server in url write your jsp page name and click enter so your web application is live
How to Integrate tomcat into eclipse
- Get link
- X
- Other Apps
Step 1 : Open eclipse IDE for EE and Web developer Step 2 : Press Control +N Step 3 : On Wizards type Dynamic Web Project ---> Select ---> Click Next Step 4 : Give Project Name (I write my project name is JspDemo) Step 5 : After writing project name click next Step 6 : again Next Step 7 : You must check Generate web.xml and click finish Step 8 : Now on left side JspDemo project is created Step 9 : Open google and type Apache tomcat 10.1download click on first link click on 64 bit windows zip After downloading extract that zipped folder Step 10 : Now click on Servers tab Next select appropriate version of tomcat (in my case i select tomcat 9.0) Click next Click on browse button Click on Select Folder Click on Next Select your project & Click add after Click finish Now your tomcat server is successfully integrated to eclipse IDE
JSP tutorials for beginner
- Get link
- X
- Other Apps
Pre-requisites : 1. you have installed eclipse IDE (eclipse for EE and web application) Click here to see complete downloading and installing guide. 2 . you have Apache tomcat (either tomcat 9.0 or 10.1 depends on your system configuration) Click here to see complete downloading and installing guide. 3. First JSP Program Click here to see steps 3. you have installed Mysql Database. Click here to see complete downloading and installing guide. 4. you need to download Mysql connecter software. Click here to see complete downloading and installing guide.