Passing Checkbox values from one jsp to another

1.jsp:   <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ""> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <form method="post" action="2.jsp"> My Favourite Colors are <input type="checkbox" name="cb1" value="blue">Blue <input type="checkbox" name="cb1" value="green">Green <input type="checkbox" name="cb1" value="Yellow">Yellow <input type="checkbox" name="cb1" value="Red">Red <input type="checkbox" name="cb1" value="white">White <input type="submit"> </form> </body> </html>   […]

423 total views, 2 views today

» Read more

Installing Ubuntu in windows 7 using vmware player

  Step 1: Download the vmware player from the below link, or|PLAYER-501|product_downloads Step 2: Download the linux (Ubuntu ) from the below link, Note: Download the iso file inorder to open via vmware player in windows 7. Step 3: Open the vmware player Create a new virtual machine ->  Installer disc image file (iso) and browse the […]

490 total views, 3 views today

» Read more

project facet java version is not supported tomcat

Root Cause: The version of jre mentioned in the eclipse java compiler and project facet is different. Solution: Right click the project -> properties -> project facet and change it into jre version based on your requirement.   Note: Please check the java compiler version also. Right click on the project -> properties -> java compiler. Java compiler version and […]

296 total views, no views today

» Read more

Ant Hello world

Step 1: Create a folder named “ant build”  and get into that. Step 2: Create a “build.xml” file inside “ant build” folder and copy the below code,  Build.xml: <project> <target name=”clean”> <delete dir=”build”/> </target> <target name=”compile”> <mkdir dir=”build/classes”/> <javac srcdir=”src” destdir=”build/classes”/> </target> <target name=”jar”> <mkdir dir=”build/jar”/> <jar destfile=”build/jar/HelloWorld.jar” basedir=”build/classes”> <manifest> <attribute name=”Main-Class” value=”agn.Hello”/> </manifest> </jar> </target> <target name=”run”> <java jar=”build/jar/HelloWorld.jar” […]

314 total views, no views today

» Read more

‘artifactId’ with value ‘hello world’ does not match a valid

[INFO] Scanning for projects… [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project world:1.1 (D:\My hello world maven \hello world\pom.xml) has 1 error [ERROR] ‘artifactId’ with value ‘hello world’ does not match a valid id patt ern. @ line 5, column 15 [ERROR] [ERROR] To see the full stack trace of the errors, […]

1,638 total views, 7 views today

» Read more

Hello world Maven

Step 1: Download the maven from Step 2: Set the path like below, Variable Name: M2_Home Value: Path of the maven (c:\apache-maven-3.0.4) Variable Name: java_home Value: path of the jdk (c:\program files\java\jdk1,6) Variable Name: path Value: %path%;%m2_home%\bin After setting the path go and check in the command prompt by typing mvn –version or mvn. Step 3: Once the maven […]

534 total views, no views today

» Read more


Root cause: Maven path might not be set properly, particularly if you would have set the maven path till maven folder rather than maven\bin folder, you will get this error. Solution: During path setting via command prompt or system properties -> Environment variables you have to do like below, valid maven path: variable name: m2_home value: c:\apache-maven-3.0.4 (Valid) Invalid maven […]

282 total views, no views today

» Read more

Error: Could not find or load main class hello

Root cause: The error is because of wrong classpath setting. Solution: classpath should be jre lib rather than jdk\jre\lib. Example path: C:\Program Files\Java\jre7\lib Note: Dont set the jdk\jre\lib path C:\Program Files\Java\jdk1.7.0\jre\lib. If you are going to set the throught the system properties, ensure the semicolon(;) given at the end.  Thanks for reading this post………!! 272 total views, no views today

272 total views, no views today

» Read more
1 56 57 58 59 60 64