This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP scriplet not getting executed on tomcat 5.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "JSP scriplet not getting executed on tomcat 5.5" Watch "JSP scriplet not getting executed on tomcat 5.5" New topic
Author

JSP scriplet not getting executed on tomcat 5.5

Pravin Shirke
Ranch Hand

Joined: Apr 05, 2008
Posts: 146

Hi all,

I have deployed my project on tomcat5.5 but JSP scriplet in my index.jsp is not getting executed.It is not displaying any errors neither it is logging any errors in the log file.It is displaying scriplet directly on the page as static HTML.

Please suggest something.


[Vipassana] - It is seeing the reality as it is, And not as you want it to be.!!!
SCJP1.5.
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
Make sure that your WEB-INF folder contains the mandatory web.xml file.

I assume your JSP is somewhere under WebContent.
Once you startup your server, check if the /tomcat/work/catalina/localhost/YOUR_PROJECT_NAME has the translated jsp somewhere within it.
If you jsp is names hello.jsp, the translated file will be names hello_jsp.java

Also, are you accessing your project via http://localhost:8080/projectName/hello.jsp ?


JDBCSupport - An easy to use, light-weight JDBC framework -
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JSP scriplet not getting executed on tomcat 5.5
 
Similar Threads
how t prevent the user to access certain link
errors messages from ActionForm validate are not displaying
how to create common successful page
ComboBox in jsp
ActionErrors from Action Class are not displaying in struts jsp page