aspose file tools*
The moose likes Tomcat and the fly likes error in deploying jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "error in deploying jsp" Watch "error in deploying jsp" New topic
Author

error in deploying jsp

uma baratam
Greenhorn

Joined: Oct 09, 2006
Posts: 5
hi all,

I am new to jsp.
I just wrote a simple jsp file

<html>
<body>
<%= 45 %>
</body>
</html>

when i am trying to deploy it shows me file not found exception.
I created a directory jsps in webapps of tomcat.
Do i need to do anything like entry in web.xml?
please help me

Thanks
UmaVinodh.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61193
    
  66

Moved to the Tomcat forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Please show what's in your "jsps" directory, and how you're trying to access the file.


[My Blog]
All roads lead to JavaRanch
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Add a directory named "WEB-INF" to your "jsps" directory and Tomcat will recognize it as a webapp.

If you're new to JSP and servlets, I recommend that you pickup a book and read up on some of the basics. It will save you a lot of time and aggravation.


Once Tomcat recognizes your webapp and tries to invoke your JSP, this line will blow up for you.



The JSP expression tag expects a String or an expression that returns a string.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error in deploying jsp