*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
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: 150

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://aspose.com/file-tools
 
subject: JSP scriplet not getting executed on tomcat 5.5
 
Similar Threads
errors messages from ActionForm validate are not displaying
ComboBox in jsp
how to create common successful page
ActionErrors from Action Class are not displaying in struts jsp page
how t prevent the user to access certain link