GeeCON Prague 2014*
The moose likes JSP and the fly likes Page displays jscripts and Java code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Page displays jscripts and Java code" Watch "Page displays jscripts and Java code" New topic
Author

Page displays jscripts and Java code

Ravi Shankar
Greenhorn

Joined: Apr 07, 2003
Posts: 26
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

Joined: Feb 13, 2001
Posts: 52
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

Joined: Apr 23, 2003
Posts: 23
did you start tomcat? is tomcat working properly?
Ravi Shankar
Greenhorn

Joined: Apr 07, 2003
Posts: 26
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
 
GeeCON Prague 2014
 
subject: Page displays jscripts and Java code