This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am a totally new comer to java and just started jsp.
Using XAMPP, i can run and view its jsp examples.
I've saved my file in C:\xampp\tomcat\webapps\ROOT\hello\hello.jsp and try to load it but
I only view the java code I've entered as :
<% String visitor = request.getParameter("name"); if (visitor == null) visitor = "World"; %> Hello, <%= visitor %>!
XAMPPP most certainly does not include Tomcat. If you have a Tomcat instance it came from somewhere other than XAMPP. See the XAMPP distribution page for the list of what's included. Tomcat is nowhere to be found.
(derivative of the very page you have forwarded me)
it had a bug previously by which I had to start tomcat manually from its folder and it seems
it's been fixed by now. As I said the examples work. I must be wrong doing something else.
You should create your own web application structure under webapps.
Grab a servlets book or tutorial, or look in the Tomcat docs to find out how. You can't just drop files anywhere and expect them to work: web apps need a very precise and defined folder structure to operate correctly.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com