• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error in deploying jsp

 
uma baratam
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Tomcat forum.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please show what's in your "jsps" directory, and how you're trying to access the file.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic