Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

index.jsp problem

 
Brendan Kennedy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey
This is probably a basic question, but my index.jsp is not being processed, instead i just get the text of the file which is not even being treated as html by my browser. I've spoken to the webmaster and he showed me that it was listed with index.html, index.php etc. in one of the apache conf files. Does anybody know how to fix this problem? At the moment I'm using a meta tag in index.html to automatically load the jsp but it's not good enough.
thanks,
Brendan
 
chanoch wiggers
Author
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it might be a silly question but you do have a java server serving the thing and not just apache right? the java has to be processed by a special kind of server
 
Meera Chandrasekaran
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
may be you should add "index.jsp" to your list fo welcome-files in web.xml

Originally posted by Brendan Kennedy:
Hey
This is probably a basic question, but my index.jsp is not being processed, instead i just get the text of the file which is not even being treated as html by my browser. I've spoken to the webmaster and he showed me that it was listed with index.html, index.php etc. in one of the apache conf files. Does anybody know how to fix this problem? At the moment I'm using a meta tag in index.html to automatically load the jsp but it's not good enough.
thanks,
Brendan
 
Brendan Kennedy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the replies, but I think it's because there's no tomcat-apache.conf file on the server. I did some research and it seems you need it to be linked to in httpd.conf as well as having the index.jsp entry. After all it was being treated as an index file, it was just not being processed by tomcat.
Brendan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic