• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp Error

 
padmshree Patil
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am getting Error in following jsp code
I have DisplayQuestion.java servlet where I am setting attributes of "Question" and "QNO" and I am Forwarding to following Jsp .I need urgent solution...Pleaseeeee
-----------------------------------------------
<HTML>
<HEAD>
<TITLE> Online test</TITLE>
</HEAD>
<BODY BGCOLOR="#FDF5E6">
<% String Question = (String)request.getAttribute("Question"); %>
<% String qno = (String) request.getAttribute("QNo"); %>
Question:
<INPUT ALIGN ="CENTER" TYPE ="TEXT " NAME="QNo" SIZE = "2" value= " <% = qno %> " >
<TEXTAREA NAME ="Question" ROWS ="10" COLS ="50" value= " <% = Question %> " > </TEXTAREA><P>
</BODY>
</HTML>

----------------------
err as
/servlet/DisplayQuestion:
javax.servlet.ServletException: Compilation error occured:
Found 4 errors in JSP file:
C:\\Program Files\\Allaire\\JRun\\servers\\default\\default-app\\QueTrial.jsp:13: Syntax: Unexpected symbol ignored
C:\\Program Files\\Allaire\\JRun\\servers\\default\\default-app\\QueTrial.jsp:13: Syntax: ; expected instead of this token
C:\\Program Files\\Allaire\\JRun\\servers\\default\\default-app\\QueTrial.jsp:15: Syntax: Unexpected symbol ignored
C:\\Program Files\\Allaire\\JRun\\servers\\default\\default-app\\QueTrial.jsp:15: Syntax: ; expected instead of this token
allaire.jrun.scripting.DefaultCFE:
Errors reported by compiler:C:/Program Files/Allaire/JRun/servers/default/default-app/WEB-INF/jsp/jrun__QueTrial2ejspd.java:44:1:44:1: Syntax: Unexpected symbol ignored
C:/Program Files/Allaire/JRun/servers/default/default-app/WEB-INF/jsp/jrun__QueTrial2ejspd.java:44:3:44:5: Syntax: ; expected instead of this token
C:/Program Files/Allaire/JRun/servers/default/default-app/WEB-INF/jsp/jrun__QueTrial2ejspd.java:47:1:47:1: Syntax: Unexpected symbol ignored
C:/Program Files/Allaire/JRun/servers/default/default-app/WEB-INF/jsp/jrun__QueTrial2ejspd.java:47:3:47:10: Syntax: ; expected instead of this token

 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At first glance I noticed there is a space after your <% and equals sign in your calls to write.
 
padmshree Patil
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill.
Now I am all set to do further modules in project.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic