Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

queryDataSet

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hello everybody ;)

My problem is very simple but I can't resolve it.
I've created a servlet in which there is a queryDataSet object: queryDataSet1.
My servlet's doGet method is very simple:

public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
out.println(&quot;<html>&quot;);
out.println(&quot;<body>&quot;);
out.println(&quot;<h2>&quot;+queryDataSet1.getTableName() +&quot;</h2>&quot;);
out.println(&quot;</body>&quot;);
out.println(&quot;</html>&quot;);
}

But when I'm running the project, the html page give me 'null' instead of the table name from which I fetch the data.
Moreover, I can see these messages:
javax.servlet.ServletException: Servlet Exception
at org.apache.tomcat.core.Handler.service(Handler.java:308)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
and so on...

Please give me a tip which could help me because I can't find what the problem is.
Thank You ;)


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top