Struts2 Hello World in Eclipse

Struts2 Hello World Example in Eclipse Below Example use struts2.3.X version Project Structure —index.jsp—

  —HelloWorld.jsp—

  —web.xml—

  —struts.xml—

  —HelloWorldAction.java—

  —MessageStorage.java—

  —pom.xml—

  —OUTPUT—   Download Struts2 Hello Program   Source: http://struts.apache.org/release/2.3.x/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html

Continue Reading

JSTL Tags in Jsp

JSTL is stands for JSP – standard Tag Library JSTL gives the collection of jsp tags that are very useful if you are not using any framework like Struts2. File Structure Example —index.jsp—

—link.jsp—

Download jstl.jar   OUTPUT   Download JSTL Hello Example  

Continue Reading

First Java Program using Notepad

You can write Java program using any IDE like Netbeans, Eclipse etc or you can directly write Java program using Notepad and can compile using CMD (command prompt)   Let’s write the First Java Program using Notepad Step 1. Create a text document with name Hello.java Step 2. open the created file and write the […]

Continue Reading

Hibernate and Java hello example

Step 1:  Open netbeans File> New Project >java web> web application .click next Project name : hibernatehello .click next . again click nextnow select framework : hibernate . click finish Step 2: Now hibernate.cfg.xml file opens edit this line change the database name if required in am using hibernate 

after edit:

make sure that […]

Continue Reading