This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "error in deploying jsp" Watch "error in deploying jsp" New topic

error in deploying jsp

uma baratam

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

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

<%= 45 %>

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

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63349

Moved to the Tomcat forum.

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

Joined: Nov 24, 2005
Posts: 14688

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

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:
subject: error in deploying jsp
It's not a secret anymore!