Can I use DynaActionForm/DynaValidatorForm of Struts Framework as a POJO cl

Hi everybody,
I am using hibernate with struts. So please tell me how can I use DynaActionForm/DynaValidatorForm as POJO class of hibernate. How should be the OR mapping file? I mean what should be in place of ? (question marks) below?:::
<hibernate-mapping>
<class name=? table="ELEMENT">
..

You already asked that here:
http://forum.java.sun.com/thread.jspa?threadID=5200392&messageID=9800476

Similar Messages

  • Use properties file in Struts framework

    I develop a websit with struts, web ap is tomcat5.0, and I have a conf.properties file
    this file is different from ApplicationResource.properties, conf.properties in the /MySite/conf/ directory, not in src directory
    When I Use the conf.properties file in a Common Java Class that not extends any super class
    it will occur a FileNotFoundException exception
    How to make it
    public class Environment
         private static Properties prop = new Properties();
         private static FileInputStream in = null;
         public static String getVariable(String key)
              try
                   in = new FileInputStream(new File("\\conf\\config.properties"));
                   prop.load(in);
                   return prop.getProperty(key, null);
              catch (Exception e)
                   e.printStackTrace();
                   return null;
              finally
                   try
                        in.close();     
                   catch(Exception e)
                        e.printStackTrace();
         }

    Your class cannot find the file in the location tht u have given. The path (\\conf\\config.properties) is relative to the location where your source (Environment class) is kept.
    Try to hard code the path & see if your source can find the prop file ...

  • How can I use OpenGL ES and GLKit framework fr developing iOS games??

    I've seen that people use OpenGl ES to create 2D or 3D games. But I still don't know how to use OpenGL ES. And GLKit, it is a kind of software. Can anyone explain me about them please?

    Hi Eric,
    it would help me frame answers if you give the background information:
    - do you know any 3D computer graphics theory? E.g. viewing transformations.
    - do you know any openGL already?
    - do you already know objectiveC and ios programming?
    To answer your questions:
    - the OpenGL ES libraries are already included as part of the iOS SDK, so if you have that you are set.
    - I am using an Air myself, works fine for developing for iOS, including code using OpenGL ES.
    - OpenGL ES is based on OpenGL 3.0, so is very similar. Almost the same.
    - read the post I linked to:
    http://db-in.com/blog/2011/01/all-about-opengl-es-2-x-part-13/
    He explains how to hook things up quite well. However, you do already need to understand how to develop for iOS.
    As I mentioned above, it helps to know 3D Graphics principles. If you do not know that then it is difficult to animate using openGL (or any other SDK). There are third party tools available (e.g. Corona, Unity, project Anarchy) that can make life easier, but at some point you simply have to learn 3D graphics. Trying to do animation without understanding graphics is like trying to write native apps without understanding programming. You can cheat to do basic stuff, but nothing useful or deep.
    This is not easy stuff, you will have to put some work into it. Start with the above link as an intro, and also the apple docs pointed to by teacup.
    Good luck!

  • Oracle portal using JSF, JSP, Struts framework

    Hi ,
    Can anyone tell me how to build an oracle portal using JSF,Jsp and Struts Framework.
    Also please provide any manual or documentation for developing oracle portal.
    Thanks in Advance,
    Raghav

    At present, i think the best thing to do is to look at the example provided with the struts-faces integration taglib. I don't know any documentation about it.
    http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/

  • Can i have multiple ActionServlet in a struts framework?

    Can i have multiple ActionServlet in a struts framework?
    if YES then please give me the sample configuration file..
    thanks & Regards
    raghavan

    You can heve multiple actionServlet mappings in struts framework. but it not a good practice to use multiple ActionServlets. It will cause mapping problems later on.

  • Can we use ejb in struts framework?

    can we use ejb in struts framework?I need the reasons for both yes or no answers.

    This question is not appropriate for this forum, which deals with the J2EE SDK. Have you looked at the Struts documentation? Have you performed a Google search? If you had, you would have found the answer....
    -Ian Evans

  • Using Multiple Properties Files in Struts Framework

    Hi Everybody!
    I just to know how to use a multiple message-resources files in a Struts Framework.
    I've 2 properties file :
    1. ApplicationResources_A.properties
    2. ApplicationResources_B.propertiesI put the files under WEB-INF/classes dir.
    My configuration in struts-config file something like below:
    <!--  Begin Testing -->
         <message-resources key="A" parameter="ApplicationResources_A" />
         <message-resources key="B" parameter="ApplicationResources_B" />
    <!--  End Testing -->
    </struts-config>
    if my JSP code is like below , this error is thrown:
    org.apache.jasper.JasperException: Cannot find message resources under key A
      <tr>
        <td width="17%">Language A</td>
        <td width="83%"><bean:message bundle="A" key="user.lang.desc"/></td>
      </tr>
      <tr>
        <td width="17%">Language B</td>
        <td width="83%"><bean:message bundle="B"  key="user.lang.desc"/></td>
      </tr>
    but  if I change the  JSP code like below it  work fine:
      <tr>
        <td width="17%">Language A</td>
        <td width="83%"><bean:message key="user.lang.desc"/></td>
      </tr>
      <tr>
        <td width="17%">Language B</td>
        <td width="83%"><bean:message  key="user.lang.desc"/></td>
      </tr>
    In this code , I dont know  which resources file is used.
    So how do I solve this problem. Thanks you.

    I have defined the following:
    struts-config.xml
    <message-resources key="ldap" parameter="com/project/struts/ldap"/>
    Action.java
    In execute method:
    MessageResources messageResources= MessageResources.getMessageResources("com/project/struts/ldap");
    System.out.println("INITIAL_CONTEXT_FACTORY"+messageResources.getMessage("INITIAL_CONTEXT_FACTORY"));
    and it is working, however I have to change "com/project/struts/ldap" value in Action.java file whenever there is any change in name or location of ldap.properties.
    Can I access this properties in such way that I don't have to change parameter path manually in Action.java (modifying in struts-config.xml is okay)? like access through key="ldap" or something.
    Thanks and regards,

  • Dynamic Tree Creation using JSP, Struts framework

    I urgently require tips/information/code snippet for creating a Dynamic Tree structure.
    Tree is the hierarchical folder structure that we see in windows operating system.
    Dynamic tree in the sense that all nodes shall be populated from database & a radio button shall be present at each node that can be selected & submitted to form.
    Tree should be done using JSP (& if required Javascript).
    I am using Struts framework .
    [email protected]

    u need to know quite a few java technologies to make archieve your dream.
    JDBC, dynamic array and JSP.
    after reading tutorial regarding to these 3 materials, you should be able to get your job done.

  • How can i use JavaScript in Struts

    Any one can please tell me how can i use simple java script in Struts framework
    like
    <script language="javascript">
    function call()
    alert("You Are In call()")
    </script>
    </head>
    <body>
    <form ..... >
    <input type="button" value="CHECK" onclick="return call()" >
    </form >........
    ok this i can use in normal jsp
    but how can i use same in Struts framework
    Thanks in advance

    This forum is for JSF, not Struts. Your best bet to get your question answered, is to post to the struts user mailing list.

  • Seeking solution in WLP for using MVC struts framework

    Hi,
    We would like to implement Struts like similar solution with Weblogic Portal Server.
    I would like to know the possibilities of bringing the Struts framework in WLP
    and I also would like to know the contraints in implementing the similar framework
    in existing WLP.
    Thanks in advance.
    Regds,
    Ratnakar

    Hi Rathnakar,
    In this very same newsgroup this subject has risen in september last year.
    I include the posting, but admit that I have not tried it so far.
    Regards,
    Ad van Ommen
    [email protected]
    ===================================================
    "Raphaël Faudou" <[email protected]> wrote in message
    news:<[email protected]>...
    I have not seen any official document on this integration but I personnaly
    developped
    a struts-portal adapter that allows a struts-based webapp to run as a
    portlet
    in the BEA portal.
    The idea is to redirect the displaying
    nstruction -requestDispatcher.forward(request,
    response) - toward the portal webflow servlet with the appropriate
    parameters
    (portletName, pageName, event).
    Remark : If you use struts 1.1, this adapter is very simple because you only
    have
    to inherit the RequestProcessor class and redefine the "doForward" method.
    Then, you have two design solutions :
    1) you model a simplified webflow with only presentation nodes and
    transitions
    that match what your navigation as specified in your struts-config.xml.
    In this case, logic is handled by Struts framework and presentation is
    handled
    by the portal webflow servlet.
    2) you dont' want to use portal webflow and you have to bypass it by
    developing
    another adapter at the portal side.
    In this case, logic and presentation are handled by th Struts framework and
    the
    portal adapter only displays the next page in the appropriate portlet.
    Conclusion : you can deploy a struts-based application in the BEA portal
    after
    developing one or two adapters that can be generic.
    Good luck
    =====================================================
    "Ratnakar Sonti" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi,
    We would like to implement Struts like similar solution with WeblogicPortal Server.
    I would like to know the possibilities of bringing the Struts framework inWLP
    and I also would like to know the contraints in implementing the similarframework
    in existing WLP.
    Thanks in advance.
    Regds,
    Ratnakar

  • How to run a jsp file written in a struts framework using tomcat5.0 server

    hi,
    plz somebody help me.
    how do i run a jsp file which i've written in struts framework .
    and anybody plz tell me the process from installing a tomcat server to setting its path such that my jsp page runs....

    hi,
    this is zoya,I gathered from the name that appears in the post header already. :^)
    an engineering student,and i require
    help.
    plz somebody specify the whole process from
    installing tomcat and how to set its path so that i
    can run a jsp page written in struts using tomcatThere are dozens of tutorials on this. First, you need to get Tomcat running without Struts. There are HOW-TO's, sample apps, the whole shebang over at Jakarta's site. Start there. If you get stuck, there are also tutorials on Servlets (and probably Tomcat in specific) on the Net. Do a Google search.
    Next, download Struts. There is, again, extensive HOW-TO and tutorials on their site as well.
    No one will do your work for you. Make an attempt, then post when you are stuck.
    - Saish

  • How to connect with VPN of type L2TP programatically in IOS8 ? canse NEtwoatically in IOS8 ? can i use NEtwork/Extension framework for this?rk/Extension framework for this?

    I have a mobileconfig file and the VPNType is L2TP . How can i connect to this VPN programatically in IOS8 ?Apple's Network/Extension framework has methods which supports IPSEC and IKEV2 protocols(NEVPNProtocolIPSec, NEVPNProtocolIKEv2). Can i use Network/Extension framework to connect with L2TP type VPN ?

    I have a mobileconfig file and the VPNType is L2TP . How can i connect to this VPN programatically in IOS8 ?Apple's Network/Extension framework has methods which supports IPSEC and IKEV2 protocols(NEVPNProtocolIPSec, NEVPNProtocolIKEv2). Can i use Network/Extension framework to connect with L2TP type VPN ?

  • Can I use Text Layout Framework with Flex 3 SDK?

    Greetings,
    I have to develop a complex custom widget, with custom text wrapping behaviour. Text Layout framework seem to offer fine level of control, but we are trying to keep our project in Flash player 9, and therefore we are using Flex 3 sdk.
    Can I use the framework with flex sdk 3 and therefore flash player 9?
    Best Regards
    Seref

    For that you need to install flex sdk 3.5 framework and choose your defauls framework to flex 3.5 it will work and as well instal flash player 10

  • Can I use OA framework to create custom pages

    Hi,
    My client is using 11.5.8 and the Framework version is 5.6.
    And we want to add a custom page to iSupplier application.
    Can I use OA Framework extension to develop the page and add it to the application without upgrading the applications techstack.? If Yes, what version of the OA patch do I need to use for development.
    If not, is there any way to add a custom page to this application?

    OAF can be technology of choice only after 11.5.9 . Use JSP instead to develop your custom pages.
    --Mukul                                                                                                                                                                                                                                                               

  • Can I use netui in Framework jsp files?

    I'm trying to conditionally render an icon in the portlet titlebar.
    I need to query the DB to determine which icon to display,
    using a jpf action or method.
    Can I use and access porlet obejcts in the framework skeleton files (titlebar.jsp) which is part of my theme?
    zoyaf

              Do you know how JSP can use a variable defined in Javascrip ?
              Thx,
              Lin
              "Cameron Purdy" <[email protected]> wrote:
              >Write your JSP as you would any HTML file, including JavaScript. Then
              >rename the .html file to .jsp. Add your custom tags and Java code as
              >desired. Done.
              >
              >There was a complaint in the 5.0 beta about the JSP parser choking on
              >JavaScript, so I would make sure you at least try on the latest 5.1 service
              >pack, just in case.
              >
              >Cameron Purdy
              >
              >"SRINIVAS" <[email protected]> wrote in message
              >news:[email protected]..
              >> Hai,
              >> I know that we can use the jsvascript to validate the html parameters.
              >>
              >> Is the wblogic jsp support the javascript ?. I tried in weblogic
              >> 5.1.0.,the javascript is not working.
              >> anybody can help me how to validate html input and how can i use
              >> javascript in jsp.
              >>
              >> Thanks
              >> Srinivas
              >>
              >
              >
              

Maybe you are looking for

  • Duplicate custom component link when used in panelPage

    Hi Guys, I created a custom component, pretty simple component, just to create a list of links, something like : Community Discussion Forums » Developer Tools » JDeveloper It works fine in other pages, but when I use it with panelPage, panelPage auto

  • Switching subscription from Windows to Mac

    I have a CC subscription and would like to switch it from my Windows computer to my Mac.  I made a few searches but I'm having a brain-fart on good search terms and haven't found what I'm looking for. Is there a step-by-step for making this switch? 

  • How do I sync with a replacement laptop without loosing app !!!data!!!

    I had to replace my old (broken) laptop that I used to sync my iPad with a new laptop. Since then I do not dare to sync my apps in fear of loosing the app data. I know that I can get the apps back anytime, but the data associated with the apps I can

  • Step By Step Implementation of RAC in Oracle EBS R12 (version 12.0.4)

    Hi, Can anyne suggest me any Document in metalink or any other useful document on the *"Step By Step Implementation of RAC in Oracle EBS R12 (version 12.0.4)"*. My Database Version is 10g Enterprise Edition Release 10.2.0.4.0 and my Platform  is HP-U

  • Pattern swatch plug in

    Hi I was wondeirng in anyone can reccomend a good free plug in for patterns in illustrator. I always have such a hard time getting things to match up! There must be an easier way. Thanks.