JSP "keepgenerated" property in WL 5.1?

Is this property still supported? Weblogic.log tells me "Found undeclared
          property: keepgenerated"
          Is there a new way to direct the server to keep the generated servlet
          source?
          Thanks,
          Tom
          

The property is working fine with me.
          "Tom Card" <[email protected]> wrote in message
          news:397502e1$[email protected]..
          > Is this property still supported? Weblogic.log tells me "Found undeclared
          > property: keepgenerated"
          >
          > Is there a new way to direct the server to keep the generated servlet
          > source?
          >
          > Thanks,
          > Tom
          >
          >
          

Similar Messages

  • JSP set property

    Hi all,
    I have never had luck with the following tag either. set property seems to be picky about the variable name. In my previous post ( btw i am using Tomcat 5.0 ) i mentioned that I had problems with variable that had the second letter in capital letter for example nLoc didnt work whereas nloc did. ( any ideas why ?? )
    <jsp:set property name = "name_of_my_bean" property = "*" />
    The above tag would ( as was supposed to ) reduce a lot of typing. The bean i am using have alteast 25 properties and setting them one by one makes JSPs huge.
    This tag does not throw any errors, it just doesnt set any properties.

    I figured it out for myself.
    In order to get the setproperty="*" to work you put it nested inside the useBean tag so
    if you have a bean called test to set all the properties do
    <jsp:useBean id="myTestBean" scope="page" class="com.mycompany.mypackage">
    <jsp:setProperty name="myTestBean" property="*" />
    </jsp:useBean>that DOES set all the properties of a bean, so if you have an object with 10 properties you dont have to write 10 set property tags.

  • Question abt jsp:setProperty property="*" behavior

    Hi,
    I am trying to use the following tag
    <jsp:setProperty name="formBean" property="*"/>
    what this supposed to do is that if you have a bean which has same property names as your html form then instead of setting each property one by one this maps all the bean properties and assign the values.
    However when I tried that it works as suggested but then I change a field name in my bean and recompile and run the jsp again, but it still works. I am not sure whether it is some kind of caching issue? I would think it shoould not set the form values as the bean field name doesn't match up with the form's property name. Please advice

    I believe that the mechanism uses the bean's method names, not the field names, to determine what to call when you do property="*". so you can have the following
    class MyBean{
    String addr;
    public void setAddress( String str ){
    addr = str;
    when you do this:
    <jsp:setProperty name="bean" property="address"/>
    it calls setAddress( String ).

  • How to use property sheets in jsp? ( Property | Value )

    i want guidance regarding using property sheets. like a table.

    i want guidance regarding using property sheets. like a table.

  • Jsp bean property method dilemma

    Hi all,
    I'm just starting using bean and trying to convert old jsp in MVC model using beans. I expose the problem:
    a simple internal search engine ask with a form to enter the some parameter. I want to use this parameter to compose my query to the db.
    Now I use this code in my jsp to make the query:
    boolean firstTime = true;
    Hashtable hshTable = new Hashtable(10);
    Enumeration enumParam = request.getParameterNames();
    while (enumParam.hasMoreElements())
      String name = (String)enumParam.nextElement();
       String sValore = request.getParameter(name);
       if (!sValore.equals(""))
        hshTable.put(name, new String(sValore));
    Enumeration enumHshTable = hshTable.keys();
    while (enumHshTable.hasMoreElements())
      String str_SelectStatement = "SELECT * FROM myTable";
      /*If isn't my first time don't add WHERE but AND*/
      if (firstTime)
       str_SelectStatement += " WHERE (";
       firstTime = false;
      else
       str_SelectStatement +=" AND (";
      String sKey = (String)enumHshTable.nextElement();
       str_SelectStatement += sKey + " LIKE '" + (String)hshTable.get(sKey) + "%')";
    }In this way I compose a smart query like this:
    SELECT * FROM myTable WHERE param1 LIKE 'param1Value' AND param2 LIKE 'param2Value' AND........
    How to convert it in a bean model?
    If I make n setXxxx() getXxxx() I loss in reuse of code.
    If I make personalized setXxxx() for the param1 how can I access to the name of the current method?
    I need this to compose my query. I can retrive the param1Value but not the current name (param1) of the parameter.
    import java.sql.*;
    import java.io.*;
    public class DbBean
    String Param1;
    ResultSet r = null;
    boolean firstTime = true;
    String str_SelectStatement = "SELECT * FROM myTable";
    public DbBean()
      super();
    public String getParam1() throws SQLException
      this.Param1 = r.getString("Param1")!=null?r.getString("Param1"):"";
      return this.Param1;
    public void setParam1(String param1Value)
      if (firstTime)
       str_SelectStatement += " WHERE (";
       firstTime = false;
      else
       str_SelectStatement +=" AND (";
    str_SelectStatement += NameOfTheMethod... + " LIKE '" + param1Value;
      this.Param1= newValue;
    }How can I take the NameOfTheMethod... Param1?
    I search around and I read that you can access to the Method name in the stack trace in an other method. But I can't belive this is THE way. It is no suitable.
    Any suggestion will be greatly appreciated.
    Thank you

    Hiya Ejmade,
    First of all: you're missing the concept of the MVC (Model - View - Controller) model. There are two (2) versions out there, with the currently pending (no. 2) going like this:
    from a resource, a JSP page acquires a java bean, encapsulating the data. Via set/get methods of the bean, you create content on the JSP page
    If you wanted to comprise your search engine like this, you would first have to create a file search.jsp (can be .html at this point) which would call a SearchServlet. This servlet would perform a query, encapsulate the data in some object (let's say java.sql.ResultSet) and then forward control to a JSP page, including the object. The page would acquire the object (through the session context, for instance), extract data, and make it available on the site.
    But that's not what's puzzleing you. You would like to know which method created the database query string so you could adapt that very string. This can be done with the class introspection API, reflection. It's quite complex, you'll need to read about it in a tutorial, try:
    http://java.sun.com/tutorial
    The reflection API has quite a lot of overhead and it, honestly speaking, does not have to be used here. Instead, try this:
    public class DBean {
    Hashtable queryParamters;
    public DBean(Hashtable queryParameters) {
      this.queryParameters = queryParameters;
    public String generateSQLCode() {
      StringBuffer call = new StringBuffer("SELECT * FROM myTable WHERE ");
      for (Enumeration e = queryParameters.keys(); e.hasMoreElements();) {
       String key = (String)e.nextElement();
       call.append(key + " LIKE " + (String)queryParameters.get(key));
      return(call.toString());
    }This code should generate the string for you (with minor adjusments). Btw, I noticed some basic mistakes in the code (calling the Object() constructor, for instance, which is not neccessary). Do pick up a good java book ..
    Hope this helps,
    -ike, .si

  • How to get value of DynamicFormBean property  on JSP ?

    HI All,
    I am using struts 1.2 and I just want to collect value of a DynaActionFormBean property in a string on JSP, this property I have set in ActionClass from where forwarding control to the JSP. I am using request scope for form beans.
    How can I do that?

    Use a hidden form field to hold the property on the JSP page.
    <form>
        <input type='hidden' name='myProperty'/>
    </form>

  • Cannot get "keepgenerated" option to work

    I am attempting to keep the Java files generated from some JSP's. I have
              placed the followin in my weblogic.properties file:
              weblogic.httpd.initArgs.*.jsp=\
              pageCheckSeconds=1,\
              compileCommand=d:/jdk13/bin/javac.exe,\
              workingDir=/weblogic/myserver/public_html/colocation/jsp,\
              keepgenerated=true,\
              verbose=true
              The compiled files show up in a automatically generated directory:
              D:\weblogic\myserver\public_html\colocation\_tmp_war\jsp_servlet
              But there are no source (.java) files there, or in the directory that I
              intended to have as the "workingDir".
              What am I doing wrong?
              

    Thanks for the quick response. It works well now.
              "Dimitri Rakitine" <[email protected]> wrote in message
              news:[email protected]...
              > If you deploy WAR it should go into web.xml context param - see
              > http://www.weblogic.com/docs51/classdocs/webappguide.html#createdd
              >
              > These are the reserved WebLogic context parameter names and their
              function:
              >
              > weblogic.httpd.servlet.reloadCheckSecs
              > Where the <param-value> gives the interval in seconds that WebLogic checks
              for modified servlet classes. For
              > more details on this property, see Reloading servlet classes in the
              Setting WebLogic Properties document.
              >
              > weblogic.httpd.defaultServlet
              > Where the <param-value> specifies the fully qualified class name of a
              servlet that handles a URL request that
              > cannot be resolved to any other servlet. For more details on the default
              servlet, see Setting a default servlet
              > in the Setting WebLogic Properties document.
              >
              > weblogic.httpd.documentRoot
              > Where the <param-value> redefines the location of the document root for
              this servlet context. The default
              > document root is the root directory of the Web Application.
              >
              > weblogic.httpd.servlet.classpath
              > Where the <param-value> redefines the servlet classpath--the location from
              which the Web Application loads its
              > servlet classes. In a Web Application, the servlet classpath defaults to
              the WEB-INF/classes
              > directory. WebLogic Server treats this classpath as the equivalent of the
              classpath established by the
              > servlet.classpath property that is specified in the weblogic.properties
              file.
              >
              > weblogic.jsp.precompile
              > If set to true, all JSP files in the Web Application will be pre-compiled
              when WebLogic Server starts up. If
              > set to false, JSP files will be compiled when they are first requested.
              The default is false.
              >
              > weblogic.jsp.compileCommand
              > Specifies the full pathname of the standard Java compiler used to compile
              the generated JSP servlets. For
              > example, to use the standard Java compiler, specify its location on your
              system as the <param-value>:
              > <param-value>/jdk117/bin/javac.exe</param-value>
              > weblogic.jsp.verbose
              > When set to true, debugging information is printed out to the browser, the
              command prompt, and WebLogic Server
              > log file.
              >
              > weblogic.jsp.packagePrefix
              > Specifies the package into which all compiled JSP pages will be placed.
              >
              > weblogic.jsp.keepgenerated
              > Keeps the Java files that are created as an intermediary step in the
              compilation process.
              >
              > weblogic.jsp.pageCheckSeconds
              > Sets the interval at which WebLogic Server checks to see if JSP files have
              changed and need
              > recompiling. Dependencies are also checked and recursively reloaded if
              changed. If set to 0, pages are checked
              > on every request. If set to -1, page checking and recompiling is disabled.
              >
              > weblogic.jsp.encoding
              > (Optional) Specifies the character set used in the JSP page. If not
              specified, the default encoding for your
              > platform is used.
              >
              >
              > Charles P. Cuozzo <[email protected]> wrote:
              > > I am attempting to keep the Java files generated from some JSP's. I have
              > > placed the followin in my weblogic.properties file:
              >
              > > weblogic.httpd.initArgs.*.jsp=\
              > > pageCheckSeconds=1,\
              > > compileCommand=d:/jdk13/bin/javac.exe,\
              > > workingDir=/weblogic/myserver/public_html/colocation/jsp,\
              > > keepgenerated=true,\
              > > verbose=true
              >
              > > The compiled files show up in a automatically generated directory:
              > > D:\weblogic\myserver\public_html\colocation\_tmp_war\jsp_servlet
              >
              > > But there are no source (.java) files there, or in the directory that I
              > > intended to have as the "workingDir".
              >
              > > What am I doing wrong?
              >
              >
              >
              > --
              > Dimitri
              

  • HELP!: JSP compile options ignored

    Can anyone tell me why my JSP compile settings in weblogic.properties
              get ignored?
              I've got the following settings in the weblogic.properties:
              ===============================================
              <SNIP>
              weblogic.httpd.register.*.jsp=\
              weblogic.servlet.JSPServlet
              weblogic.httpd.initArgs.*.jsp=\
              keepgenerated=true,\
              pageCheckSeconds=1,\
              compileCommand=/usr/java1.2/bin/javac,\
              workingDir=/export/home/weblogic/webapps/fooapp/WEB-INF,\
              verbose=false
              weblogic.httpd.defaultWebApp=/export/home/weblogic/webapps/fooapp
              <SNIP>
              ===============================================
              When I run weblogic, and request a JSP I see the following on the console:
              ===============================================
              <SNIP>
              Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp: init
              Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              param verbose initialized to: true
              Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              param packagePrefix initialized to: jsp_servlet
              Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              param compileCommand initialized to: javac
              Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              param srcCompiler initialized to weblogic.jspc
              Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              param superclass initialized to null
              Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              param workingDir initialized to:
              /export/home/weblogic/webapps/fooapp/_tmp_war
              Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              param pageCheckSeconds initialized to: 1
              Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              initialization complete
              Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              pageCheckSeconds over-ruled in JSPServlet to : 1
              <SNIP>
              ===============================================
              Notice that none of my settings made it in!
              Any help appreciated.
              James
              

    James
              I'm not sure why the properties don't get set from your weblogic.properties
              file definitions, but try adding <context-param> definitions for the
              weblogic properties in question to your web.xml file. Below is a code
              snippet of an example of some properties that we added to our web.xml file.
              The <context-param> definitions should be added in front of your <servlet>
              definitions. See the BEA online documentation for Developing a Web
              Application at
              http://www.weblogic.com/docs51/classdocs/webappguide.html#createdd for a
              description of the context parameter property names..
              <context-param>
              <param-name>weblogic.jsp.compileCommand</param-name>
              <param-value>/jdk1.2.2/bin/javac.exe</param-value>
              </context-param>
              <context-param>
              <param-name>weblogic.jsp.precompile</param-name>
              <param-value>false</param-value>
              </context-param>
              <!-- compileCommand initArg to JSPServlet -->
              <context-param>
              <param-name>weblogic.jsp.compileCommand</param-name>
              <param-value>javac</param-value>
              </context-param>
              <!-- verbose initArg to JSPServlet -->
              <context-param>
              <param-name>weblogic.jsp.verbose</param-name>
              <param-value>true</param-value>
              </context-param>
              <!-- packagePrefix initArg to JSPServlet -->
              <context-param>
              <param-name>weblogic.jsp.packagePrefix</param-name>
              <param-value>jsp_servlet</param-value>
              </context-param>
              <!-- keepgenerated initArg to JSPServlet -->
              <context-param>
              <param-name>weblogic.jsp.keepgenerated</param-name>
              <param-value>true</param-value>
              </context-param>
              <!-- pageCheckSeconds initArg to JSPServlet -->
              <context-param>
              <param-name>weblogic.jsp.pageCheckSeconds</param-name>
              <param-value>1</param-value>
              </context-param>
              John J. Feigal Voice (651)766-8787 (main)
              Sr. Technical Consultant (651)766-7249 (direct)
              Ensodex, Inc. Fax (651)766-8792
              4105 N. Lexington Ave., Suite 150 email [email protected]
              Arden Hills, MN 55126 WebSite http://www.ensodex.com
              "James House" <[email protected]> wrote in message
              news:[email protected]...
              > Can anyone tell me why my JSP compile settings in weblogic.properties
              > get ignored?
              > I've got the following settings in the weblogic.properties:
              >
              > ===============================================
              > <SNIP>
              > weblogic.httpd.register.*.jsp=\
              > weblogic.servlet.JSPServlet
              > weblogic.httpd.initArgs.*.jsp=\
              > keepgenerated=true,\
              > pageCheckSeconds=1,\
              > compileCommand=/usr/java1.2/bin/javac,\
              > workingDir=/export/home/weblogic/webapps/fooapp/WEB-INF,\
              > verbose=false
              > weblogic.httpd.defaultWebApp=/export/home/weblogic/webapps/fooapp
              > <SNIP>
              > ===============================================
              >
              > When I run weblogic, and request a JSP I see the following on the console:
              >
              > ===============================================
              > <SNIP>
              > Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              init
              > Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              > param verbose initialized to: true
              > Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              > param packagePrefix initialized to: jsp_servlet
              > Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              > param compileCommand initialized to: javac
              > Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              > param srcCompiler initialized to weblogic.jspc
              > Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              > param superclass initialized to null
              > Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              > param workingDir initialized to:
              > /export/home/weblogic/webapps/fooapp/_tmp_war
              > Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              > param pageCheckSeconds initialized to: 1
              > Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              > initialization complete
              > Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
              > ######
              > ########
              > ############
              > ##############
              > pageCheckSeconds over-ruled in JSPServlet to : 1
              > ##############
              > ############
              > ########
              > ######
              > <SNIP>
              > ===============================================
              >
              > Notice that none of my settings made it in!
              > Any help appreciated.
              >
              > James
              >
              

  • Q: Another jsp drop-down menu problem+propeblem with savng button

    Well i have many problems:
    Starters i use eclipse with tomcat and postgres. I have to create a jsp page that shows some data directly from database.
    This is what i have so far:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <%@ page import="property.core.Property"  %>
    <jsp:useBean id="PropertyDAO" scope="page" class="property.dao.PropertyDAO" />
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Vaata Vara</title>
    </head>
    <body>
    <script>
    function salvesta(){
    document.forms[0].mida_teha.value='salvestada' ; //salvesta=save and mida_teha=action
    document.forms[0].submit();
    </script>
    <input type='hidden' name='mida_teha' value='<%=request.getParameter("mida_teha") %>'>
    <form action='pg?mode=vaata_vara' method=POST>
    <input type='hidden' name='property' value='<%=request.getParameter("property") %>'>
    Valitud vara: <br>
    <% if((request.getParameter("property"))!=null){
    int property = Integer.valueOf(request.getParameter("property")).intValue();//
    String property_type="";
    String property_name ="";
    String property_created = "" ;
    String property_created_by ="" ;
    String property_updated = "" ;
    String property_updated_by ="" ;
    property.core.Property my_property ;
    if (request.getParameter("mida_teha") != null){
         my_property = PropertyDAO.GetProperty_fromDB(property);
         my_property.setProperty_name(request.getParameter("property_name"));
         my_property.setProperty_updated(request.getParameter("property_updated"));
         //my_property.getProperty_updated_by(request.getParameter("property_updated_by"));
         PropertyDAO.UpdateProperty_to_DB(my_property);
    out.println("<table border=1 cellpadding=0 cellspacing=0><tr><td><table"+
              "width=100% border=1 cellpadding=2 cellspacing=1>");
    if ((my_property = PropertyDAO.GetProperty_fromDB(property)) != null){
         property= my_property.getProperty() ;
        property_type = my_property.getProperty_type() ;
            property_name = my_property.getProperty_name() ;
        property_created = my_property.getProperty_created() ;
        property_created_by= my_property.getProperty_created_by() ;
        property_updated = my_property.getProperty_updated() ;
        property_updated_by= my_property.getProperty_updated_by() ;
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>ID</td><td> " + property + " </TD></tr>");
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Tyyp</td><td> <SELECT ><OPTION value="+my_property.getProperty_name()+" 'name='property_type'>"+property_type+"</OPTION></SELECT> </TD></tr>");
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Nimetus</td><td> <b><font color='#0000ff'><input type='text' value='"+ property_name + "' name='name'></font></b></TD></tr>");
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Loodud</td><td> "+ property_created + " </TD></tr>");
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Looja</td><td> " + property_created_by + " </TD></tr>");     
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Uuendatud</td><td> <b><font color='#0000ff'><input type='text' value='"+ property_updated + "' name='updated'></font></b></TD></tr>");
         out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Uuendaja</td><td> " + property_updated_by + " </TD></tr>");     
    out.println("</table></td></tr></table>");
    %>
    <input type="button" value="muuda vara" onClick="muuda_vara()">
    <input type="button" value="salvesta" onClick="salvesta()">
    </form>
    </body>
    </html>The problem is that i have no clue(allthough i have chekced the forums for help and experimented and i still could not make it work) how to make a dropdown menu for out.println("<TR BGCOLOR='#ffffff'><TD BGCOLOR='#cccccc' nowrap>Tyyp</td><td> <SELECT ><OPTION value="+my_property.getProperty_name()+" 'name='property_type'>"+property_type+"</OPTION></SELECT> </TD></tr>"); this. I have tryed http://forum.java.sun.com/thread.jspa?forumID=45&threadID=5241837 this page and that messes my "" up. If anyone can give me any tips how to integrate that code what is posted in the link to mine please let me know.
    Second problem is that when i push the save button, then i get a runtime error and a joyce to i want to debug or not. And as well in the example which i got from the teacher works just fine.
         //my_property.getProperty_updated_by(request.getParameter("property_updated_by")); this without the // get the not aplicable error as well(that in my other class file which is linked to this jsp the parameter is not aplicable). i managed to make in other jsp problem identical problem go away by adding a declaration of string and adding that string into the getParameter and this case everything should be okei, but it is not :(
    Anyway property.jsp uses property.java to get the getParameter and setParameter, PropertyDAO is the database stuff (connecting to database, getting data from the database).
    To be on the safe side i will add my propertyDAO.java
    package property.dao;
    import java.sql.* ;
    import property.core.Property ;
    import property.log.MyLogger ;
    import java.util.*;
    public class PropertyDAO {
        private int propertycount ;
        ResultSet VaraHulk ;
        String sql ;
        String url = "jdbc:postgresql://localhost/database";
        String usr = "";
        String pwd = "";
        Connection db ;     
        Statement  st ;
        Property [] VaraMassiiv  ;
        Property Current_Property ;
      public PropertyDAO(){
           try{
                   ResourceBundle bundle = ResourceBundle.getBundle("DBConnection");
                    this.url = bundle.getString("URL");
                    this.usr = bundle.getString("usr");
                    this.pwd = bundle.getString("pwd");
                    Class.forName(bundle.getString("Driver"));
           }catch(Exception ex){
                MyLogger MyLogger = new MyLogger();
               MyLogger.Log("dao.propertyDAO():",ex.getMessage());
           public Property [] getProperty_fromDB(){
                try{
                     this.db = DriverManager.getConnection(this.url, this.usr, this.pwd);
                     this.st = this.db.createStatement();
                    sql = "select count(*) as varade_arv from property" ;
                    VaraHulk = this.st.executeQuery(sql);
                    while(VaraHulk.next()){
                         this.propertycount = VaraHulk.getInt("varade_arv");
                    sql = "select property, property_type.name AS property_type, property.name AS property_name, " +
                              "property.created AS property_created, employee.first_name "+
                  "AS property_created_by, property.updated AS property_updated,employee.first_name AS property_updated_by" +
                  " from property, property_type, employee where property_type."+
                  "property_type=property.property_type and property.created_by=employee.employee ORDER by property" ;
                    VaraHulk = this.st.executeQuery(sql);
                    VaraMassiiv = new Property[this.propertycount];
                    int cnt = 0;
                    while(VaraHulk.next()){
                         Current_Property = new Property();   
                         Current_Property.setProperty(VaraHulk.getInt("property"));
                         Current_Property.setProperty_type(VaraHulk.getString("property_type"));
                      Current_Property.setProperty_name(VaraHulk.getString("property_name"));
                      System.out.println("getProperty_name:" + Current_Property.getProperty_name() );
                      Current_Property.setProperty_created(VaraHulk.getString("property_created"));
                      System.out.println("getProperty_created:" + Current_Property.getProperty_created() );
                      Current_Property.setProperty_created_by(VaraHulk.getString("property_created_by"));
                      System.out.println("getProperty_created_by:" + Current_Property.getProperty_created_by() );
                      Current_Property.setProperty_updated(VaraHulk.getString("property_updated"));
                      System.out.println("getProperty_updated:" + Current_Property.getProperty_updated() );
                      Current_Property.setProperty_updated_by(VaraHulk.getString("property_updated_by"));
                      System.out.println("getProperty_updated_by:" + Current_Property.getProperty_updated_by() );
                      VaraMassiiv[cnt] = Current_Property ;
                      cnt =  cnt + 1;
                       this.db.close();
                }catch(Exception ex){
                     MyLogger MyLogger = new MyLogger();
                    MyLogger.Log("property.getProperty_fromDB():",ex.getMessage());
                return VaraMassiiv;
           public Property GetProperty_fromDB(int property){
                try{
                     this.db = DriverManager.getConnection(this.url, this.usr, this.pwd);
                    this.propertycount = 0;
                    this.st = this.db.createStatement();
                    sql = "select property, property_type.name AS property_type, property.name AS property_name, property.created AS property_created, employee.first_name "+
                  "AS property_created_by,property.updated AS property_updated, employee.first_name AS property_updated_by" +
                  " from property, property_type, employee where property_type."+
                  "property_type=property.property_type and property.created_by=employee.employee and property.property =" + Integer.toString(property) ;
                    VaraHulk = this.st.executeQuery(sql);
                    while(VaraHulk.next()){
                         Current_Property = new Property();
                      Current_Property.setProperty(VaraHulk.getInt("property"));
                      Current_Property.setProperty_type(VaraHulk.getString("property_type"));
                      Current_Property.setProperty_name(VaraHulk.getString("property_name"));
                      System.out.println("getProperty_name:" + Current_Property.getProperty_name() );
                      Current_Property.setProperty_created(VaraHulk.getString("property_created"));
                      System.out.println("getProperty_created:" + Current_Property.getProperty_created() );
                      Current_Property.setProperty_created_by(VaraHulk.getString("property_created_by"));
                      System.out.println("getProperty_created_by:" + Current_Property.getProperty_created_by() );
                      Current_Property.setProperty_updated(VaraHulk.getString("property_updated"));
                      System.out.println("getProperty_updated:" + Current_Property.getProperty_updated() );
                      Current_Property.setProperty_updated_by(VaraHulk.getString("property_updated_by"));
                      System.out.println("getProperty_updated_by:" + Current_Property.getProperty_updated_by() );
                      this.propertycount =   this.propertycount + 1;
                    this.db.close();
                } catch(Exception ex){
                     MyLogger MyLogger = new MyLogger();
                    MyLogger.Log("PropertyDAO.GetProperty_fromDB():",ex.getMessage());
                return Current_Property ;
          public void UpdateProperty_to_DB (Property updated_property){
                try{
                     this.db = DriverManager.getConnection(this.url, this.usr, this.pwd);
                     this.st = this.db.createStatement();
                     int stmtInt = this.st.executeUpdate("update property set property_type='" + updated_property.getProperty_type() +
                               "',name=" +  updated_property.getProperty_name() + ",created=" + updated_property.getProperty_created() +
                               ",'created_by='" + updated_property.getProperty_created_by() +  ",updated="+updated_property.getProperty_updated()+
                               ",updated_by="+updated_property.getProperty_updated_by()+
                               "' where property=" + Integer.toString(updated_property.getProperty() ));
                     this.db.close(); 
                }catch(Exception ex){
                        MyLogger MyLogger = new MyLogger();
                        MyLogger.Log("PropertyDAO.UpdateProperty_to_DB():",ex.getMessage());
           public void finalize(){
                 try{
                   System.out.println("finalize");
                  }catch(Exception ex){ 
                    MyLogger MyLogger = new MyLogger();
                    MyLogger.Log("PropertyDAO.finalize():",ex.getMessage());
    }Property.java
    package property.core;
    import property.log.MyLogger ;
    public class Property {
        //private int propertycount ;
        private int property ;
        //private int current_property ;
        private String property_type ;
        private String property_name ;
        private String property_created ;
        private String property_created_by;
        private String property_updated_by;
        private String property_updated;
        public Property(){
             try{
             }catch(Exception ex){
                   MyLogger MyLogger = new MyLogger();
                   MyLogger.Log("core.Property():",ex.getMessage());
        public void setProperty (int property){
             this.property = property;
        public void setProperty_type (String property_type){
             this.property_type = property_type;
        public void setProperty_name (String property_name){
             this.property_name = property_name;
        public void setProperty_created ( String property_created){
             this.property_created = property_created;
        public void setProperty_created_by (String property_created_by){
             this.property_created_by = property_created_by;
        public void setProperty_updated ( String property_updated){
             this.property_updated = property_updated;
        public void setProperty_updated_by (String property_updated_by){
             this.property_updated_by = property_updated_by;
        public int getProperty () {
             return this.property ;
        public String getProperty_type () {
             return this.property_type ;
        public String getProperty_name () {
             return this.property_name ;
        public String getProperty_created () {
             return this.property_created;
        public String getProperty_created_by () {
             return this.property_created_by;
        public String getProperty_updated () {
             return this.property_updated;
        public String getProperty_updated_by () {
             return this.property_updated_by;
        public void finalize(){
             try{
                  System.out.println("finalize");
             }catch (Exception ex){
                   MyLogger MyLogger = new MyLogger();
                   MyLogger.Log("core.Property():",ex.getMessage());
    }(well it took me 3 days to get the code to work that much as it does anyways)
    hope someone here can help
    Edited by: kohuke on May 30, 2008 11:27 AM
    Added few codes that is connected with the current jsp page

    are you sure your stop() are in the right place??
    eg.. on the last frame of the onRollOver animation??
    also... why have you got on(releaseOutside); ???
    onRollOut will suffice.

  • How can WLS use JSP pages in a Web Application witth just a JRE [Web Application, WAR, JSP, weblogic.jsp.pageCheckSeconds and JRE]

              How can WLS use JSP pages in a Web Application (either a .war file or a war directory structure) without a java compiler?
              I suspect either the JSP specification is flawed (i.e. it doesn't take account of servers using just a JRE), or BEA's implementation is broken.
              Production servers do not have a JDK installed. They only have a JRE. Therfore a java compiler is not present on the machine that the Web Application is deployed onto.
              On the development machine, when the server is requested to load the JSP it creates a tmpwar directory within the Web Application directory structure. This is then included in the resultant .war file thus:
              D:\war>jar -tf gmi.war
              META-INF/
              META-INF/MANIFEST.MF
              gmiService.jsp
              WEB-INF/
              WEB-INF/classes/
              WEB-INF/classes/com/
              WEB-INF/classes/com/bt/
              WEB-INF/classes/com/bt/gmi/
              WEB-INF/classes/com/bt/gmi/gmiService.class
              WEB-INF/getList.xsl
              WEB-INF/getListByConnection.xsl
              WEB-INF/getListByDistrict.xsl
              WEB-INF/getListByDistrictConnection.xsl
              WEB-INF/lib/
              WEB-INF/source/
              WEB-INF/source/build.bat
              WEB-INF/source/gmiService.java
              WEB-INF/web.xml
              WEB-INF/weblogic.xml
              tmpwar/
              tmpwar/jsp_servlet/
              tmpwar/jsp_servlet/_gmiservice.class
              tmpwar/jsp_servlet/_gmiservice.java
              When deployed on the production server with the web.xml file set to use the following values (note XML stripped):
              weblogic.jsp.pageCheckSeconds
              -1
              weblogic.jsp.precompile
              false
              weblogic.jsp.compileCommand
              javac
              weblogic.jsp.verbose
              true
              weblogic.jsp.packagePrefix
              jsp_servlet
              weblogic.jsp.keepgenerated
              false
              And in the weblogic.properties file:
              weblogic.httpd.webApp.gmi=war/gmi
              I've also tried with the .war file, but that insists on creating another tmpwar directory outside of the .war file.
              Then, although I have set pageCheckSeconds to -1 (don't check and don't recompile) ter production server still attempts to recompile the JSP's:
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: init
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param verbose initialized to: true
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param packagePrefix initialized to: jsp_servlet
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param compileCommand initialized to: javac
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param srcCompiler initialized to weblogic.jspc
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param superclass initialized to null
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param workingDir initialized to: /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param pageCheckSeconds initialized to: -1
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: initialization complete
              Mon Sep 25 11:40:12 BST 2000:<I> <WebAppServletContext-gmi> Generated java file: /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java
              Mon Sep 25 11:40:14 BST 2000:<E> <WebAppServletContext-gmi> Compilation of /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java failed: Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main
              java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[javac, -classpath, /opt/Solaris_JRE_1.2.1_04/lib/rt.jar:/opt/Solaris_JRE_1.2.1_04/lib/i18n.jar:/opt/Solaris_JRE_1.2.1_04/classes:/var/wls/5.1/weblogic/lib/weblogic510sp4boot.jar:/var/wls/5.1/weblogic/classes/boot:/var/wls/5.1/weblogic/eval/cloudscape/lib/cloudscape.jar:/var/wls/5.1/weblogic/lib/wleorb.jar:/var/wls/5.1/weblogic/lib/wlepool.jar:/var/wls/5.1/weblogic/lib/weblogic510sp4.jar:/var/wls/5.1/weblogic/license:/var/wls/5.1/weblogic/classes:/var/wls/5.1/weblogic/lib/weblogicaux.jar:/opt/wls-servers/gmiServer/weblogic/gmiServer/serverclasses:/opt/wls-servers/gmiServer/weblogic/lotusxsl.jar:/opt/wls-servers/gmiServer/weblogic/xerces.jar:/opt/wls-servers/gmiServer/weblogic/logging.jar::/opt/wls-servers/gmiServer/weblogic/war/gmi/WEB-INF/classes:/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war, -d, /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war, /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java])
              at java.lang.Throwable.fillInStackTrace(Native Method)
              at java.lang.Throwable.fillInStackTrace(Compiled Code)
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Exception.<init>(Compiled Code)
              at java.io.IOException.<init>(Compiled Code)
              at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled Code)
              at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
              at weblogic.servlet.jsp.JspStub.compilePage(Compiled Code)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:187)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:142)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:744)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:692)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              at weblogic.kernel.ExecuteThread.run(Compiled Code)
              

    The default Java compiler from sun lives in the tools.jar that comes with
              the JDK. Just add that to your set of JARs which are deployed in production
              and you should be fine. No need to install the full JDK - just make the
              tools.jar available to WebLogic.
              Regards
              James
              James Strachan
              =============
              email: [email protected]
              web: http://www.metastuff.com
              "Martin Webb" <[email protected]> wrote in message
              news:[email protected]...
              >
              > How can WLS use JSP pages in a Web Application (either a .war file or a
              war directory structure) without a java compiler?
              >
              > I suspect either the JSP specification is flawed (i.e. it doesn't take
              account of servers using just a JRE), or BEA's implementation is broken.
              >
              > Production servers do not have a JDK installed. They only have a JRE.
              Therfore a java compiler is not present on the machine that the Web
              Application is deployed onto.
              >
              > On the development machine, when the server is requested to load the JSP
              it creates a tmpwar directory within the Web Application directory
              structure. This is then included in the resultant .war file thus:
              >
              > D:\war>jar -tf gmi.war
              > META-INF/
              > META-INF/MANIFEST.MF
              > gmiService.jsp
              > WEB-INF/
              > WEB-INF/classes/
              > WEB-INF/classes/com/
              > WEB-INF/classes/com/bt/
              > WEB-INF/classes/com/bt/gmi/
              > WEB-INF/classes/com/bt/gmi/gmiService.class
              > WEB-INF/getList.xsl
              > WEB-INF/getListByConnection.xsl
              > WEB-INF/getListByDistrict.xsl
              > WEB-INF/getListByDistrictConnection.xsl
              > WEB-INF/lib/
              > WEB-INF/source/
              > WEB-INF/source/build.bat
              > WEB-INF/source/gmiService.java
              > WEB-INF/web.xml
              > WEB-INF/weblogic.xml
              > tmpwar/
              > tmpwar/jsp_servlet/
              > tmpwar/jsp_servlet/_gmiservice.class
              > tmpwar/jsp_servlet/_gmiservice.java
              >
              > When deployed on the production server with the web.xml file set to use
              the following values (note XML stripped):
              >
              > weblogic.jsp.pageCheckSeconds
              > -1
              >
              > weblogic.jsp.precompile
              > false
              >
              > weblogic.jsp.compileCommand
              > javac
              >
              > weblogic.jsp.verbose
              > true
              >
              > weblogic.jsp.packagePrefix
              > jsp_servlet
              >
              > weblogic.jsp.keepgenerated
              > false
              >
              >
              > And in the weblogic.properties file:
              >
              > weblogic.httpd.webApp.gmi=war/gmi
              >
              > I've also tried with the .war file, but that insists on creating another
              tmpwar directory outside of the .war file.
              >
              >
              > Then, although I have set pageCheckSeconds to -1 (don't check and don't
              recompile) ter production server still attempts to recompile the JSP's:
              >
              >
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: init
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              verbose initialized to: true
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              packagePrefix initialized to: jsp_servlet
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              compileCommand initialized to: javac
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              srcCompiler initialized to weblogic.jspc
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              superclass initialized to null
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              workingDir initialized to:
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              pageCheckSeconds initialized to: -1
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp:
              initialization complete
              > Mon Sep 25 11:40:12 BST 2000:<I> <WebAppServletContext-gmi> Generated java
              file:
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
              java
              > Mon Sep 25 11:40:14 BST 2000:<E> <WebAppServletContext-gmi> Compilation of
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
              java failed: Exception in thread "main" java.lang.NoClassDefFoundError:
              sun/tools/javac/Main
              >
              > java.io.IOException: Compiler failed
              executable.exec([Ljava.lang.String;[javac, -classpath,
              /opt/Solaris_JRE_1.2.1_04/lib/rt.jar:/opt/Solaris_JRE_1.2.1_04/lib/i18n.jar:
              /opt/Solaris_JRE_1.2.1_04/classes:/var/wls/5.1/weblogic/lib/weblogic510sp4bo
              ot.jar:/var/wls/5.1/weblogic/classes/boot:/var/wls/5.1/weblogic/eval/cloudsc
              ape/lib/cloudscape.jar:/var/wls/5.1/weblogic/lib/wleorb.jar:/var/wls/5.1/web
              logic/lib/wlepool.jar:/var/wls/5.1/weblogic/lib/weblogic510sp4.jar:/var/wls/
              5.1/weblogic/license:/var/wls/5.1/weblogic/classes:/var/wls/5.1/weblogic/lib
              /weblogicaux.jar:/opt/wls-servers/gmiServer/weblogic/gmiServer/serverclasses
              :/opt/wls-servers/gmiServer/weblogic/lotusxsl.jar:/opt/wls-servers/gmiServer
              /weblogic/xerces.jar:/opt/wls-servers/gmiServer/weblogic/logging.jar::/opt/w
              ls-servers/gmiServer/weblogic/war/gmi/WEB-INF/classes:/opt/wls-servers/gmiSe
              rver/weblogic/war/gmi/_tmp_war, -d,
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war,
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
              java])
              > at java.lang.Throwable.fillInStackTrace(Native Method)
              > at java.lang.Throwable.fillInStackTrace(Compiled Code)
              > at java.lang.Throwable.<init>(Compiled Code)
              > at java.lang.Exception.<init>(Compiled Code)
              > at java.io.IOException.<init>(Compiled Code)
              > at
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled Code)
              > at
              weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
              > at weblogic.servlet.jsp.JspStub.compilePage(Compiled Code)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
              > at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
              7)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :118)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :142)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:744)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:692)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:251)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
              > at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              > at weblogic.kernel.ExecuteThread.run(Compiled Code)
              >
              >
              >
              

  • No .java file found in the target directory of JSP compilation

              There are only .class files. Where are those .java files? I am using WL5.1 SP7.
              

    We had to add the following to our application's web.xml file:
              <!-- keepgenerated initArg to JSPServlet -->
              <context-param>
              <param-name>weblogic.jsp.keepgenerated</param-name>
              <param-value>true</param-value>
              </context-param>
              John J. Feigal Voice (651)766-8787 (main)
              Sr. Technical Consultant (651)766-7249 (direct)
              Ensodex, Inc. Fax (651)766-8792
              4105 N. Lexington Ave., Suite 150 email [email protected]
              Arden Hills, MN 55126 WebSite http://www.ensodex.com
              "Jim Linux" <[email protected]> wrote in message
              news:3a40b129$[email protected]..
              >
              > There are only .class files. Where are those .java files? I am using WL5.1
              SP7.
              

  • How to call struts action manually in onchange property???

    Hello!
    action defined in struts-config.xml:
    <action path="/editLafLm" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataForwardAction" name="DataForm" parameter="/editLafLm.jsp">
    <set-property property="modelReference" value="editLafLmUIModel"/>
    <forward name="Submit" path="/viewLaf.do"/>
    </action>
    In my JSP the following form:
    <html:form action="/editLafLm.do" target="laf" onsubmit="self.close();">
    <input type="hidden" name="<c:out value='${bindings.statetokenid}'/>" value="<c:out value='${bindings.statetoken}'/>"/>
    <html:select property="StaId1">
    <html:optionsCollection label="prompt" value="index" property="StaId1.displayData"/>
    </html:select>
    <c:out value="${bindings.editingMode}"/>
    <input name="event_Submit" type="submit" value="    OK    "/>
    </html:form>
    When i click choose an entry from the Select list and then click the Submit Button all works well (the action forward goes to viewLaf.do)
    But i want to use the "onchange" property on the select list:
    <html:select property="StaId1" onchange="submit();">
    This is not the same as pressing the Submit button because here the action editLafLm.do is done in a new window (and then i have to click the submit button)...
    So can i call the action or the action forward manually in the onchange-property so that there is the same behavour as clicking on the submit button???
    Thanks
    Markus

    Markus,
    You can use the click method on the submit button called "event_Submit". The trick is to access it in the elements array of the form.
    So instead of:
    <html:select property="StaId1" onchange="submit();">you will have
    <html:select property="StaId1" onchange="elements[n].click();">where n is the correct index of the 'event_Submit' element in the array of form elements.
    If you need to access the form by name you can always count the form name to be DataForm. So from the document it will be:
    document.forms.DataForm.elements[8].click()Charles.

  • Struts Actions and events in one jsp?!

    Hello,
    I have a problem with Struts actions and events in a jsp.
    It is a search page and when the user clicks the search button I trigger an event and when the user clicks on a link in the result table (same page) I use an action that opens a new detail jsp. The first search query works well, I get a result, open the detail page, go back (using an action).
    Then I start a new search, but struts tries to open the detail page. While debugging I found out, that struts apparantly has no action or event. Why does it work at first time?
    Any ideas?
    Thanks in advance
    Britta

    Thanks for answer,
    I work with actions AND events. I think that`s the problem. When I go back from detail page to search page I use a custom DataForwardAction class with the following method:
    public void onCancel(DataActionContext ctx)
    DCBindingContainer bc = ctx.getBindingContainer();
    HttpServletRequest request = ctx.getHttpServletRequest();
    WebUtils.setSession(request);
    String ziel = request.getParameter("ziel");
    JUCtrlActionBinding action = (JUCtrlActionBinding) bc.findCtrlBinding("Rollback");
    action.doIt();
    try
    ctx.setActionForward(ziel);
    catch (Exception e)
    ctx.setActionForward("liste_freig");
    Ziel has the correct value ("search") and I think the struts config is also correct:
    <action path="/material" type="view.actions.materialAction" className="oracle.adf.controller.struts.actions.DataActionMapping" parameter="/material.jsp" name="DataForm">
    <set-property property="modelReference" value="generalUIModel"/>
    <forward name="liste_freig" path="/liste_freig.do"/>
    <forward name="liste_angelegt" path="/liste_angelegt.do"/>
    <forward name="list_bewertet" path="/list_bewertet.do"/>
    <forward name="liste_abgelehnt" path="/liste_abgelehnt.do"/>
    <forward name="liste_onhold" path="/liste_onhold.do"/>
    <forward name="search" path="/search.do?action=search"/>
    </action>
    But when I get back from material page to search page (the first time it works). The location pathname is material.do not search.do When start a new search the material page opens, not, as desired, the search page with new results.
    Search Action:
    public class searchAction extends DataForwardAction
    public searchAction()
    protected void prepareModel(DataActionContext ctx) throws Exception
    HttpServletRequest request = ctx.getHttpServletRequest();
    DataActionMapping acmap = ctx.getActionMapping();
    DCBindingContainer bc = ctx.getBindingContainer();
    WebUtils.setSession(request);
    JUCtrlActionBinding action = (JUCtrlActionBinding) bc.findCtrlBinding("delSearchQuery");
    action.doIt();
    String sEvent=null;
    try
    sEvent=request.getParameter("event");
    catch (Exception e)
    sEvent=null;
    if (sEvent==null)
    if (request.getParameter("action") != null)
    if (request.getParameter("action").equals("material"))
    Number mat_no=new Number(request.getParameter("MaterialNumber"));
    Number userId=new Number(WebUtils.getUserId(request));
    bc = ctx.getBindingContainer();
    action = (JUCtrlActionBinding) bc.findCtrlBinding("prepareMaterial");
    ArrayList arrayList= new ArrayList();
    arrayList.add(0,mat_no);
    arrayList.add(1,userId);
    action.setParams(arrayList);
    action.doIt();
    ctx.setActionForward("material");
    if (request.getParameter("action").equals("material_datasheet"))
    ctx.setActionForward("material_datasheet");
    super.prepareModel(ctx);
    public void onSearch(DataActionContext ctx)
    DCBindingContainer bc = ctx.getBindingContainer();
    HttpServletRequest request = ctx.getHttpServletRequest();
    WebUtils.setSession(request);
    ctx.setActionForward("search");
    Struts config:
    <action path="/search" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.actions.searchAction" name="DataForm" parameter="/search.jsp">
    <set-property property="modelReference" value="searchUIModel"/>
    <forward name="search" path="/search.do?action=search"/>
    <forward name="material" path="/material.do?action=material"/>
    <forward name="material_datasheet" path="/material_datasheet.do?action=material_datasheet"/>
    </action>
    I think it`s a Struts bug. Or is there something I don`t see?

  • Jsp to class files

    All,
    I am pretty new with jsp and java. I want to know if how do I deploy a jsp application as class files instead of sources. Can someone give me how do I get start with this? Many thanks.

    You can do this:
    1. Install Jakarta Ant
    2. Create a file called jsp.xml that contains
    <?xml version="1.0"?>
    <project name="jspc-test" default="main" basedir=".">
    <target name="main" depends="myjsp">
    </target>
    <target name="init">
    <property name="uriroot.dir" location="."/>
    <property name="jsp.dir" location="<your jsp directory>"/>
    <property name="jsp.output.dir" location="<your output directory>"/>
    <property name="jsp.verbosity" value="3"/>
    <mkdir dir="${jsp.output.dir}"/>
    </target>
    <target name="myjsp" depends="init">
    <jspc
    destdir="${jsp.output.dir}"
         uriroot="${uriroot.dir}"
    srcdir="${jsp.dir}"
    verbose="${jsp.verbosity}">
    <include
    name="<your jsp file name>.jsp"/>
    </jspc>
    </target>
    </project>
    3. Run a batch file that looks like this:
    set CLASSPATH=<path to your jar>;<path to your jar>
    <full path>\java -Dant.home="<full path>\ant" org.apache.tools.ant.Main -f "<full path>\jspc.xml"
    This will create a <your jsp file name>_jsp.java
    4. Compile the resultant java file
    Or if you want this done automated, then use this tool
    http://download.com.com/3000-2417-10227362.html
    Write your .jsp file. Compile. You can find the .java and the .class file in \workarea

  • With jsp

    - public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) {
         - return new ModelAndView("/test.jsp");
         - Or for writing the response directly:
         - public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) {
         - response.getWriter().write("This is a test");
         - return null;
    -->
    <!--     <bean name="/test" class="example.ExampleController"/> -->
    <!-- Example datasource bean
    <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
    <property name="driverClassName"><value>org.hsqldb.jdbcDriver</value></property>
    <property name="url">
    <value>jdbc:hsqldb:/Users/trisberg/projects/springapp/db/test</value>
    </property>
    <property name="username"><value>sa</value></property>
    <property name="password"><value></value></property>
    </bean>
    -->
    <!-- ========================= PERSISTENCE DEFINITIONS ========================= -->
         <!--
         Alternative DataSource for non-J2EE environments.
         -->
    <bean id="trainingDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
    <property name="driverClassName"><value>oracle.jdbc.driver.OracleDriver</value></property>
    <property name="url"><value>jdbc:oracle:oci:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=62.130.140.81) (PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=devl2)))</value></property>
    <property name="username"><value>training</value></property>
    <property name="password"><value>oradev</value></property>
    </bean>
         <bean id="trainingSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="configurationClass" value="org.hibernate.cfg.AnnotationConfiguration"/>
    <property name="configLocation" value="/WEB-INF/hibernate.cfg.xml"/>
    <property name="dataSource" ref="trainingDataSource"/>
    <property name="hibernateProperties">
              <props>
              <prop key="hibernate.c3p0.acquire_increment">1</prop>
    <prop key="hibernate.c3p0.idle_test_period">0</prop>
    <prop key="hibernate.c3p0.max_size">50</prop>
    <prop key="hibernate.c3p0.max_statements">0</prop>
    <prop key="hibernate.c3p0.min_size">5</prop>
    <prop key="hibernate.c3p0.timeout">100</prop>
    <prop key="hibernate.cglib.use_reflection_optimizer">false</prop>
    <prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
    <prop key="hibernate.show_sql">true</prop>
    <prop key="hibernate.jdbc.use_streams_for_binary">true</prop>
    </props>
         </property>
    </bean>
    <!-- Controller definitions -->
    <!-- ****** START ACEGI Security Configuration *******-->
         <!-- ======================== FILTER CHAIN ======================= -->
         <!-- if you wish to use channel security, add "channelProcessingFilter," in front
              of "httpSessionContextIntegrationFilter" in the list below -->
         <bean id="filterChainProxy"
              class="org.acegisecurity.util.FilterChainProxy">
              <property name="filterInvocationDefinitionSource">
                   <value>
                        CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
                        PATTERN_TYPE_APACHE_ANT
                        /**=httpSessionContextIntegrationFilter,formAuthenticationProcessingFilter,exceptionTranslationFilter,filterSecurityInterceptor
                   </value>
              </property>
         </bean>
         <!-- Start Security filter config -->
         <bean id="exceptionTranslationFilter"
              class="org.acegisecurity.ui.ExceptionTranslationFilter">
              <property name="authenticationEntryPoint">
                   <ref bean="formLoginAuthenticationEntryPoint" />
              </property>
         </bean>
         <!-- Define filter to handle BASIC authentication -->
         <bean id="basicProcessingFilter"
              class="org.acegisecurity.ui.basicauth.BasicProcessingFilter">
              <property name="authenticationManager">
                   <ref bean="authenticationManager" />
              </property>
              <property name="authenticationEntryPoint">
                   <ref bean="authenticationEntryPoint" />
              </property>
         </bean>
         <!-- Define realm for BASIC login-->
         <bean id="authenticationEntryPoint"
              class="org.acegisecurity.ui.basicauth.BasicProcessingFilterEntryPoint">
              <property name="realmName">
                   <value>Spring Web Realm</value>
              </property>
         </bean>
         <!-- Define filter to handle FORM authentication -->
         <bean id="formAuthenticationProcessingFilter"
              class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">
              <property name="filterProcessesUrl">
                   <value>/j_acegi_security_check</value>
              </property>
              <property name="authenticationFailureUrl">
                   <value>/loginFailed.jsp</value>
              </property>
              <property name="defaultTargetUrl">
                   <value>/secure/welcome.htm</value>
              </property>
              <property name="authenticationManager">
                   <ref bean="authenticationManager" />
              </property>
         </bean>
         <!-- Define realm for FORM login-->
         <bean id="formLoginAuthenticationEntryPoint"
              class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint">
              <property name="loginFormUrl">
                   <value>/login.jsp</value>
              </property>
              <property name="forceHttps">
                   <value>false</value>
              </property>
         </bean>
         <bean id="httpSessionContextIntegrationFilter"
              class="org.acegisecurity.context.HttpSessionContextIntegrationFilter">
         </bean>
         <!-- End Security filter config -->
         <!-- Start Security interceptor config -->
         <!-- Define authentication manager, decision manager and secure URL patterns -->
         <bean id="filterSecurityInterceptor"
              class="org.acegisecurity.intercept.web.FilterSecurityInterceptor">
              <property name="authenticationManager">
                   <ref bean="authenticationManager" />
              </property>
              <property name="accessDecisionManager">
                   <ref bean="accessDecisionManager" />
              </property>
              <property name="objectDefinitionSource">
                   <value>
                        CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
                        PATTERN_TYPE_APACHE_ANT
                        /secure/*=ROLE_USER
                   </value>
              </property>
         </bean>
         <!-- End Security interceptor config -->
         <!-- Start authentication config -->
         <bean id="authenticationManager"
              class="org.acegisecurity.providers.ProviderManager">
              <property name="providers">
                   <list>
                        <ref bean="daoAuthenticationProvider" />
                   </list>
              </property>
         </bean>
         <bean id="daoAuthenticationProvider"
              class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
              <property name="userDetailsService">
                   <ref bean="userDetailsService" />
              </property>
         </bean>
         <!-- Authentication using JDBC Dao -->
         <bean id="userDetailsService"
              class="com.uk.nhs.training.authentication.AuthenticationJdbcDaoImpl">
              <property name="sessionFactory">
              <ref bean="trainingSessionFactory"/>
              </property>
              <property name="dataSource">
              <ref bean="trainingDataSource"/>
              </property>
         </bean>
              <!-- End authentication config -->
         <!-- Start authorization config -->
         <bean id="accessDecisionManager"
              class="org.acegisecurity.vote.UnanimousBased">
              <property name="decisionVoters">
                   <list>
                        <ref bean="roleVoter" />
                   </list>
              </property>
         </bean>
         <bean id="roleVoter" class="org.acegisecurity.vote.RoleVoter">
              <property name="rolePrefix">
                   <value>ROLE_</value>
              </property>
         </bean>
         <!-- End authorization config -->
         <!-- ****** END ACEGI Security Configuration *******-->
    <!--######################################### Transactions ###################################-->
         <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
         <property name="sessionFactory"><ref local="trainingSessionFactory"/></property>
         </bean>
    <!--######################################### Facade ###########################################-->
    <bean id="trainersFacade" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
              <property name="transactionManager"><ref local="transactionManager"/></property>
              <property name="target"><ref local="trainersService"/></property>
              <property name="transactionAttributes">
                   <props>
                        <prop key="list*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="update*">PROPAGATION_REQUIRED</prop>
                        <prop key="delete*">PROPAGATION_REQUIRED</prop>
                        <prop key="save*">PROPAGATION_REQUIRED</prop>
                   </props>
              </property>
         </bean>
         <bean id="courseFacade" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
              <property name="transactionManager"><ref local="transactionManager"/></property>
              <property name="target"><ref local="courseService"/></property>
              <property name="transactionAttributes">
                   <props>
                        <prop key="list*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="update*">PROPAGATION_REQUIRED</prop>
                        <prop key="delete*">PROPAGATION_REQUIRED</prop>
                        <prop key="save*">PROPAGATION_REQUIRED</prop>
                   </props>
              </property>
         </bean>
    <bean id="hotelFacade" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
              <property name="transactionManager"><ref local="transactionManager"/></property>
              <property name="target"><ref local="hotelService"/></property>
              <property name="transactionAttributes">
                   <props>
                        <prop key="list*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="update*">PROPAGATION_REQUIRED</prop>
                        <prop key="delete*">PROPAGATION_REQUIRED</prop>
                        <prop key="save*">PROPAGATION_REQUIRED</prop>
                   </props>
              </property>
         </bean>
         <bean id="bookingFacade" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
              <property name="transactionManager"><ref local="transactionManager"/></property>
              <property name="target"><ref local="bookingService"/></property>
              <property name="transactionAttributes">
                   <props>
                        <prop key="list*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="update*">PROPAGATION_REQUIRED</prop>
                        <prop key="delete*">PROPAGATION_REQUIRED</prop>
                        <prop key="save*">PROPAGATION_REQUIRED</prop>
                   </props>
              </property>
         </bean>
         <bean id="weekCalendarViewFacade" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
              <property name="transactionManager"><ref local="transactionManager"/></property>
              <property name="target"><ref local="weekCalendarViewService"/></property>
              <property name="transactionAttributes">
                   <props>
                        <prop key="list*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="update*">PROPAGATION_REQUIRED</prop>
                        <prop key="delete*">PROPAGATION_REQUIRED</prop>
                        <prop key="save*">PROPAGATION_REQUIRED</prop>
                   </props>
              </property>
         </bean>
         <bean id="venueFacade" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
              <property name="transactionManager"><ref local="transactionManager"/></property>
              <property name="target"><ref local="venueService"/></property>
              <property name="transactionAttributes">
                   <props>
                        <prop key="list*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="update*">PROPAGATION_REQUIRED</prop>
                        <prop key="delete*">PROPAGATION_REQUIRED</prop>
                        <prop key="save*">PROPAGATION_REQUIRED</prop>
                   </props>
              </property>
         </bean>
         <bean id="activityFacade" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
              <property name="transactionManager"><ref local="transactionManager"/></property>
              <property name="target"><ref local="activityService"/></property>
              <property name="transactionAttributes">
                   <props>
                        <prop key="list*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="update*">PROPAGATION_REQUIRED</prop>
                        <prop key="delete*">PROPAGATION_REQUIRED</prop>
                        <prop key="save*">PROPAGATION_REQUIRED</prop>
                        <prop key="*">PROPAGATION_REQUIRED,readOnly</prop>     
                   </props>
              </property>
         </bean>
         <bean id="activityMatrixFacade" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
              <property name="transactionManager"><ref local="transactionManager"/></property>
              <property name="target"><ref local="activityMatrixService"/></property>
              <property name="transactionAttributes">
                   <props>
                        <prop key="list*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="update*">PROPAGATION_REQUIRED</prop>
                        <prop key="delete*">PROPAGATION_REQUIRED</prop>
                        <prop key="save*">PROPAGATION_REQUIRED</prop>
                        <prop key="*">PROPAGATION_REQUIRED,readOnly</prop>     
                   </props>
              </property>
         </bean>
    <bean id="clientFacade" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
              <property name="transactionManager"><ref local="transactionManager"/></property>
              <property name="target"><ref local="clientService"/></property>
              <property name="transactionAttributes">
                   <props>
                        <prop key="list*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="update*">PROPAGATION_REQUIRED</prop>
                        <prop key="delete*">PROPAGATION_REQUIRED</prop>
                        <prop key="save*">PROPAGATION_REQUIRED</prop>
                   </props>
              </property>
         </bean>
         <bean id="bookingDetailsFacade" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
              <property name="transactionManager"><ref local="transactionManager"/></property>
              <property name="target"><ref local="bookingDetailsService"/></property>
              <property name="transactionAttributes">
                   <props>
                        <prop key="list*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="update*">PROPAGATION_REQUIRED</prop>
                        <prop key="delete*">PROPAGATION_REQUIRED</prop>
                        <prop key="save*">PROPAGATION_REQUIRED</prop>
                        <prop key="*">PROPAGATION_REQUIRED,readOnly</prop>                    
                   </props>
              </property>
         </bean>
              <bean id="trainerCourseMatrixFacade" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
              <property name="transactionManager"><ref local="transactionManager"/></property>
              <property name="target"><ref local="trianerCourseMatrixService"/></property>
              <property name="transactionAttributes">
                   <props>
                   <prop key="list*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                        <prop key="update*">PROPAGATION_REQUIRED</prop>
                        <prop key="delete*">PROPAGATION_REQUIRED</prop>
                        <prop key="save*">PROPAGATION_REQUIRED</prop>
                   <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                   </props>
              </property>
         </bean>
    <!--######################################### Service ###########################################-->
    <bean id="courseService" class="com.uk.nhs.training.service.DefaultCourseService">
         <property name="courseDao"><ref local="courseDao"/></property>
         </bean>
    <bean id="trainersService" class="com.uk.nhs.training.service.DefaultTrainersService">
         <property name="trainersDao"><ref local="trainersDao"/></property>
         </bean>
    <bean id="hotelService" class="com.uk.nhs.training.service.DefaultHotelService">
         <property name="hotelDao"><ref local="hotelDao"/></property>
         </bean>
         <bean id="bookingService" class="com.uk.nhs.training.service.DefaultBookingService">
         <property name="bookingDao"><ref local="bookingDao"/></property>
         </bean>
    <bean id="weekCalendarViewService" class="com.uk.nhs.training.service.DefaultWeekCalendarViewService">
         <property name="weekCalendarViewDao"><ref local="weekCalendarViewDao"/></property>
         </bean>
    <bean id="venueService" class="com.uk.nhs.training.service.DefaultVenueService">
         <property name="venueDao"><ref local="venueDao"/></property>
         </bean>
         <bean id="activityService" class="com.uk.nhs.training.service.DefaultActivityService">
         <property name="activityDao"><ref local="activityDao"/></property>
         </bean>
         <bean id="activityMatrixService" class="com.uk.nhs.training.service.DefaultActivityMatrixService">
         <property name="activityMatrixDao"><ref local="activityMatrixDao"/></property>
         </bean>
         <bean id="clientService" class="com.uk.nhs.training.service.DefaultClientService">
         <property name="clientDao"><ref local="clientDao"/></property>
         </bean>
         <bean id="bookingDetailsService" class="com.uk.nhs.training.service.DefaultBookingDetailsService">
         <property name="bookingDetailsDao"><ref local="bookingDetailsDao"/></property>
         </bean>
         <bean id="trianerCourseMatrixService" class="com.uk.nhs.training.service.DefaultTrainerCourseMatrixService">
         <property name="trainerCourseMatrixDao"><ref local="trainerCourseMatrixDao"/></property>
         </bean>
    <!--######################################### DAO ###########################################-->
    <bean id="courseDao" class="com.uk.nhs.training.dao.hibernate.HibernateCourseDao">
              <property name="sessionFactory"><ref local="trainingSessionFactory"/></property>
    </bean>
    <bean id="trainersDao" class="com.uk.nhs.training.dao.hibernate.HibernateTrainersDao">
              <property name="sessionFactory"><ref local="trainingSessionFactory"/></property>
    </bean>
    <bean id="hotelDao" class="com.uk.nhs.training.dao.hibernate.HibernateHotelDao">
              <property name="sessionFactory"><ref local="trainingSessionFactory"/></property>
    </bean>
    <bean id="bookingDao" class="com.uk.nhs.training.dao.hibernate.HibernateBookingDao">
              <property name="sessionFactory"><ref local="trainingSessionFactory"/></property>
    </bean>
    <bean id="weekCalendarViewDao" class="com.uk.nhs.training.dao.hibernate.HibernateWeekCalendarViewDao">
              <property name="sessionFactory"><ref local="trainingSessionFactory"/></property>
    </bean>
         <bean id="venueDao" class="com.uk.nhs.training.dao.hibernate.HibernateVenueDao">
              <property name="sessionFactory"><ref local="trainingSessionFactory"/></property>
    </bean>
    <bean id="activityDao" class="com.uk.nhs.training.dao.hibernate.HibernateActivityDao">
              <property name="sessionFactory"><ref local="trainingSessionFactory"/></property>
    </bean>
    <bean id="activityMatrixDao" class="com.uk.nhs.training.dao.hibernate.HibernateActivityMatrixDao">
              <property name="sessionFactory"><ref local="trainingSessionFactory"/></property>
    </bean>
    <bean id="clientDao" class="com.uk.nhs.training.dao.hibernate.HibernateClientDao">
              <property name="sessionFactory"><ref local="trainingSessionFactory"/></property>
    </bean>
    <bean id="bookingDetailsDao" class="com.uk.nhs.training.dao.hibernate.HibernateBookingDetailsDao">
              <property name="sessionFactory"><ref local="trainingSessionFactory"/></property>
    </bean>
    <bean id="trainerCourseMatrixDao" class="com.uk.nhs.training.dao.hibernate.HibernateTrainerCourseMatrixDao">
              <property name="sessionFactory"><ref local="trainingSessionFactory"/></property>
    </bean>
    </beans>

    please to post all in single and mention clearly your needs..

Maybe you are looking for

  • Hundreds of Identical Files & Folders Show In All Spotlight Searches

    Hundreds of Identical Files & Folders Show In All Spotlight Searches Hi, I had this issue posted in September and didn't get back to it 'till today so I found it archived. I don't think I got any answers the first time around. When a post is archived

  • Wipe PlayBook, re-register with another ID, install bought app?

    Hi, I want to make calls from my z10 to my playbook. I used one blackberry ID to register them both. Unfortunately this makes it impossible to make calls from the Z10 to the PlayBook. Therefore I need to wipe on of these. My question is: If I wipe my

  • Multiple vs one schema in a Forms context

    Hello, I was asked a question relating to a Forms application architected as follows: The main application is comprised of 10 sub-systems. Each system is related to a schema with a given owner. However, there are a number of grants that are required

  • Installing cs5 on a second computer

    I own cs5 and have installed it on a MacBook Pro.  I want now also to install it on an iMac, but the disk keeps kicking out and I get no dialogue box to explain the problem. What should I do?

  • Why provide fonts that can't be used??

    Adobe provided a huge list of fonts in InDesign CS4, but several are not able to be embedded when used because of licensing restrictions. Why did Adobe, in its infinite wisdom, provide fonts that can't be reproduced on the page? Along that same thoug