This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Page displays jscripts and Java code
 
Similar Threads
How to map a NullPointerException thrown by servlet to my html-page?
Getting current date in a textbox
how to retrieve javaScript variable into jsp
Creator 2 and Ajax4JSF
Large amount of HTML output