aspose file tools
The moose likes JSP and the fly likes Page displays jscripts and Java code Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply 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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Page displays jscripts and Java code
 
Similar Threads
How to map a NullPointerException thrown by servlet to my html-page?
Large amount of HTML output
Creator 2 and Ajax4JSF
how to retrieve javaScript variable into jsp
Getting current date in a textbox