Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Page displays jscripts and Java code

 
Ravi Shankar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have got a strange problem while accessing a JSP page , dispays jscipt and java code instead of actually displaying the controls and buttons . Lots of arrays are used in the code.
Could you any tell what could be the possible cause of this error.
Thanks
Regards
Ravi
 
Satish Gopalakrishnan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check whether you have closed the scriptlets ( <% , %> ) and double quotes propery .
If that does not solve it, check whether u have changed the content type in the response
HTH,
Satish
 
Joe Broderick
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you start tomcat? is tomcat working properly?
 
Ravi Shankar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for all your responses , actually i worded my problem wrongly, it is the HTML code which gets displayed instead of the controls and buttons.
Can this happen if my jsp is not well formatted.
(i.e more than one HTML tag is present in the jsp)
Ravi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic