1. I access jsp as http://localhost:8080/mycode/hello.jsp?firstname=viswa&lastname=rao
2. I have jsp code in my application c:\webdev\hello.jsp. In my server.xml file I have the context definition <Context path="/mycode" docBase="c:\webdev" debug="0" reloadable="true" > </Context> 3. hello.jsp code is as follows: <html> </body> <title>Untitled Document</title> <%! String firstname = request.getParameter("firstname"); String lastname = request.getParameter("lastname"); %> Welcome <%=firstname + " " + lastname%> </body> </html> 4. The errors generated are: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] C:\jakarta\jakarta-tomcat-4.1.24\work\Standalone\localhost\mycode\hello_ jsp.java:10: cannot resolve symbol [javac] symbol : variable request [javac] location: class org.apache.jsp.hello_jsp [javac] String firstname = request.getParameter("firstname"); [javac] ^ [javac] C:\jakarta\jakarta-tomcat-4.1.24\work\Standalone\localhost\mycode\hello_ jsp.java:11: cannot resolve symbol [javac] symbol : variable request [javac] location: class org.apache.jsp.hello_jsp [javac] String lastname = request.getParameter("lastname"); [javac] ^ [javac] 2 errors -----Original Message----- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 12:04 PM To: Tomcat Users List Subject: RE: accessing jsp on tomcat Howdy, Post your JSP code. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Viswanatha Rao [mailto:[EMAIL PROTECTED] >Sent: Monday, August 18, 2003 12:57 PM >To: 'Tomcat Users List' >Subject: RE: accessing jsp on tomcat > >I run into errors when I access the request object from a jsp located in >a standalone application > >org.apache.jasper.JasperException: Unable to compile class for JSP >An error occurred at line: -1 in the jsp file: null >Generated servlet error: > [javac] Since fork is true, ignoring compiler setting. > [javac] Compiling 1 source file > [javac] Since fork is true, ignoring compiler setting. > [javac] >C:\jakarta\jakarta-tomcat-4.1.24\work\Standalone\localhost\mycode\hello _ >jsp.java:10: cannot resolve symbol > [javac] symbol : variable request > [javac] location: class org.apache.jsp.hello_jsp > [javac] String firstname = request.getParameter("firstname"); > [javac] ^ > [javac] >C:\jakarta\jakarta-tomcat-4.1.24\work\Standalone\localhost\mycode\hello _ >jsp.java:11: cannot resolve symbol > [javac] symbol : variable request > [javac] location: class org.apache.jsp.hello_jsp > [javac] String lastname = request.getParameter("lastname"); > [javac] ^ > [javac] 2 errors > >It is as if it does not know the path to the HttpRequest object. How can >I set this path? > >Thanks for your help. > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]