This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Cannot create stmt more than once Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cannot create stmt more than once" Watch "Cannot create stmt more than once" New topic
Author

Cannot create stmt more than once

Rajeev Motiani
Greenhorn

Joined: Dec 09, 2003
Posts: 2
Environment: Created an struts application connected to MS Access. The conection created through JDBC-ODBC bridge using the Class for name (classes12.zip driver) in java.

Issue: We are able to access the database through struts form the first time through JSP, however once we refresh or request the same page again, it creates the connection but cannot create the statement ie. the error comes at point stmt =con.createStatement();

We have checked the program works if we call the method from normal jsp-java rather than struts framework. What settings are misisng?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Since this appears to be Struts-specific, I'm moving this along to the Web Frameworks forum, where the Struts dudes hang out.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Cannot create stmt more than once
 
Similar Threads
thread creation in struts
Creating a class within JSP to be shared among pages
Cannot create stmt more than once
Life cycle of jsp?
error comes while running the struts application please see the source code for detail