i am reading "HEAD FIRST Servlets and JSP" book.I have tomcat,JDK1.5,eclipse softwares installed in my machine.Can anyone please tell me how to configure those an to try the examples given in that book.
Isn't that link posted dint help you. There is no requirement to explicitly set any env variables and classpath . Its taken care by eclipse itself when creating a new "web project" . You can add your jars (like jdbc driver jar ) in Project --> BuildPath.
Here are rough steps.
1) Configure your JDK/JRE to Eclipse
2) Add your Tomcat server to Eclipse ( this depends on eclipse version - Ganymede has inbuilt plugin )
3) Create a new web project
Check this link again. Its the basic setup that is explained clearly.
Please Check the attachment.I am using Easy Eclipse.There is no "server" option in preferences.Can anyone Please help me how to proceed with it as i got to run the web applications of "head first-jsp and servlets" book.
Joined: Jul 09, 2009
Anyone please reply for the above mail...I'ts urgent.........
1)what is the purpose of java.io.serializable marker interface?is it used anywhere in EJB?
2)which is better to use?Iterator or Enumerator?
Answer:depending on need
Enumeration deals with objects while iteration deals with values only. Enumeration is used when we use vector hashtable etc while iteration are used in while loop for loop etc
3)in try block is it possible to throw an exception?
A exception is thrown by using the throw keyword from inside the try block
If it does not support , then you cannot run servlets. JEE projects should be run in JEE perspective. Download the JEE supported Eclipse as its is available in different flavours. If you still like to use Easy Eclipse , check in thier site on JEE supported one.
Here is the Eclipse Ganymede flavours which i use. The link for JEE developers is the first one.
Joined: Jul 09, 2009
I have 2 questions.Please tell me the answers for those.
abstract class vidya
The above code is valid if we use or do not use the keyword abstract in the class....Then can you please tell me why " abstract" is used there.
2)Please tell me where do we use throw,throws with examples in exception handling?