Hi Sudhir, this list gets 100 msgs or so a day, and just reading them takes enough time already, so you'll be very lucky if someone reads the whole of your program. Can't you specify exactly what the problem is?
To get data onto your JSP is being discussed at the moment in the Application State == View or Business Logic thread. Have a read and check out some of the links. Generally speaking to get the data from a database and put it on the JSP, you program a data access layer. The Action calls a method on one of your data access objects which gets the data, transforms it into vectors or data arrays etc, and passes it back to the Action. The Action then puts it in the request object or session, and then when the JSP is called, it can find the data there. HTH Adam Sudhir wrote: >Hi, > >Can anybody tell me how can i transfer data from Action Class to Bean and so to JSP. > >I am sending all needed files ... Please go through and what is the wrong i am doing. >and how it happens. > >As i struck at this point and i have already reached the deadline. Your reply will >help me a lot. > >Thanks and Best Regards, > >------------------------------------------------------------------------ > ><?xml version="1.0" encoding="ISO-8859-1" ?> > ><!DOCTYPE struts-config PUBLIC > "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" > "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> > ><!-- > This is the Struts configuration file for the example application, > using the proposed new syntax. > > NOTE: You would only flesh out the details in the "form-bean" > declarations if you had a generator tool that used them to create > the corresponding Java classes for you. Otherwise, you would > need only the "form-bean" element itself, with the corresponding > "name" and "type" attributes. >--> > > ><struts-config> > > > <!-- ========== Data Source Configuration =============================== --> ><!-- > <data-sources> > <data-source> > <set-property property="autoCommit" > value="false"/> > <set-property property="description" > value="Example Data Source Configuration"/> > <set-property property="driverClass" > value="org.gjt.mm.mysql.Driver"/> > <set-property property="maxCount" > value="4"/> > <set-property property="minCount" > value="2"/> > <set-property property="password" > value="java2001"/> > <set-property property="url" > value="jdbc:mysql://java.ectu.com/unidux"/> > <set-property property="user" > value="sqladmin"/> > </data-source> > </data-sources> >--> > > <!-- ========== Form Bean Definitions =================================== --> > <form-beans> > > <!-- Logon form bean --> > <form-bean name="logonForm" > type="org.apache.struts.webapp.example.LogonForm"/> > > <!-- Projects form bean --> > <form-bean name="projectForm" > type="org.apache.struts.webapp.example.ProjectForm"/> > > <!-- Subscription form bean --> > <form-bean name="subscriptionForm" > type="org.apache.struts.webapp.example.SubscriptionForm"/> > > </form-beans> > > > <!-- ========== Global Forward Definitions ============================== --> > <global-forwards> > <forward name="logoff" path="/logoff.do"/> > <forward name="logon" path="/logon.jsp"/> > <forward name="success" path="/mainMenu.jsp"/> > </global-forwards> > > > <!-- ========== Action Mapping Definitions ============================== --> > <action-mappings> > > <!-- Edit user registration --> > <action path="/editProject" > type="org.apache.struts.webapp.example.EditProjectAction" > name="projectForm" > scope="request" > validate="false"> > <forward name="success" path="/projects.jsp"/> > </action> > > <action path="/addProject" > type="org.apache.struts.webapp.example.AddProjectAction" > name="projectForm" > scope="request" > validate="false"> > <forward name="success" path="/projects.jsp"/> > </action> > > <!-- Process a user logoff --> > <action path="/logoff" > type="org.apache.struts.webapp.example.LogoffAction"> > <forward name="success" path="/index.jsp"/> > </action> > > <!-- Process a user logon --> > <action path="/logon" > type="org.apache.struts.webapp.example.LogonAction" > name="logonForm" > scope="request" > input="/logon.jsp"> > </action> > > <!-- Save user registration --> > <action path="/saveProject" > type="org.apache.struts.webapp.example.SaveProjectAction" > name="projectForm" > scope="request" > input="/add_projects.jsp"> > <forward name="success" path="/projects.jsp"/> > </action> > > <!-- Display the "walking tour" documentation --> > <action path="/tour" > forward="/tour.htm"> > </action> > > <!-- The standard administrative actions available with Struts --> > <!-- These would be either omitted or protected by security --> > <!-- in a real application deployment --> > <action path="/admin/addFormBean" > type="org.apache.struts.actions.AddFormBeanAction"/> > <action path="/admin/addForward" > type="org.apache.struts.actions.AddForwardAction"/> > <action path="/admin/addMapping" > type="org.apache.struts.actions.AddMappingAction"/> > <action path="/admin/reload" > type="org.apache.struts.actions.ReloadAction"/> > <action path="/admin/removeFormBean" > type="org.apache.struts.actions.RemoveFormBeanAction"/> > <action path="/admin/removeForward" > type="org.apache.struts.actions.RemoveForwardAction"/> > <action path="/admin/removeMapping" > type="org.apache.struts.actions.RemoveMappingAction"/> > > > </action-mappings> > ></struts-config> > > >------------------------------------------------------------------------ > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

