Solved

basic jsp error

Posted on 2004-03-26
4
187 Views
Last Modified: 2010-03-31
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
0
Comment
Question by:Ronayne
  • 2
4 Comments
 
LVL 92

Accepted Solution

by:
objects earned 50 total points
ID: 10692881
outfile.write("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
   outfile.write("<?xml-stylesheet type=\"text/xsl\" href=\"localhost:8080/seanproj/cdcatalog.xsl\"?>");
0
 

Expert Comment

by:Sony213002
ID: 10693948
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
0
 

Author Comment

by:Ronayne
ID: 10702702

Cheers, objects code worked fine, thx again
0
 
LVL 92

Expert Comment

by:objects
ID: 10702725
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question