SPRING vs STRUTS

Hii Javaties
Can anyone tell us which framework is better STRUTS or SPRING. ?
and what are the advantages and disadvanatages of each framework.

I am using Weblogic 9.
Can i deploy a application made with Springs
framework on Weblogic ?Not only you can, but there is actually tight integration between the two.
At one point, BEA rewrote their sample application to use Spring. See Spring on WebLogic Server kit.
Going further, BEA implemented the EJB 3.0 spec using Spring in a project called Pitchfork.
Finally, WebLogic Realtime Server (WRLT) uses a determinisitic Garbage Collector (JRockit), and advocates the use of the Spring framework.

Similar Messages

  • Spring MVC & Struts 2 Pros/Cons

    What are the pros and cons, in your opinion, when choosing Spring over Struts 2 or Struts 2 over Spring? I am trying to determine which framework to select and the last time I used Spring was in the 1.x series and I loved it. So I am biased and I want to jump the gun and use Spring, but I want to make sure I can say why I want to use it because it seems like Struts 2 has a lot to offer as well. So I want to hear the best and the worst from both frameworks. So what do you guys think?

    BlueSmurf wrote:
    An application's business requirements are the basis for (1) a domain model, (2) system requirements document, (3) system architecture document, and (4) an object-oriented (technical) design.
    Big Design Up Front isn't always appropriate.What I mentioned (above) could hardly be considered "Big Design Up Front". Rather, these are the "bare bones" for what is required to design enterprise software. Again, context plays a big role. Indeed. I was talking in the context of the process you outlined, not the code you posted
    The business requirements for an enterprise system with thousands of users might be different than the business requirements for Jim Bob's Cardboard LLC marketing web site with no more than 30 users per month.Very true. How would that affect your decision to use Spring or Struts?
    I can't think of a single business requirement that would necessitate Struts over something else.Business requirements don't mandate or dictate technical design decisions. They should, however, be used when designing a system architecture. And, yes, there may be other requirements that surface later on. This is ok and to be expected. Hence, the importance of sufficient and adequate business requirements gathering is emphasized and critical to creating a sound architectural design than meets today's requirements and can easily adapt to those that come tomorrow. Again, where does "Spring vs Struts" come into this? That decision is not an architectural one, if you have the need for Struts, Spring can be used instead. The opposite is not necessarily true, however. This all sounds very vague and "best practices say"-ish and evangelical. How do you know when your business requirements are adequate or sufficient? If you've ever actually used Spring, you should know that it lends itself extremely well to your last phrase about easily adapting to tomorrow. Dammit now I'm starting to sound evangelical!

  • MVC Framework - Spring or Struts

    I was just curious what your opinions where as to what MVC framework to go with? Or does it depend on what you are trying to accomplish?

    SACHINLINUX wrote:
    Can you please elaborate where all these framework stand. No, you'll have to figure something out yourself.
    Means if a new bie want to switch Switch? If you're a newbie you're still learning how to stop making a mess. Where does switching come in?
    from simple MVC(JSP SERVLET AND BEANS ) to higher technology,What would you consider "higher technology"?
    which one is the best for him.Best for you to learn how to ask a proper question.
    Reply will be appreciated Thanks!Smarter questions would be appreciated.
    %

  • How to learn Spring?

    Hi everyone,
    I have experience on Java , JSP and Servlet. Want to know how to upgrade to next level.
    1.Do I need to learn Spring and Struts togerther? Any good book or resource in the net?
    2. EJB 3 or Spring which one is more market value?
    Thanks

    > 1.Do I need to learn Spring and Struts togerther?
    No.
    Any good book or resource in the net?
    Pro Spring
    Spring in Action
    http://www.springframework.org/documentation
    >2. EJB 3 or Spring which one is more market value?
    A search on Dice.com showed roughly the same number of available positions for both. If that's a valid measure of "market value", they seem about even.
    ~

  • Spring java.lang.IllegalAccessError: tried to access method org.springframe

    Hi
    I am looking to use OEPE to allow me to adapt a RAD approach to the web part of our applications while keeping our CI builds consistant.
    We use WebLogic 10.3 with struts 1.2.9, Spring 2.5, Hibernate 3.X and maven 2.
    I am using Eclipse 3.5 SR1 with OEPE version Oracle Enterprise Pack for Eclipse 11.1.1.3.0
    I created a test Dynamic Web Application using maven 2 and this works OK with a test WebLogic Server 10.3. I then deleted this from the WebLogic Server so I could try using it with OEPE.
    I deploy this Dynamic Web Application using OEPE (via autogenerated_ear_) to WebLogic Server
    My initial problems were classpath errors where it seems that my Maven dependent jars were NOT picked up by my web application. To overcome this I copied the maven dependencies to <my web app>\src\main\webapp\WEB-INF\lib
    I could then use my initial struts action but failed with:
    Root cause of ServletException.
    java.lang.IllegalAccessError: tried to access method org.springframework.web.struts.ActionSupport.getWebApplicationContext()Lorg/springframework/web/context/WebApplicationContext; from class com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_7
         at com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_7.execute(SaveNewCakeAction.java:31)
         at com.myco.springtxn.web.struts.SaveNewCakeAction.execute(SaveNewCakeAction.java)
         CakeService cakeService = (CakeService) getWebApplicationContext().getBean("cakeService");
    Some more data:
    TRACE:
    Saving Cake with name oepe cake and description copied in jars
    <24-Oct-2009 21:13:16 o'clock BST> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@d9f6cb - appName: '_auto_generated_ear_', name: 'sdw', context-path: '/sdw', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@148bedb[
    POST /sdw/saveNewCake.do HTTP/1.1
    Accept: */*
    Referer: http://localhost:7001/sdw/enterCake.do
    Accept-Language: en-gb
    Content-Type: application/x-www-form-urlencoded
    UA-CPU: x86
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; NGD_build; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Content-Length: 41
    Connection: Keep-Alive
    Cache-Control: no-cache
    Cookie: refresh=; JSESSIONID=dG4BKjLBdL3LWMPkJG3r1Tw64hjpBMWwvplvypkGZlTYhb6cJD9M!-36198065; ADMINCONSOLESESSION=7gyTKjLQgQfNlPlQ1cBydQXgHcgljjQn8tnHL4Qn5GWr8pLWZG0W!1523650153
    ]] Root cause of ServletException.
    java.lang.IllegalAccessError: tried to access method org.springframework.web.struts.ActionSupport.getWebApplicationContext()Lorg/springframework/web/context/WebApplicationContext; from class com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_7
         at com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_7.execute(SaveNewCakeAction.java:31)
         at com.myco.springtxn.web.struts.SaveNewCakeAction.execute(SaveNewCakeAction.java)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.utils.FastSwapFilter.doFilter(FastSwapFilter.java:66)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    I AM USING;
    1. Operating System - Windows XP Professional
    2. Eclipse Version - 3.5.1
    3. WLS Version - 10.3
    4. Brief app shape description. Dynamic Web App
    5. The .classpath a
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
         <classpathentry kind="src" output="target/classes" path="src/main/java"/>
         <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
         <classpathentry kind="con" path="oracle.eclipse.tools.weblogic.lib.system">
              <attributes>
                   <attribute name="owner.project.facets" value="jst.web"/>
              </attributes>
         </classpathentry>
         <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
         <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
         <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Spring2.5">
              <attributes>
                   <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
                   <attribute name="owner.project.facets" value="oracle.struts;spring.core"/>
              </attributes>
         </classpathentry>
         <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Struts">
              <attributes>
                   <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
                   <attribute name="owner.project.facets" value="oracle.struts"/>
              </attributes>
         </classpathentry>
         <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
         <classpathentry kind="output" path="target/classes"/>
    </classpath>
    web app cache
    <webapp-structure>
    <registeredFiles>
    <entry>
    <string>currentBuild</string>
    <path-set>
    <pathsSet class="linked-hash-set">
    <string>index.jsp</string>
    <string>META-INF/MANIFEST.MF</string>
    <string>pages/cakeSavedInfo.jsp</string>
    <string>pages/enterCake.jsp</string>
    <string>pages/welcome.jsp</string>
    <string>WEB-INF/applicationContext.xml</string>
    <string>WEB-INF/config/struts-config.xml</string>
    <string>WEB-INF/tld/c.tld</string>
    <string>WEB-INF/tld/fmt.tld</string>
    <string>WEB-INF/tld/struts-bean.tld</string>
    <string>WEB-INF/tld/struts-html-el.tld</string>
    <string>WEB-INF/tld/struts-html.tld</string>
    <string>WEB-INF/tld/struts-logic.tld</string>
    <string>WEB-INF/tld/struts-tiles.tld</string>
    <string>WEB-INF/web.xml</string>
    <string>WEB-INF/weblogic.xml</string>
    <string>WEB-INF/classes/com/myco/springtxn/web/controller/CakeController.class</string>
    <string>WEB-INF/classes/com/myco/springtxn/web/controller/spring/AnnotatedSpringCakeController.class</string>
    <string>WEB-INF/classes/com/myco/springtxn/web/struts/CakeForm.class</string>
    <string>WEB-INF/classes/com/myco/springtxn/web/struts/EnterNewCakeAction.class</string>
    <string>WEB-INF/classes/com/myco/springtxn/web/struts/SaveNewCakeAction.class</string>
    <string>WEB-INF/classes/com/myco/springtxn/web/util/Logging.class</string>
    <string>WEB-INF/lib/SpringTxnServices-0.0.1-SNAPSHOT.jar</string>
    <string>WEB-INF/lib/spring-2.5.6.jar</string>
    <string>WEB-INF/lib/commons-logging-1.0.4.jar</string>
    <string>WEB-INF/lib/commons-lang-2.4.jar</string>
    <string>WEB-INF/lib/hibernate-core-3.3.1.GA.jar</string>
    <string>WEB-INF/lib/antlr-2.7.2.jar</string>
    <string>WEB-INF/lib/commons-collections-3.1.jar</string>
    <string>WEB-INF/lib/dom4j-1.6.1.jar</string>
    <string>WEB-INF/lib/xml-apis-1.0.b2.jar</string>
    <string>WEB-INF/lib/jta-1.1.jar</string>
    <string>WEB-INF/lib/slf4j-api-1.5.2.jar</string>
    <string>WEB-INF/lib/hibernate-annotations-3.4.0.GA.jar</string>
    <string>WEB-INF/lib/ejb3-persistence-1.0.2.GA.jar</string>
    <string>WEB-INF/lib/hibernate-commons-annotations-3.1.0.GA.jar</string>
    <string>WEB-INF/lib/hibernate-entitymanager-3.4.0.GA.jar</string>
    <string>WEB-INF/lib/javassist-3.4.GA.jar</string>
    <string>WEB-INF/lib/hibernate-validator-3.1.0.GA.jar</string>
    <string>WEB-INF/lib/slf4j-log4j12-1.5.2.jar</string>
    <string>WEB-INF/lib/log4j-1.2.14.jar</string>
    <string>WEB-INF/lib/SpringLegacyModule-0.0.1-SNAPSHOT.jar</string>
    <string>WEB-INF/lib/struts-1.2.9.jar</string>
    <string>WEB-INF/lib/commons-beanutils-1.7.0.jar</string>
    <string>WEB-INF/lib/commons-digester-1.6.jar</string>
    <string>WEB-INF/lib/commons-fileupload-1.0.jar</string>
    <string>WEB-INF/lib/commons-validator-1.1.4.jar</string>
    <string>WEB-INF/lib/oro-2.0.7.jar</string>
    <string>WEB-INF/lib/xalan-2.5.1.jar</string>
    <string>WEB-INF/lib/struts-el-1.2.9.jar</string>
    <string>WEB-INF/lib/standard-1.0.6.jar</string>
    <string>WEB-INF/lib/jstl-1.1.2.jar</string>
    <string>WEB-INF/lib/spring-webmvc-struts-2.5.6.jar</string>
    <string>WEB-INF/lib/spring-beans-2.5.6.jar</string>
    <string>WEB-INF/lib/spring-core-2.5.6.jar</string>
    <string>WEB-INF/lib/spring-context-2.5.6.jar</string>
    <string>WEB-INF/lib/aopalliance-1.0.jar</string>
    <string>WEB-INF/lib/spring-web-2.5.6.jar</string>
    <string>WEB-INF/lib/spring-webmvc-2.5.6.jar</string>
    <string>WEB-INF/lib/spring-context-support-2.5.6.jar</string>
    </pathsSet>
    </path-set>
    </entry>
    </registeredFiles>
    </webapp-structure>

    Got back to testing this (been busy in my day job). I realised that I had not tested hot deployment. So I switched on FastSwop by adding the following the the weblogic.xml (of the web applicatiion):
    Gives
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; NGD_build; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Content-Length: 22
    Connection: Keep-Alive
    Cache-Control: no-cache
    Cookie: JSESSIONID=T6PTK7yS3jdJzzLsP5nNB6TNCyLFMcYxZf8j1rRRGBXZ8hSbBQT2!580994594
    ]] Root cause of ServletException.
    java.lang.IllegalAccessError: tried to access method org.springframework.web.struts.ActionSupport.getWebApplicationContext()Lorg/springframework/web/context/WebApplicationContext; from class com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_8
         at com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_8.execute(SaveNewCakeAction.java:31)
         at com.myco.springtxn.web.struts.SaveNewCakeAction.execute(SaveNewCakeAction.java)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         Truncated. see log file for complete stacktrace
    >
    I find this sad since using tomcat I can hot deploy without any problem

  • How to Debug a Java Project in Eclipse using Tomcat6.0

    Hi
    Can anybody help me with the following questions.
    1.How to create a java project in eclipse(I am using jsp,servlets,jsf,spring,jasper,struts).
    2.How to debug my application in Eclipse Europa by putting break points.
    3.how should i add Tomcat6.0 to my project in order to debug my application so that i can put break points while running the applications and observe the values.
    Thanks
    Bala

    You may find this tutorial useful regarding to JSF, Eclipse and Tomcat: http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html
    To put breakpoints, just doubleclick on the left gray rule of the code, you'll get blue bullets at the left rule, indicating a break point. Run Tomcat in debug modus (rightclick Tomcat � debug). Use the Eclipse debug perspective to step in the code (window � open perspective � debug).

  • How to send recomposed data in post method.

    Currently, i try to build up MVC user authentication. I used login.html as View, servletA as controller to invoked Model and servletB as Model. The servletB will return queried result to servletA then servletA will decide redirected to specific url.
    I has successful use the RequestDispatcher.forward(request, response) to post data from servletA to servletB. whereas i faced a trouble to post data back from servletB to servletA, which i unable put the queried result into request obj before post it back to servletA.
    Any genius recommendation about this? or Any method composed data to send via post method?

    Here's a quick rundown that might help:
    Use request.setAttribute() to put an item in request scope in a servlet before dispatching to another servlet or JSP.
    Use <useBean> tag in a JSP to read the data on the JSP that the servlet put in request scope.
    Alternatively, you can use request.getAttribute(), but the useBean is preferred.
    Use request.getParameter() in a servlet to read data that the <form> tag on the JSP page put in request scope.
    Use request.setAttribute() and request.getAttribute() to get send/get data between servlets (it could be request.getParameter(), but I dont think so).
    There is a RequestDispatcher.forward() and a RequestDispatcher.include(). I'm not sure what the differences are (you'll have to research it.
    In MVC, I have a single servlet for the controller (receive all url's, and dispatch to the appropriate JSP). I dont hava a separate servlet for the model. Instead, I instansiate a business object on the servlet, pass data to it, and let it do the calcuations. Then I have it return the data to the servlet which puts it in request scope for the JSP page when I dispatch to it. My MVC usuallyconsists of:
    JSP -presentation layer
    servlet - control layer
    business logic layer
    database layer (DAO).
    Each layer does not contain the functionality of one of the other layers (clean separation of concerns).
    Last note: Whereas you can use a servlet for the controller, a framework such as Spring or Struts is often used instead.

  • Shine J2EE Appplication Framework - A New MVC -JWMS-Ajax Framework

    Hi Dears
    Shine is a Java-J2EE Application Framework/JWMS(Java Web Model Service)Framework/MVC Framework/Service Oriented Framework. Shine Includes Ajax Libs/Server API/J2EE Architecture. Shine Supported JSF/Spring/AspectJ/Struts/Hibernate/...
    You can use Shine Framework for Implement ERP Web Based Application, Web Based Operating System, WFM Web Based Application, CRM Web Based Application, HRM Web Based Application, BPR Web Based Application, Or ... Web Based Application, Shine Registered in Source Forge.
    This Framework is a Java Service Oriented Framework for Web Based Project. This Framework include:
    * MVC (Model View Controller)
    * Ajax
    * Service Oriented Scope
    * JWMS (Java Web Model Service)
    Shine Framework is a Java Web Model Service Framework.
    Shine Framework is very easy, stable. You can use other Framework by Shine Framework:
    *Hibernate
    *Struts
    *Spring
    *And Other Framework
    JWMS And Shine J2EE Framework ?
    JWMS is a J2EE Architecture for implement Service Oriented Web-Based Appliction you can get more information about this and Shine J2EE Application Framework by -> J2EE And Service Oriented Programming :
    http://j2sos.googlegroups.com/web/J2EE_And_Service_Oriented_Programming+(English).doc?gda=VCp-YWkAAABaK1bFJn7XMhSpdkjvrT6Pd5MA3H6uh5taxEUxR6gwSUWwa05VcrqgHRSC0l_xcf_5FoxLEBXNbyq4-bBifvraWOZGQE6LgzeTU5Q6eFny4M-fIZvKNC5H8bRWhAn1psCECKgQbmraGdxlZulaYnsh
    Or
    http://j2sos.googlegroups.com
    Report: http://sourceforge.net/tracker/?group_id=244136
    Forum: http://sourceforge.net/forum/?group_id=244136
    News: http://sourceforge.net/news/?group_id=244136
    Wiki: http://shine-app.wiki.sourceforge.net/space/pagelist
    Rank: http://sourceforge.net/project/stats/rank_history.php?group_id=244136&ugn=shine-app
    Shine J2EE Framework Rank in Sourceforge is 14!
    Shine J2EE Framework: http://sourceforge.net/projects/shine-app/
    Site: www.J2SOS.org
    Special Thanks Oracle! For this Part! Your Site is very Active about J2EE - Java!
    This paper is no image paper !!!!!!!!!!!!!!!!!!!
    J2EE and Service Oriented Programming
    Authored by: AmirSam Bahador
    Level:
    Advanced
    Contents:
    Introduction
    - The purpose of compilation this essay
    Chapter 1: Basic concepts of J2EE
    - Servlet and JSP
    - MVC
    - MVC or JWMS? That is the problem? Perhaps both!
    Chapter 2: Basic concepts of Shine Framework
    - What is "Shine Framework�?
    - The components of Shine Framework
    - Implimentation of an application by Shine Framework
    Chapter 3: The objects of Shine Framework
    - The types of objects in Shine Framework
    Chapter 4: Engineering & Communication items
    - The communication of Shine Framework with the other
    existing Frameworks
    - The major purpose of Shine Framework
    Introduction
    The purpose of compilation of the this paper
    A few years ago, when I was the software architect of a big project with J2EE, I advised some of the modern tools of that time to the project manager. He acknowledged it. Therefore, we began deploying our Enterprise on Java platform. However, we encounterd with many problems, as we got ahead the project. Our tools were included Struts Framework, Spring Framework & Hibernate.
    I convinced that MVC architecture is the best option to develop macro projects! However, I believe it now, as well. Couldn't it be more completed? In developed Enterprise projects, an advanced architecture is required to divide the project, technically. The project was successfully finished after one year, but my mind was busy with it for a long time!
    Then, I began implementing an Application Framework and registered it in Sourceforge.net as an Open Source Framework. I developed some Enterprise projects & some other J2EE frameworks, as well. I achieved a good result! The velocity of implemention & developing projects increased up to 50%. Subsequently, by cooperation of my elected students who had worked with Application Framework, I established an organization, named J2SOS, to protect & develop this Application Framework.
    Fortunately, my students were so skilled that each took a chief task in big J2EE projects.
    Their experiences had a practical affect on development of Application Framework as well as the organization.
    Therefore, it is required to write down my & my yesterday students (my today co-workers) experiences. This was the outset to write the present paper!
    Chapter 1
    The basic concepts of J2EE
    Purposes
    In this chapter, we do our best to introduce J2EE basic concepts.
    Servlet & JSP
    If you ahve ever worked with JSP & Servlet, you know that Servlet is so proper for processing functions but there are particular problems with it in displaying functions.
    JSP is applied reverse to Servlet. Thus, what is the solution? To apply both JSP and Servlet together!
    What is MVC?
    MVC is an easy way to use JSP & Servlet together. In MVC architecture, the request will be processed by a Class (Servlet) and the appropriate response will be showen by JSP.
    n the above Servlet Class, the validation operation, etc will be done.
    Nowadays, there are numerous Frameworks which will assist you to use MVC Framework architecture. Struts Framework is the most well-known one.
    MVC or JWMS ? That is the problem! Perhaps both!
    MVC is a powerful architecture, but it is required an advanced architecture to implement developed projects.
    Today, web applications are well developed which complicatethe work for programmers & developers.
    To clarify it, see Google site! Google Web Application enjoys numerous services, each have a special service for the users.
    For Instance, Gmail service, E-Mail or by SearchEngine, the users can search for websites, pictures, etc.
    These services have certaily close communication with each other.
    If the services do not use a particular architecture, the Google will encounter with various problems.
    In Service Oriented architecture, each part of the program is a service programme. For example, E-Mail service, SearchEngine service, etc.
    for get full this paper plz goto : J2EE And Service Oriented Programming
    in :
    http://groups.google.com/group/j2sos
    Or
    http://j2sos.googlegroups.com/web/J2EE_And_Service_Oriented_Programming+(English).doc?gda=-C13JmkAAABaK1bFJn7XMhSpdkjvrT6PLb1WFhhPKkBftsH3LvtvGEWwa05VcrqgHRSC0l_xcf_5FoxLEBXNbyq4-bBifvraWOZGQE6LgzeTU5Q6eFny4M-fIZvKNC5H8bRWhAn1psCECKgQbmraGdxlZulaYnsh

    iabstudio have been engaged in a persistent Usenet and webboard spamming and astroturfing operation since the beginning of this month. Google has the scoop at http://groups.google.com/groups?q=www.iabstudio.com&hl=en&lr=&c2coff=1&scoring=d&start=0&sa=N&filter=0 note in particular the same IP address is used to post both their spam from iabstudio themselves and from people who claim to be satisfied users. If you do not like spamming and dishonest, don't use the product.

  • Doubt about page navigation

    hai sir this is surendra i am doing an academic project that is a web-site like orkut if a user want to see all his friends/groups then a single page is not enough to show all .So i need to use page navigation concept here.Please any one of you tell me "code" and how to use page navigation here.
    Waiting for your reply.

    you don't give enough information there.
    How are you communicating with your database for example? JDBC? Hibernate?
    Are you using any framework like Spring or Struts?

  • Classloader in weblogic12c

    I develop a spring+hibernate+struts web application and need to deploy it from a folder to weblogic12c.
    However, after deployment, in Classloader Analysis Tool, 2 jars: WEB-INF/lib/hibernate-core-3.3.2.GA.jar, WEB-INF/lib/freemarker-2.3.15.jar show: The filtering classloader acts as a barrier between the application classloaders and the system classloaders. By configuring the filtering classloader correctly, the application can choose to load certain classes locally rather than from the system classpath.
    Below is my weblogic-application.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-application xmlns="http://xmlns.oracle.com/weblogic/weblogic-application"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.4/weblogic-application.xsd">
         <application-param>
              <param-name>webapp.encoding.default</param-name>
              <param-value>UTF-8</param-value>
         </application-param>
         <prefer-application-packages>
              <package-name>javax.jws.*</package-name>
         </prefer-application-packages>
    </weblogic-application>
    What should I do next?
    Thanks

    Have a look at
    http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html
    Instantiating objects of a same class in different subunits will not cause errors, but it is true that, according to the classloading policy (configurable in application server), the behaviors of creational mecanisms such as singleton for example, can vary.
    Bruno
    http://www.practicalsoftwarearchitect.com

  • Include file was not found

    I create a web application using spring+hibernate+struts with cxf in MyEclipse. It works fine in Tomcat.
    Then, I export it as a war file and deploy it to weblogic 12c. However, I get error:
    Compilation of JSP File '/BZWeb/index1.jsp' failed:
    index1.jsp:2:18: The include file was not found.
    <%@ include file="/common/taglibs.jsp"%>
    ^-------------------^
    index1.jsp:2:18: The include file was not found.
    <%@ include file="/common/taglibs.jsp"%>
    ^-------------------^
    index1.jsp:7:22: The include file was not found.
    <%@ include file="/common/meta.jsp"%>
    ^----------------^
    index1.jsp:7:22: The include file was not found.
    <%@ include file="/common/meta.jsp"%>
    ^----------------^
    My weblogic.xml is as follow:
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app
    xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd">
    <wls:weblogic-version>12.1.1.0</wls:weblogic-version>
    <wls:context-root>BZWeb</wls:context-root>
    <wls:charset-params>
    <wls:input-charset>
    <wls:resource-path>/*</wls:resource-path>
    <wls:java-charset-name>UTF-8</wls:java-charset-name>
    </wls:input-charset>
    </wls:charset-params>
    <wls:container-descriptor>
    <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
    <wls:index-directory-enabled>false</wls:index-directory-enabled>
    </wls:container-descriptor>
    <wls:jsp-descriptor>
    <wls:keepgenerated>true</wls:keepgenerated>
    <wls:precompile>true</wls:precompile>
    <wls:print-nulls>false</wls:print-nulls>
    </wls:jsp-descriptor>
    </wls:weblogic-web-app>
    Is weblogic.xml wrong?

    Also, do you have SSI turned on in IIS? I believe it's a module that you will need to turn on.
    http://tech.mikeal.com/blog1.php/server-side-includes-for-html-in-iis7
    Have you opened up the page in a web browser? All I see is the code. It is not rendering in the browser.
    Jim

  • 9iLite and the compact framework for PPC

    Does oracle plan to support development for Pocket PC under the compact framework ie. using MS Visual Studio.net. If so, how soon can we except an oracle data adapter for the pocket pc.

    If your application is complex you'll undoubtedly have
    to extend whichever framework you choose. Struts is
    very flexible and allows you to incorporate custom
    functionality easily. As it was pointed out, Struts works only with the web tier. If you're writing complex apps, you'll need a more 'complete' framework to manage your middle-tier as well.
    If you're not using EJB, lightweight containers like Spring or Pico can help.
    BTW, you can use Spring with Struts if you wish. Personally, I'm less than impressed by Struts, but that's just my opinion.

  • Frameworks

    I am new to JEE and a little lost with frameworks - btw, I know some people swear by what they use, which has made my search a little more confusing.
    I am thinking of Spring+Hibernate+Struts 2 or EJB3+JPA and perhaps Struts 2 as well.
    I understand that Struts 2 is a good framework when developing MVC as it gets rid of (or minimizes) code for controllers etc.... Which is what attracted me to the framework, and many other benefits (ie: Ajax etc...). So I expect that Struts 2 can go along with JEE and is a good choice? Comments?
    Spring and Hibernate (I probably wouldn't bother with one and not the other) are interesting, but it sounds like JEE 5 adopted a lot of Hibernate already.
    My key questions for Spring+Hibernate vs. EJB3+JPA is:
    1). Can Spring+Hibernate be programmed in annotations to the extend of EJB3+JPA (I am not a fan of XML, unless someone gives me great reasons).
    2). Which "set" is better for performance if I intend to scale and expect 10000s of users at one point (might as well dream big).
    3). Why did you choose one over another?
    Btw, I realize that some of the frameworks don't overlap and that some are a bad comparison - I apologize, as I typed EJB3+JPA meaning JEE in general etc.... Also, does Spring+Hibernate move me to Tomcat instead of Glassfish (is that a good/bad thing)?
    I am really eager to buy books and continue learning more JEE technology, so I really appreciate people reading and helping! :D. I love Java...
    MSJ121

    Thank you yawmark for directly answering my questions, and BalusC your point did help me refine my knowledge a little more.
    I think at the moment as both seem similar (Spring vs EJB3), I will likely learn EJB3, but then also learn Spring for the simple reason that the more and more I learn about their strengths and weaknesses the more I see that in reality, both can be used together to leverage their strengths. I also just saw that EJB3 in Action has a chapter on using both together, which should be interesting.
    I am still curious about Struts 2 and I am at the moment leaning towards it.
    I will probably leave Hibernate out of the mix for now, and look into after these two technologies as JPA vs. Hibernate seems to be less of an issue. So much to learn, so much to do, so excited lol.
    MSJ121

  • What framework and tools should I use?

    Hi
    We are students of computer science and we are going to make web application where the main aim is to present on www a lot of charts, graphes, tables created from complicated database's queries. The interaction witch web users won't be complicated. Few forms and in SSL.
    Servers:
    PostgreSQL - i think there aren''t any better open-source database, are any?
    Tomcat - we don't have posibility to use another application server
    MVC Framework:
    I've made one project in Struts. It is very good, but I am a student and I want to learn another framework. Maybe Spring? Or I've even heard about connecting Struts and Spring
    Model - iBatis DAO and iBatis SQL Maps. I have never used this. I've read about it and I think that is ease to use and not so much heavy as for example Hibernate.
    The View - what is the best solution to present a lot of tables, graphs.. on www? What do you think about such solution like:
    Velocity
    Jasper Reporst
    JFreeReports
    jCharts
    JSF?
    What combination would you recommend me?
    At the end i would like to ask what is it Jakarta Turbine and Jakarta Jetspeed? Are they frameworks like Struts or what?

    Hi
    We are students of computer science and we are going
    to make web application where the main aim is to
    present on www a lot of charts, graphes, tables
    created from complicated database's queries. The
    interaction witch web users won't be complicated. Few
    forms and in SSL.
    Servers:
    PostgreSQL - i think there aren''t any better
    open-source database, are any?Define "better". If you know PostgreSQL, it'll work just fine.
    Tomcat - we don't have posibility to use another
    application serverThen that choice is made. As long as you don't use EJBs, Tomcat is sufficient.
    MVC Framework:
    I've made one project in Struts. It is very good,
    , but I am a student and I want to learn another
    framework. Maybe Spring? Or I've even heard about
    connecting Struts and SpringYou can use Spring without Struts, or Struts without Spring. I'd recommend Spring over Struts.
    Model - iBatis DAO and iBatis SQL Maps. I have never
    used this. I've read about it and I think that is
    ease to use and not so much heavy as for example
    Hibernate.It's not a matter of light or heavy. You might like iBatis because it's closer to SQL. Spring works with both iBatis and Hibernate, so that's a fine choice.
    The View - what is the best solution to present a
    lot of tables, graphs.. on www? What do you think
    about such solution like:
    VelocityNo built-in charts.
    Jasper ReporstHaven't used it.
    JFreeReportsHaven't used it.
    jChartsYou'll need this for charts.
    JSF?No charts in JSF. It's more like Struts.
    What combination would you recommend me?I'd recommend PostgreSQL, Spring, iBatis, and JSPs with JSTL along with a free charting library.
    At the end i would like to ask what is it Jakarta
    Turbine and Jakarta Jetspeed? Are they frameworks
    like Struts or what?Read their docs. I thought Turbine was a dead project that tried to help with persistence. I don't think it's got much traction. Jetspeed is another UI framework that also doesn't seem to have as much traction as Struts or JSF.
    %

  • Java Developers Urgently Required-Guildford UK -up to 45,000 per annum

    Permanent Java Developer urgently required for a leading pre-press work flow software house.
    We need developers with the following skills:
    Java J2EE
    JSF OR Spring OR Struts
    JSP Servlets / Swing
    JDBC SQL
    JDOM / HTML / JavaScript / CSS / XML / XSL / DTD / XPATH
    Desktop: Windows XP
    Eclipse3 / CVS
    Basic UML
    These skills are an advantage.
    C++/Perl/AJAX
    Parking, excellent working hours and an immediate start available for the right candidate.
    Please Contact:
    Kelly Riddell
    01483 300515
    [email protected]

    I think that it is something wrong with kernel and graphic drivers but i'm not able to solve it from the beginning of using of Arch by me.
    I'm not so sure this issue is software-related only because in my case it seems the laptop screen enters power-saving mode (10-min timeout) on its own without any events logged (as shown by dmesg) so my next thought was OK, I'm going to get rid of this issue disabling the screen power-saving timeout in the BIOS and set it to never power down or something like that and from then on managing power mode manually; ie: when I want to power down I will just use systemctl suspend/hibernate which work fine ... problem is: there are no related options in my BIOS for such timeout.
    The only timeouts I have are in /etc/systemd/logind.conf set to 30min (#IdleActionSec) (commented) by default so these are not in effect because the screens goes blank after 10m which is less than the (default) 30m in logind. Maybe setting loggind to 9m (un-commented) to catch the event before the machine-default one ?
    IdleActionSec=9min
    IdleAction=suspend
    Will check it and report back.

Maybe you are looking for