wood burning stoves 2.0*
The moose likes Servlets and the fly likes Jsp Error 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 » Servlets
Bookmark "Jsp Error" Watch "Jsp Error" New topic
Author

Jsp Error

padmshree Patil
Ranch Hand

Joined: Dec 18, 2000
Posts: 54
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

Joined: Jun 30, 2000
Posts: 1070
At first glance I noticed there is a space after your <% and equals sign in your calls to write.
padmshree Patil
Ranch Hand

Joined: Dec 18, 2000
Posts: 54
Thanks Bill.
Now I am all set to do further modules in project.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jsp Error
 
Similar Threads
Strange Jikes error
JRUN exits abnormally
jsp useBean tag
Cookies not persistent ... how can it be?
XSLTProcessor