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



Home Answers Viewqa Struts Managing Datasource in struts Application
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


sudarshan kumar
Managing Datasource in struts Application
0 Answer(s)      2 years ago
Posted in : Struts


Hi i need to know how to do set up of Oracle data base with struts using Data source.I have defined datasource in struts-config.xml as

data-sources>
        <data-source type="oracle.jdbc.pool.OracleConnectionPoolDataSource">
            <set-property property="URL" 
   value="jdbc:oracle:thin:@192.168.11.106:1521:server"/>
            <set-property property="user" value="SCOTT"/>
            <set-property  property="password" value="TIGER"/>
        </data-source>
    </data-sources>

Then in my action class i am retrieving as

public ActionForward execute(
            ActionMapping mapping,
            ActionForm form,
            HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        System.out.println("In Action of accept");
        String agregno = request.getParameter("agregno");
        System.out.println(agregno);
        boolean valid = Validation.acceptAgent(agregno, getDataSource(request));
        System.out.println("After val");
        System.out.println(valid);
        if (valid) {
            return mapping.findForward("success");
        }
        return mapping.findForward("fail");

    }

I am getting error like getDatasource method does not exist.


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Managing Datasource in struts Application
Managing Datasource in struts Application  Hi i need to know how to do set up of Oracle data base with struts using Data source.I have defined datasource in struts-config.xml as data-sources> <data-source type
datasource in jsp using struts
datasource in jsp using struts  how to get the datasource object in jsp.datasource is configured in struts-config.xml
Advertisements
configure Datasource in enterprise application - EJB
configure Datasource in enterprise application  I wanted to know that how can configure the DataSource in the Enterprise Application.Thanks Rohit Chauhan  which type of IDE u r using???If NetBeans ..Then i have
Configuring Struts DataSource Manager on Tomcat 5
Configuring Struts DataSource Manager on Tomcat 5... can configure Struts DataSource Manager on the Tomcat 5.5.9 server. We will use... DataSource Manager to use MySQL Database and use the connection provided by Struts
struts application
struts application  hi, how to retrive data from databse in struts application aand send the retrived data to corresponding form
struts application - Struts
struts login application form code  Hi, As i'm new to struts can anyone send me the coding for developing a login form application which involves a database search like checking user name in database
struts application
struts application  hi, i can write a struts application in this first i can write enter data through form sidthen it will successfully saved into data base **but now i can apply to some validation to that form fileds
First Struts Application - Struts
First Struts Application  Hello, Hello, I have created a struts simple application by using struts 1.2.9 and Jboss 4.0.4. I am getting... for path /WEB -INF/struts-config.xml struts-config.xml and web.xml files
struts application
struts application  i want to display name on the browser throgh struts1.2 in java please give me snippet
Struts Console
Struts Console         The Struts Console is a FREE standalone Java Swing application for managing Struts-based applications. With the Struts Console you can
DataSource in hibernate.
DataSource in hibernate.  What is DataSource in hibernate?   Generally, in spring hibernate integration or struts hibernate integration we... --> <bean id="dataSource" class
Why Struts in web Application - Struts
Why Struts in web Application  Hi Friends, why struts introduced in to web application. Plz dont send any links . Need main reason for implementing struts. Thanks Prakash
Struts application not working in LINUX - Struts
Struts application not working in LINUX  Hi ALL, I have a struts... in LINUX prodution system. The application is not recoginsed the web server is Tomcat5. I tryed with a sample servlet on linux tomcat its also not working
Datasource - JSP-Servlet
Datasource   in web.xml datasource com.zetcode.DataSourceExample /DataSource datasource in index.jsp when i deploy the application i am getting
managing the transactions
managing the transactions  HI i am using JSF and SEAM and Hibernate when i search the record in JSF page , it dispalys all the records regarding search filter its fine my question is i want to merge the selected record profile
Struts application by using eclipse
Struts application by using eclipse  Can we develop struts application by using eclipse ? If no then please provide other development tools, if yes can you mail me the tutorial or provide the same in roseindia
login application - Struts
application using struts and database?  Hello, Here is good example of Login and User Registration Application using Struts Hibernate and Spring. In this tutorial you will learn 1. Develop application using Struts 2. Write
Struts 2 Application
Struts 2 Application Developing user registration application based on Struts 2 Framework This Struts 2 Application is a simple user registration application.... Let's start developing user registration application on Struts 2 framework
develop structs application - Struts
structs application in netbeans ide i need step by step process plz answer me  Hi friend, For more information,Examples and Tutorials on Struts visit to : http://www.roseindia.net/struts/ Thanks
Ajax in struts application - Ajax
Ajax in struts application  I have a running application using struts and now i want to implement Ajax(for populating some search box) in it.The problem is that my jsp page is able to send the request to my Struts Action process
Ajax for Struts with Hibernate Application - Struts
Ajax for Struts with Hibernate Application  Hi All, I have developed a registration page with country and state drop downs. I want to use ajax for these drop downs with hibernate support. Kindly help for this , thanks
struts - application missing something?
struts - application missing something?   Hello I added a parameter... in the struts working and all is great till I close JBoss or the server gets shut down..., struts-config.xml are all updated. I didn't use anything new that hasn't already
SwitchAction Application in struts 1.3.10
SwitchAction Application in struts 1.3.10  Hi,I am working on struts 1.3.10 and I have developed my module using switchaction application...' module. and 'action=/switchpath' is the action path to link struts-config.xml name
struts hibernate integration application
Struts2 hibernate integration application. In this tutorial we are going to show how to Integrate Struts Hibernate and create an application. This struts... of the struts hibernate integration application example. Description
Struts development application - Framework
Struts development application  hi friends, I want a source... regarding for struts framework,and what is difference b/w validation.xml and validation.... http://www.roseindia.net/struts/address_struts_validator.shtml Thanks
Changing from Struts 1.2 to Struts 2.0 in Application
Changing from Struts 1.2 to Struts 2.0 in Application  Hi All, We have a financial application which is running successfully on struts 1.2 and java... latest version of struts 2.0. I want to know following things 1.what
Intranet application - Struts
Intranet application  Sir,I am develping a Intranet web application for college which has its own ip address and etc.I dont know how to deploy an application into server,changes to be done inside application.I am using struts.plz
Struts2 blank application - Struts
Struts2 blank application  Hi I am new to struts2 and i am trying to run the strutsblank application by following the following Link; http... application) when i am trying to open the application by using the link http
jsperexception in struts application
jsperexception in struts application  Iam getting the following error repeatedly can u explain the solution for this? HTTP Status 500 - type Exception report message description The server encountered an internal error
property datasource required - Spring
property datasource required  Hi I am using java springs I am using mysql as backend I am getting one error when i compile the application.property datasource required. This is my dispatcher-servlet.xml
struts 2 Application starting error - Struts
struts 2 Application starting error  Hello Sir/Madam, Recently i... application which i have attached with name Struts2Application, but after deploying and starting the application the message was received like Message
Advertisements
 

 

 

DMCA.com