File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java SDK

 
Seema Bhatia
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to JSP and I have installed JAVA SDK 2 Enterprise Edition from sun site and I have no idea to do the setup for environment variables but I did made changes in userconfig.bat i.e. set java_home etc besides that do I need to change any other files to do the environment settings.
If yes then please let me know.
If no then my questions are:
1)Where to put the classes if I am working with JAVA SDK 2 Enterprise Edition?
2)Why my this code does not get executed?
import javax.servlet.jsp.JspWriter;
public class classA
{
rest of the code....
}
It gives error on the line import javax.servlet.jsp.JspWriter;
Any idea what's going on?
I am stuck any help will be greatly appreciated.
 
Andrew Shafer
Ranch Hand
Posts: 338
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Cause that stuff probably isn't in your classpath.
You probably want to download some sort of Servlet/JSP container, I suggest Tomcat from http://jakarta.apache.org, but there are other choices.
Try a search on google.com
java jsp servlets getting started
Also the JspWriter is not something you would normally import, it will be implicitly created in your jsp or if you are using a plain servlet you can use a printwriter or something else. You could import it but I wouldn't.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic