Link to home
Start Free TrialLog in
Avatar of Ronayne
Ronayne

asked on

basic jsp error

Hi, the following code throws this error, how do i combine convert these statement to valid jsp?

   outfile.write("<?xml version="1.0" encoding="ISO-8859-1"?>");
   outfile.write("<?xml-stylesheet type="text/xsl" href="localhost:8080\seanproj\cdcatalog.xsl"?>");

C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\seanproj\makexml_jsp.java:146: ')' expected
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sony213002
Sony213002

hello
if u r getting ther error
" ; expected instead of this token "
or
"  ) Statement inserted to complete Statement"

then u have forgot to put the escape character for u r string
put a \ before every occurrence of " character in u r string
hope this will solve u r problem
Avatar of Ronayne

ASKER


Cheers, objects code worked fine, thx again