473,769 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SPRING framewrok

dmjpro
2,476 Top Contributor
today i came to know a new framework .... say SPRING.
can u give me good link on it???

kind regards,
dmjpro.
Jun 12 '07 #1
9 2823
sulabh4u
4 New Member
yup ...
download this super duper book on SPRING from esnips, the link is:
http://www.esnips.com/doc/15854f63-0...24/Spring-Live

u might need to register (free) to download, try.

and lets start a beginners thread on spring...i've also just started on it. whatsay ?
Jun 12 '07 #2
JosAH
11,448 Recognized Expert MVP
today i came to know a new framework .... say SPRING.
can u give me good link on it???

kind regards,
dmjpro.
The Spring framework is a leightweight framework for. mainly, enterprise
environments including web services. The core of the framework is based on a
nice pattern: Inversion of Control (a.k.a. Dependency Injection). This pattern
allows simple POJO's (Plain Old Java Object) to seemlessly integrate with
different enterprise technologies.

The framework as its own website with quite a bit of documentation which
includes the reference manual. The only thing I dislike about Spring are the names
of their classes: they're so long, it makes them lose their meaning; but that's
just me. The Spring framework even works together with other frameworks,
and technologies, e.g. Struts, Hibernate etc. etc. The main creator of it, Rod
Johnson dislikes EJBs and I sympathize with that sentiment.

kind regards,

Jos
Jun 12 '07 #3
dmjpro
2,476 Top Contributor
The core of the framework is based on a
nice pattern: Inversion of Control (a.k.a. Dependency Injection). This pattern
allows simple POJO's (Plain Old Java Object) to seemlessly integrate with
different enterprise technologies.

Plz explain these lines in details.
and why this framework introduced?
what were the problems with J2EE framework , struts and others??
plz zzzzzz.

Kind regards,
Dmjpro.
Jun 13 '07 #4
JosAH
11,448 Recognized Expert MVP
Plz explain these lines in details.
and why this framework introduced?
what were the problems with J2EE framework , struts and others??
plz zzzzzz.

Kind regards,
Dmjpro.
Read all about it on their website; see the link I gave you in my previous reply.

kind regards,

Jos
Jun 13 '07 #5
vijay
30 New Member
today i came to know a new framework .... say SPRING.
can u give me good link on it???

kind regards,
dmjpro.

hi anonymous how are u .........

i have put an article named spring by vijaychoudary.. ..in this site

u once see it ....if u have any queries u can get back to me
Jun 2 '08 #6
dmjpro
2,476 Top Contributor
hi anonymous how are u .........

i have put an article named spring by vijaychoudary.. ..in this site

u once see it ....if u have any queries u can get back to me
Where is your article?
Give me the link.

Debasis Jana.
Jun 2 '08 #7
mehdi mousavi
2 New Member
Shine J2EE Framework 1.2 Vs. J2EE Frameworks

Author: Amir Sam Bahador
Level: Advanced
Subjects list:
Introduction
-The object of edition of this article
First chapter: Can one method change all things?
-One new method
-Advantages

Introduction:
The object of editing this essay:

What we expect from the new tools, are not more than what they are, so we can hope. For few years, new J2EE Framework for Java did not become popular like the Struts or spring. I do not say that it is not made, but I say that it did not become popular, but we submitted you new program more that what you expect, so be ready and choose your way and method.
A way for approaching shine.

First chapter: Can one method change all things?

Objects:
In this chapter, we are going to acquaint you with shine's new features in 1.2 editions.

One new method:
In the previous small article (J2EE And Service Oriented Programming), you have acquainted with shine. If you have not studied the article J2EE And Service Oriented Programming, firstly, I suggest you to study it, then keep continuing to study this article, because I do not like to make voluminous article, whereas others like it.

you can find it in :http://www.j2sos.org/download/doc.rar

I am sure that you have worked with Session, Application in JSP and FormBean in Struts. Utilizing each of them has the own special problems. Disadvantages of utilizing the above mentioned cases are traffic bar in Ram level, complicated codes and boring.
As we addressed in the previous article, on the contrary to Struts, in Shine, you can use the URL parameters in the services.
For example, you can send the name's contents to the mapping class via one URL, and after the processing the name's contents, guide the user toward a service, you can use the URL's contents again in the considered service. This process was not possible in Struts, and not now, you have 3 principal options for doing this process in Struts.
  1. Utilizing the Session: making busy the server RAM.
  2. Utilizing the Application: limited utilizing
  3. Utilizing the FormBean: establishing some extra classes
It is done easily in shine; you can use easily URL's contents in considered service again in shine. But, it is not finished yet.
For clearing the case, we give an example. You have made a HTML form in which there is a context filed which is titled famil. When the user submits the form, the functional program will guide him/her toward the mapping class. In the mapping class, the amount of received URL which contains the famil has been considered, and user is guided toward the special service.
In the considered service, the famil amount has been received and displayed twice; this is what the shine does!

There is a small problem, assume that you need to produce amount and send it to the considered service in the mapping class. this amount does not exist in the HTML format! Mapping class undertakes to produce this amount.
In the mapping class, you can not use Application, Session and FormBean.
Expand|Select|Wrap|Line Numbers
  1. package view;
  2. import J2sos.shine.controller.Mapping;
  3. public class ClassicMapping extends Mapping
  4.    {
  5.          Public void rater()
  6.              {
  7.                    Request.getSession.setAttribute("name","ali"); //this is false
  8.                    Forward("service2","tag1");
  9.               }
  10.     }
  11.  
As you see, the above mentioned function is not possible in shine, but be careful that there is a much loveable creature which is titled URL.
In the mapping class, you are able to add an amount to the URL easily and guide toward the considered service.
I give an example regarding the above mentioned case, in order to clarify the matter:
Assume:
You have created an HTML format, in which there is a context field which is titled famil, when the user submits the form, the functional program guides him/her toward the mapping class, in the mapping class, the received URL's amount which contains the famil's amount is considered and the age will be created, and after doing this process, the age will be added to URL, and the user is guided toward a special service. In the considered service, the famil amount and age are obtained from URL and displayed for it.
Come to observe the amounts of URL's parameters before entering the mapping class:
Famil=fowloer
Now, come to observe the amounts of URL's parameters after exiting the mapping class, and before entering the service:
Famil=fowloer&a ge =23

Be careful that there is no limitation in utilizing the method of addURL , you could use session just one time, but you can use this method , pay attention to the following example:
Expand|Select|Wrap|Line Numbers
  1. package view;
  2. import J2sos.shine.controller.Mapping;
  3. public class ClassicMapping extends Mapping
  4.    {
  5.          public void rater()
  6.              {
  7.            addURL("age","23");
  8.            addURL("name","amir");
  9.            forward("service2","tag1");
  10.        }
  11.     }
In the previous example, the famil's amount was sent through form and URL to the mapping class, when the code is done, age=23 and name =Amir is added to URL, now you can receive amount, name, age and famil in the considered service 2 and show it to the user.
With the above mentioned method, you have used URL instead of application, now come to use URL instead of session.
Expand|Select|Wrap|Line Numbers
  1. package view;
  2. import J2sos.shine.controller.Mapping;
  3. public class ClassicMapping extends Mapping
  4.    {
  5.          public void rater()
  6.              {
  7.            addURL("age","23");
  8.            addURL("name","amir");
  9.             if(request.getParameter("famil").equals("fowler"))
  10.                 {
  11.                       forward("service2","tag1");
  12.                  }
  13.               else
  14.                   {
  15.                         forward("service1","tag2");
  16.                    }
  17.             }
  18.      }
  19.  
In the above code, the age and name will be added to URL in any condition.
If the user famil will be equal to fowler, the amount of sent URL to service 2 will be as follow:
Famil=fowler&ag e=23&name=amir

If the user famil will not be equal to fowler, and for example, it would be equal to bahador, the amount of sent URL to service1 will be as follow:
Famil=bahador&a ge=23&name=amir
Now, pay attention to the following code:
Expand|Select|Wrap|Line Numbers
  1. package view;
  2. import J2sos.shine.controller.Mapping;
  3. public class ClassicMapping extends Mapping
  4.    {
  5.          public void rater()
  6.              {
  7.            addURL("age","23");
  8.            addURL("name","amir");
  9.             if(request.getParameter("famil").equals("fowler"))
  10.                 {
  11.                       forward("service2","tag1");
  12.                  }
  13.               else
  14.                   {
  15.                         addURL("address","newyorl");
  16.                         forward("service1","tag2");
  17.                    }
  18.             }
  19.      }
  20.  
If the user famil will be equal to fowler, the amount of sent URL to service 1 will be as follow:
Famil=bahador&a ge=23&name=amir &address=newyor k


Advantages:
With utilizing this method, you do not need Session, Application and FormBean.

I can't show this sample's pictures in this forum. please download complete sample from below link:
http://www.j2sos.org/download/doc.rar

J2SOS Organization Web Site: http://www.J2SOS.org
Feb 18 '09 #8
lalitbhatt45
1 New Member
I have put some tutorials online with couple of videos and code snippet at

http://www.oyejava.com/tiki-index.php?page=Spring
May 5 '09 #9
N002213F
39 New Member
@dmjpro
You don't know what you have been missing, welcome to the light.

You just need to understand IOC as explained by Josah, we also the Tapestry framework that makes use of IOC for web based applications.
May 5 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
18356
by: C:\\Marko | last post by:
Hi! Does anyone knows for a good and free SPRING tutorial? Please send me some links. I tryed to google it, but all I find is very poor tutorials. Thanks! Marko -- Remove MakniMe from e-mail address
2
12449
by: Peter Kirk | last post by:
Hi there I come from the "Java world" where I used "Spring" and "Hibernate" in web-application development. Is there anyone who has experience using these frameworks in a .NET / c# setting? Are they mature in the .NET world yet? Thanks, Peter
3
1895
by: gregturn | last post by:
Spring Python is an offshoot of the Java-based SpringFramework and AcegiSecurityFramework, targeted for Python. Spring provides many useful features, and I wanted those same features available when working with Python. The site is http://springpython.python-hosting.com, with information about source code, releases, and mailing lists. The following features have been implemented. * DatabaseTemplate - Reading from the database requires a
2
1215
by: jhicke03 | last post by:
Hi Guys, I have created an application in C# that reads from an access database. When i share the .exe onto the server it will refuse to run certain parts and generate an error message about the Microsoft .NET Framewrok Security Policy not being being set to the correct permissions. I have created mouse over events and was wondering if this is the problem or whether there is a simple solution to my problem. Kind Regards, Jim
2
1500
dmjpro
by: dmjpro | last post by:
I have five source files. public class SpringAOP implements SpringAOPInterface { public void showMessage() { System.out.println("I m learning Spring+AOP, & i really enjoying dis :-)"); } }
0
1161
by: Goldfish | last post by:
Spring Python 0.6.0, the python offshoot of the Spring framework and Spring Security, has been released (http:// springpython.webfactional.com). See http://sourceforge.net/project/showfiles.php?group_id=184275&package_id=214366&release_id=624328 for more details. BTW, if you click on the release notes link, there is a report pulled from JIRA (our new bug tracking software) showing the issues. For more details, you have to create an...
0
1503
by: Goldfish | last post by:
Key Features The following features have been implemented: * Inversion Of Control - The idea is to decouple two classes at the interface level. This lets you build many reusable parts in your software, and your whole application becomes more pluggable. You can use either the XmlApplicationContext or the DecoratorBasedApplicationContext. * Aspect-oriented Programming - Spring Python provides great ways
0
1625
by: Goldfish | last post by:
Spring Python, the python version of the Spring Framework, has just released version 0.7.1. This patch includes integration with S3, Spring's new service used to distribute binaries. Key Features of Spring Python include: * Inversion Of Control - The idea is to decouple two classes at the interface level. This lets you build many reusable parts in your software, and your whole application becomes more pluggable. You can use either the...
1
2606
by: Goldfish | last post by:
Spring Python, the python version of the Spring Framework, has just released version 0.8.0. This release contains a refactored IoC container supporting four formats (XMLConfig, PythonConfig/@Object, PyContainerConfig, and SpringJavaConfig); replacement of the term "component" with "object" in all APIs, classnames, etc.; and other bug fixes and API cleanup. This release also includes a new, spring-green web page you can see at...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10212
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.