Struts, ibatis, hibernate,  finally HELP!

dear all expert...
it might be a very stupid question but i don't know where to ask...
first i would explain what i want to do:
i want to make a program, like accessing data from database on the server...it would include verifying data, and all...you know secure database...that's the point...
i ask about this to my friend...first he said, use tomcat, and friends...now, he said, struts and the gank...
is there any one of you could please explain to me what the hell is those ganks?...and what is it for? i'm downloading those ganks and still guessing what kind of programs they are...i'd like to stop them downloaded if it's useless...
i learn java a very basic one...like beans and before that...forms, applet...you know...all like that...but it was nothing to do with the real database and server...i learn how to access sql but just a "line"...just like that...nothing more...
so i'd like to improve myself right now...but i don't know the steps...what software i must download...if my friends keep changing his mind like that, i would be the javatool collector, not programmer...
please help me!...

thanks duffymo...your advice really help me...yes,
i've heard that jsp thing...and all...i'll try that
one...yes, indeed. JSPs will be most useful.
one more stupid question...i'm dowloading
tomcat...and when i'm downloading it...i remember
there were some (i don't know what to call it) tomcat
support....like tomcat compatible, tomcat this,
tomcat bla bla...
do i have to download it all to make this tc work?I'm not sure I know what you mean, but these days all you have to do is download the Tomcat .exe installer and run it. If you're using a Windows machine it'll set up Tomcat as a service for you.
Just one caveat about version: the latest Tomcat 5.5.x requires JDK 1.5. I'm using Tomcat 5.0.28, because it doesn't require JDK 1.5.
Also - download the JSTL version 1.1 from Jakarta.
anyway i'm downloading jakarta tomcat version 4 and
there's also apache tomcat version 5...sorry if it's
a morron question...really, i'm blank here...
is ok if i use any one of those tc?...no problem,
right?...the point is...there's gotta be a server
here and it's tomcat you suggest...Tomcat will give you an HTTP Web server plus a servlet/JSP engine. Get started with that. I'd recommend version 5.0.28, unless you're already using JDK 1.5.
%

Similar Messages

  • What do I download for Struts/JSP/Hibernate?

    My organization has purchased a five-user license for "Workshop" and I would like to use it for Struts/Hibernate/JSP development. However, it's not clear what I need to download and install.
    I tried downloading and installing both of these files:
    workshopstudio102_win32.exe
    workshop102_win32.exe
    In both cases, after the dust settled there was no application called "Workshop" on my Windows XP system.
    There is now something called "WorkSPACE Studio 1.1." ("Space," not "shop.")
    What is "WorkSpace Studio?" I never heard of it before I ran this installer.
    What is the difference between "Workshop Studio" and "Workshop for WebLogic?"
    What do I download to get Eclipse-based Struts/JSP/Hibernate development tools?
    How do I install it?
    Thanks,
    Ethan
    Edited by ethanmichaels at 03/26/2008 4:48 PM

    Hi Ethan,
    The license you have purchased is for WorkshopStudio 10.2
    This allows you to develop Struts/Hibernate/JSP applications against both BEA and non BEA servers.
    Workshop for WebLogic allows users to develop applications against BEA WebLogic Servers and does not require a special license
    More information on Workspace Studio is available at http://edocs.bea.com/wlw/docs102/workspaceFAQ.html
    Hope this helps
    cheers
    Raj

  • Struts plus Hibernate

    I try integrate Struts and Hibernate. I create a simple blank project...
    You can download it from http://rapidshare.com/files/49730760/StrutsPlusHibernate.zip.html ( 20 KB you should add lib) . When I start Tomcat 5.5 I have an exeptions :
    SEVERE: Error loading WebappClassLoader
      delegate: false
      repositories:
        /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@7b6889
    org.apache.struts.action.ActionServlet
    java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    18.08.2007 13:55:59 org.apache.catalina.core.StandardContext loadOnStartup
    SEVERE: Servlet /StrutsAndHibernate threw load() exception
    java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)What's wrong ??
    Message was edited by:
    Del2

    This is what's wrong:
    ava.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
    I'm guessing that you either didn't put the Struts JAR in your CLASSPATH, meaning WEB-INF/lib of your web deployment, or you didn't declare the servlet in your web.xml.
    %

  • Is there any tutorial for integrating struts with hibernate using JDevelope

    Hi Everybody
    I am using Jdeveloper...and I want to know is there any tutorial available for usinfg struts and hibernate.
    If anybody knows abt them...plz tell me the links.
    Thanks and Regards
    K Sreenivas

    A tutorial about using hibernate in JDeveloper is here:
    http://www.oracle.com/technology/pub/articles/vohra_hibernate.html
    There are many papers and tutorials about Struts in JDeveloper - just go to the tutorials page and technical papers pages linked from the JDeveloper home-page.

  • EJB+struts or HIbernate ?

    Question 1:
    what do you use/choose and why:
    EJB+struts or Hibernate ?
    Question 2:
    Which is the best IDE for Hibernate?
    Thx.

    Question 1:
    what do you use/choose and why:
    EJB+struts or Hibernate ?Spring and Hibernate.
    Question 2:
    Which is the best IDE for Hibernate?IntelliJ is the best IDE for everything.
    %

  • Books on Struts and Hibernate

    Could anyone tell me the best(means best) books for Struts and Hibernate for beginner. As i've a sound knowledge of jsp and servlets, i would like to add this technology (Struts) in my project..

    Go to Amazon and type "Hibernate" into a search. You'll see all the Hibernate books available.
    "HIbernate In Action" is out of date now. There's a new one due out on 1-Nov if you can wait that long.
    %

  • How to run Struts program with the help of tomcat

    Hello Everybody
    This is Adesh.I am a newcomer of java and facing a problem with struts, so if any one know how to set the path of struts and how to run struts program, so plz inform me.
    THX in Advance.............................................

    struts-config.xml
    <struts-config>
    <action-mappings>
         <action path  = "/welcome"
                    type  = "Welcome"
                    scope="session">
                <forward name="success" path=".welcome"/>
                <forward name="failure" path=".base.error"/>
         </action>
    </action-mappings>
        <plug-in className="org.apache.struts.tiles.TilesPlugin">
            <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
            <set-property property="definitions-debug" value="1"/>
            <set-property property="definitions-parser-details" value="0"/>
            <set-property property="definitions-parser-validate" value="true"/>
        </plug-in>
    </struts-config>tiles-defs.xml
    <tiles-definitions>
         <definition name = ".base" path = "/include/template.jsp">
              <put name = "title" value = "${title}"/>
              <put name = "header" value = "/include/top.jsp"/>
              <put name = "body" value = "${body}"/>
              <put name = "footer" value = "/include/footer.jsp"/>
         </definition>
    </tiles-definitions>web.xml
    <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>
    <init-param>
                <param-name>definitions-config</param-name>
                <param-value>/WEB-INF/tiles-defs.xml</param-value>
            </init-param>
            <load-on-startup>1</load-on-startup>
        </servlet>
    <servlet>
            <servlet-name>init</servlet-name>
            <servlet-class>Init</servlet-class>
            <load-on-startup>2</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>action</servlet-name>
            <url-pattern>*.do</url-pattern>
        </servlet-mapping>
      <jsp-config>
        <taglib>
            <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/wall.tld</taglib-uri>
            <taglib-location>/WEB-INF/wall.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/c.tld</taglib-uri>
            <taglib-location>/WEB-INF/c.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/fn.tld</taglib-uri>
            <taglib-location>/WEB-INF/fn.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/fmt.tld</taglib-uri>
            <taglib-location>/WEB-INF/fmt.tld</taglib-location>
        </taglib>
    </jsp-config>
        <resource-ref>
            <description>DB Connection</description>
            <res-ref-name>jdbc/SQLServerDB</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
        </resource-ref>
    </web-app>This should help....

  • How to get hibernate annotations help in eclipse ide

    hi,
    i am trying to add hibernate annotations in my source code. eclipse provides a code-complete help provided that the correct jars are in the classpath. so this will result in typing "@hibernate." and at this point eclipse provides all the relevant options availalbe. this is not working for me in my environment. i think i have added all the relevant jars on my classpath, this includes all jars in the hibernate core package and all jars in hibernate annotations project. any ideas what i may be missing or where i may be going wrong? thanks!!

    Buy IntelliJ. It takes care of Hibernate annotations nicely.
    %

  • Mega 651 USB devices disappearing after wakeup from Hibernate state - HELP!

    Hi All,
    I still have this problem where when I wake up my Mega 651 from a hibernate state my USB devices seem to get uplugged or ejected. The usb ejected/unplugged window appears also.
    This wasn't too much of a problem, however, my PC is now on a network and when my usb devices are unplugged such as my UPS or shared printer a broadcast message is sent to all network PC's.
    I've also started using my card reader as I now have a digital camera, but annoying when the card reader is ejected all the time.
    I'm running Windows 2000 SP4 with all updaes.
    If anyone can help me solve this problem it would be a great help.  
    Also the card reader access light stays on sometimes after shutdown, why is this?
    Many thanks,
    Mo
    MSI Mega 651
    P4 2.8GHz 533 FSB
    Akasa Expansion Slot Exhaust  Blower
    Akasa Pax Mate II in case sound insulation
    1Gb Corsair Matched pair DDR RAM
    MSI FX5200-VT128 nVidia Personal Cinema
    MSI DR16-B DVD writer

    Suspend has always been problematic under Linux. It seems to be hit or miss for the most part, but here are some things you can try:
    Use an LTS kernel, tuxonice, pm-utils, etc. See Suspend and Hibernate
    Try a different graphics driver
    Tweak the driver module parameters or build your own driver.
    Unfortunately I don't have experience with the radeon driver, so I can only give you ideas.

  • Is there anyone use Hibernate?help me

    Hi everyone:
    I study hibernate recently.There is a problem puzzled me all the time.:(
    What time should I use proxy in hibernate(For example: <class name="eg.Order" proxy="eg.Order">) It can help the hibernate "lazy=true"? They is any association between the proxy and Lazy? Please help me
    Thks !
    :rolleyes:

    Hi
    You know JDO? It's very like it but Hibernate more strong than that.
    Hibernate is an O/R Mapping technology.It is used to map database table to entity object.(like EntityBean). jsp+DAO+Hibernate. Hibernate is a light wrapper of jdbc. See so www.hibernate.com

  • J2EE Struts - Database connection failed - help???:(

    Hello,
    I have built a little web application and it works without any problems. In the next step I tried to add a database connection but I have already worked on it for at least one day and I could not fix the problem with the database connection.
    I downloaded the MySQL Server 5.0 and installed it, furthermore I have downloaded the jdbc driver mysql-connector-java-3.1.11.zip and extracted it to the MySQL Server 5.0 directory. Furthermore I have added under system settings - system - etended - system variables the whole path to the driver -> C:\Programme\MySQL\MySQL Server 5.0\mysql-connector-java-3.1.11\mysql-connector-java-3.1.11-bin.jar to the CLASSPATH systemvariable.
    Then I have startet the SQL Server 5.0 with mysqld --console from the command line.
    Furthermore I have added under Project-Properties-Java Build Path - Libraries - Add External JARs in Eclipse the mysql-connector-java-3.1.11-bin.jar to my Struts WebProject.
    To test the whole thing I have added to the existing test-database from mysql a table named owner and wanted to test the database connection in the Action-class with the following statements - I quote the whole execute method of the OwnerAction class:
    public ActionForward execute(
                     ActionMapping mapping,
                     ActionForm form,
                     HttpServletRequest request,
                     HttpServletResponse response)
                     throws Exception {
                   OwnerForm ownerForm = (OwnerForm) form;
                   String greet = ownerForm.getGreet();
                   String name = ownerForm.getName();
                   request.setAttribute("name", name);
                   request.setAttribute("greet", greet);
                   String address = ownerForm.getAddress();
                   String email = ownerForm.getEmail();
                   int tel = ownerForm.getTel();
                   Connection conn = null;
                   Statement stmt = null;
                   ResultSet rs = null;
                   DriverManager.registerDriver(new org.gjt.mm.mysql.Driver());
                   conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","sa");
                   try {
                         //conn = dataSource.getConnection();
                         stmt = conn.createStatement();
                         int id = 0;
                         rs = stmt.executeQuery("select max(id) as counter from owner");
                         while(rs.next()){
                            id = rs.getInt("counter");
                         id += 1;
                         stmt.executeUpdate("insert into owner values("+id+", '"+greet+"', '"+name+"', '"+email+"', '"+address+"', "+tel+")");
                         rs.close();
                         stmt.close();
                         conn.close();
                      catch(SQLException e){
                         throw new SQLException("database error");
                      // Forward control to the specified success target
                      return (mapping.findForward("success"));
          }But when I execute the WebApplication and the Action will be called the following error message appears in the browser:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    root cause
    java.lang.NoClassDefFoundError: org/gjt/mm/mysql/Driver
         com.asprise.struts.action.OwnerAction.execute(OwnerAction.java:72)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.
    It must depend with anything that the driver was not found but I have defined it in the CLASSPATH variable and added it to the Web-Project in eclispe.
    Has anybody an idea what I have else made wrong or have forgotten??:(:(:(
    thanks in advance
    lg
    pat

    One thing I have forgotten - I have also copied the mysql-connector-java-3.1.11-bin.jar in the WebRoot\WEB-INF\lib directory of my EasyStruts WebApplication.
    Can anything else be wrong??:(:((
    regards

  • What is a listener for/ especially in struts + tomcat + hibernate

    some example code sugguested that we should create a listener for the hibernate connection. i stil dont get it. anyone can explain this?

    The listener is the product that allows APEX to communicate with the App Server.. The supported App servers are WebLogic & GlassFish (for version 2.x of the listner, version 1.x allows the usage of Tomcat and OC4J)..
    In the prior database/app server setup you would use the HTTP server (Apache) with a mod called Mod_plsql to communicate between the app server and the database.
    With the APEX Listener 2.x you can use it to host RESTful web-services and allow your APEX apps to import Excel workbooks directly and also print PDF files similar to FOP.
    You really Can't share session state with other apps.. Why exactly would you want to do this??
    Re: Run java applets in APEX, No you can run them in the app server.. Apex can work with Oracle EBS, there is a posted whitepaper on this from Oracle:
    http://www.oracle.com/technetwork/developer-tools/apex/learnmore/apex-ebs-extension-white-paper-345780.pdf
    Thank you,
    Tony Miller
    SmartDog Services
    Austin, TX

  • Struts bean:message encoding help

    Hello, i am using Struts framework and have problems with resource files.
    I have two files for english and lithuanian.
    jsp file:
    <%@ page contentType="text/html; charset=Cp1257" pageEncoding="Cp1257"%>
    Developed by: <bean:message key="developer.name"/>
    So its echo bad string.
    Any ideas?

    I have had same problem but I have resolve it by both changing the encoding property of IDE(mine is NetBeans 3.6) to UTF-8 and
    put the line
    <%@page pageEncoding="UTF-8"  contentType="text/html; charset=UTF-8" %>on the top of jsp pages.
    But now I having some problems with formbean I hope I resolve it.
    You can follow it from here
    http://forum.java.sun.com/thread.jspa?threadID=698855

  • Final help with this stupid program

    so here is the code of the final greekNumbers program
    import java.math.*;
    import java.util.*;
    import javax.swing.JOptionPane;
    public class GreekNumbers {
         private String userInput;
         private int supliedNumber;
         private int numberFactor;
         private int generatedNumber;
         public ArrayList factors;
         private int counter = 1;
         private String message = "Your Number was ";
         private int addedFactors;
         public void Factoring () {
         factors = new ArrayList(1);
              userInput =
                   JOptionPane.showInputDialog (null, "Please enter your number.");
                   supliedNumber = Integer.parseInt(userInput);
                   message += (supliedNumber + ". And " + supliedNumber + " is ");
                        do {
                                  numberFactor = supliedNumber / counter;
                                  if (numberFactor % 1 == 0){
                                       factors.add (counter);
                                       factors.add (numberFactor);
                                       counter++;
                                  else {counter++;}
                        }while (counter <= supliedNumber);
                        counter = 0;
                        do {
                                int a = (Integer) factors.get (counter); 
                                  counter++;
                                  int b = (Integer) factors.get (counter);
                                  addedFactors = a + b;
                                  counter++;
                        }while (counter <= factors.size ());
         public void Perfect () { // sees if the number abblied is perfect
              if (addedFactors == supliedNumber){
                   message += "Perfect ";
         public void Abundant () { // sees if the number supplied is abundant
              if (addedFactors >= (supliedNumber * 2)){
                             message += "Abundant ";
         public void Deficient () {  // sees if the number supplied is deficient
              if (addedFactors <= (supliedNumber * 2)){
                             message += " Deficient";
         public String sendGreekNumber (){
             return message;// sends main method the greek number analysis.
    }and all it does is run directly through the program and pops up with a box that contains my message string instance?
    what am i doing wrong here?

    DJ-Xen wrote:
    here is the main thread
    import javax.swing.JOptionPane;
         public class GreekNumbersDriver{
              public static void main (String [] args) {
                   GreekNumbers number  = new GreekNumbers ();
                   (new GreekNumbers()).sendGreekNumber ();
                        String finalNumber = number.sendGreekNumber ();
                        JOptionPane.showMessageDialog(null, finalNumber);
              }is the problem in there somewhere?Yes, you never call the Factoring method of your GreekNumber object.
    Plus you are creating two instances of GreekNumber, why I don't know. There is no need to do this.

  • MS6967 - Final help!

    Hi,
    After deciding to reinstall my computer and trying to install the bluetooth drivers, I still have no succes! Because the sever for the security key had some problems, MSI-custommer service suggested that I should use driver version: 1.3.1, because it doesn't require the key.
    I did as suggested:
    - Disconnect from internet (removed my cable)
    - Enter the bluetooth device
    - Start instalation
    - Let windows install the device automatical
    - Reboot
    After the reboot, the software was installed properly, atleast that's what I hoped. When I insert my bluetooth stick, I get an 'windows error beep'-sound every 10seconds, and the bluetooth icon in the system tray then swaps from blue-white to blue-red. Because of this, it's impossible to connect to any device (although I only want it to connect to my Motorola V525).
    What now...?
    SaphuA
    Edit: It's this stick I have:

    Hi,
    I don't see why restarting could've caused problems. I do have to turn of my computer once, right? So it should make no difference   I'll try reinstalling, but I'm afraid it's not going to help.
    BTW, I do need to have the stick insered when installing, right? I also need to press next when I get promted by XP to install new software (when installing the drivers), right?
    Is there a way I contact you (MSN maybe?) so you can help me?
    Thanks,
    SaphuA

Maybe you are looking for