• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP shows code  RSS feed

 
shiva shankar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I use a IBM http server and websphere 3.5. My browser shows jsp code. My webserver plugin is perfect. Can anyone solve this ?
Thanks in advance
Cheers
Shivashankar
 
Vladimir Ergovic
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fast guess - maybe you should check out tags ?
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It shows all your JSP code, or just bits of it? Is it interpreting any JSP?
 
Jason Kilgrow
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by shiva shankar:
Hi all,
I use a IBM http server and websphere 3.5. My browser shows jsp code. My webserver plugin is perfect. Can anyone solve this ?
Thanks in advance
Cheers
Shivashankar

I've noticed my browser does the same thing if I have the JSP code within html comment tags. Is this the case for you?
 
shiva shankar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It shows all my jsp code as if it were html. Not just in bits or pieces. I seriously think there should be a problem with HTTP server and websphere connection. I am really unable to figure that out.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If requests display the JSP instead of executing it, your plugin isn't "perfect". Something should have been set up that causes requests with the "JSP" extension to be served up by the plugin instead of the HTTP serving mechanism.
That "something" is usually a MIME type definition, though not always - in the case of an Apache/Tomcat link, the plugin directives in the Apache configuration file specify pattern match directives that translate the requests and cause them to be forwareded from Apache to Tomcat.
 
Sri Ramki
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Move your JSPs to a place outside <whateverpath>\servlets. For example, create a folder <whateverpath>\JSPFiles and have your JSPs copied over here.
 
ersin eser
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be u r using ServletContext.getResource("/xyz.jsp") which can cause this !?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!