Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet JSP cannot find symbol error
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Abhimanyu
JSP cannot find symbol error
1 Answer(s)      5 years and 2 months ago
Posted in : JSP-Servlet



Advertisement
View Answers

December 11, 2009 at 10:26 AM


Hi Friend,

Try the following code:






<%@page import="java.sql.*"%>

<%
String name="";
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/register","root","root";);
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from data where id='1'");

while(rs.next()){
name=rs.getString("name");
}
}
catch(Exception e){}
%>
<form action="" method="post">
<h1><%=name%></h1>
</form>

Thanks


Related Tutorials/Questions & Answers:
JSP cannot find symbol error - JSP-Servlet
JSP cannot find symbol error  Suppose-- we created 'a.jsp' in which we make a database connection... how to retrieve 'new' here... If I want to access the 'new' string within the form what should i do???  
Java error cannot find symbol
cannot find symbol”. The reason behind cannot find symbol error... the java error cannot find symbol. In this example a class name 'cannot find.../src/ Cannotfindsymbol.java:11: cannot find symbol symbol: variable z
Advertisements
Java error cannot find symbol
Java error cannot find symbol       The java error cannot find symbol occurred when a Compiler... that help you in understanding java error cannot made symbol. For this we have
Java error cannot find symbol
Java error cannot find symbol In this section you will learn about "cannot find symbol" in java. Java cannot find symbol is a type of error occurs... the variable in use its trying to refer, then it will give a error cannot find symbol
cannot find symbol method nextchar()??
cannot find symbol method nextchar()??  import java.util.Scanner; public class Calc5{ public static void main(String args[]){ Scanner obj = new Scanner(System.in); System.out.println("please enter
cannot find symbol - Java Beginners
cannot find symbol  public class Areatest { public static void main(String[]args) { Figure[]figures={new Triangle(2.0,3.0,3.0),new Rectangle(4.0,6.0),new Square(5.0)}; for(int i=0;i
cannot find symbol class array queue--plzz somebody help..
cannot find symbol class array queue--plzz somebody help..  import java.util.*; public class Test { public static void main(String[] args) { ArrayQueue<String> q = new ArrayQueue<String>(6); System.out.println
cannot find java.exe error while opening netbean5.5 - IDE Questions
cannot find java.exe error while opening netbean5.5  HI, 1)i am working netbean5.5 tool.I got the error of cannot find c:\programfiles\java... this problem? 2)while i am installing nokiamobiletoolkit, I got the error name
Error : javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
Error : javax.servlet.jsp.JspException: Cannot find bean...-jsp proram for adding data to the database. 500 Internal Server Error javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN
Cannot find tag library descriptor
Cannot find tag library descriptor  Cannot find tag library descriptor...? How to resolve in struts in eclipse
equal symbol expected in jsp - JSP-Servlet
error org.apache.jasper.JasperException: /upload_page.jsp(2,26) equal symbol...equal symbol expected in jsp   Hi frndz i am using following code to upload a file. <% Connection con=null; PreparedStatement pstatement
cannot display an arrayList in JSP
cannot display an arrayList in JSP  Hello, My bean is called Zone, i got all Zones from sql Server with Hibernate. in DAO.Class: print("List zones... a servlet to a jsp. In servlet.class print("List result = dao.getListZone
error cannot access class com.opensymphony.xwork2.ActionContext, wrong version
error cannot access class com.opensymphony.xwork2.ActionContext, wrong version  Error(1,32): cannot access class com.opensymphony.xwork2.ActionContext; class file has wrong version 49.0, should be 45.3 or 46.0 or 47.0 or 48.0
Cannot find FacesContext exception - Java Server Faces Questions
Cannot find FacesContext exception  Hi all, I am into an web application,where we are using Richfaces. Now, When I try to create a new Jsp page using taglibs[faces, html], getting 'Cannot find FacesContext' exception. What
Error 500-Server are not find the jar file in the program of upload the file - JSP-Servlet
Error 500-Server are not find the jar file in the program of upload the file  Hello Sir, your response: Hi friend, The 500 Internal Server Error is a "server-side" error, meaning the problem is not with your PC or Internet
javax.servlet.jsp.JspException: Cannot find FacesContext - Java Server Faces Questions
javax.servlet.jsp.JspException: Cannot find FacesContext  exception javax.servlet.ServletException: Cannot find FacesContext...(HttpServlet.java:802) root cause javax.servlet.jsp.JspException: Cannot find
JSP cannot log to FileAppender - Log4J
JSP cannot log to FileAppender  Hi, Thank you for your attention... and when called from jsp. However, when i change the log4j.properties to use... method. But when the LogClass is called from jsp file, no log file is created
why i'm getting this error?The import javax.servlet.http cannot be resolved
why i'm getting this error?The import javax.servlet.http cannot be resolved  hey buddy's i had one problem in servlet in jsp program. Exactly i'm...-quick-tip-resolving-error-the-import-javaxservlet-cannot-be-resolved/ ** any
Java Compilation error - JSP-Servlet
import org.apache.commons.fileupload.*; ^ UploadImage.java:16: cannot find symbol...); ^ UploadImage.java:21: cannot find symbol...(); ^ UploadImage.java:21: cannot find symbol symbol : class
java vertual machine launcher error; cannot access jarfiles
java vertual machine launcher error; cannot access jarfiles  Hi I am getting a error while running Dos bat file Error showing as error; cannot access jarfiles D\Documents Please help Regards GP
Java compilation error - JSP-Servlet
*; ^ An error occurred at line: 18 in the jsp file: /employee_upload_profile...\employee_005fupload_005fprofile_005fimage_jsp.java:70: cannot resolve symbol symbol : variable...); ^ An error occurred at line: 18 in the jsp file
error is "column cannot be inserted".........give send me the ans
error is "column cannot be inserted".........give send me the ans   DataInputStream dis; try { dis=new DataInputStream(System.in); System.out.println("enter no. of records to be inserted"); int nrec
Some error find whats the problem
Some error find whats the problem  import java.io.*; public class Replace { public void main()throwsIoException { InputStreamReader = new InputStreamReader(System.in); BufferReader br=new BufferReader(z); System.out.println
Error 500: WSWS3142E: Error: Could not find Web services engine. - WebSevices
Error Could not find Web services engine   Hi...: faultNode: faultDetail: {}:return code: 500 Error 500: WSWS3142E: Error: Could not find Web services engine. { http://xml.apache.org/axis
JSP error
JSP error  what is difference between global-exception and error-page in jsp. which condition they are use
Error 500: WSWS3142E: Error: Could not find Web services engine. - WebSevices
Error 500 WSWS3142E Error Could not find Web services engine  Hi all, I am getting the following error.Error 500: WSWS3142E: Error: Could not find Web services engine. Please Help. Thanks in Advance
Can Login on Fedora, cannot on Windows- JSP/Servlet for login
Can Login on Fedora, cannot on Windows- JSP/Servlet for login  I am using JSP and Servlet to perform login. When I host the website and test it works...) clients cannot login to the website. How can I fix this? Please help....  
Currency Symbol problem
Currency Symbol problem  Hi All, My Server side code... numberFormat.setCurrency(currency); int num = 12345; I want to print this in a JSP Page... Symbol is: PEN Local is: en Local is: es_PA, Currency Symbol is: PAB Local
jsp error - JSP-Servlet
jsp error  HTTP Status 404 - /jsp... message /jsp/ description The requested resource (/jsp/) is not available..., The 404 or Not Found error message is an HTTP standard response code indicating
could not find the main class programm will exit - error
could not find the main class programm will exit - error  when i tried to run the below mentioned programmed it gives a error states - could not find main class programm will exit. class Car { String name: String Color
jav compolation error - Java Beginners
jav compolation error  find symbol error
 

 

 

DMCA.com